0

I have this control on my (wpf)form Status

 <TextBlock x:Name="Status" HorizontalAlignment="Left" Margin="138,0,0,0" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Top" Grid.ColumnSpan="3" Height="67" Width="577" Grid.Row="1" IsHyphenationEnabled="True" UseLayoutRounding="False"/>

It seems that just setting Status.Text=someValue from within a click event does not refresh until the event is completed. How can this be done (in C#) if one wants to show the status of a multistage procedure by setting the Status.Text?

2
Contributors
3
Replies
10
Views
3 Years
Discussion Span
Last Post by ddanbe
0

What comes up in my mind is that it is perhaps better to fire an event for every stage of your process instead of one event handling them all.

0

Thanks. I implemented the procedure using a backgroundworker which is probably the same as what you suggest. It's a pain, I was hoping something simpler, but as I heard someone say, everything in WPF is nice, but simple, it ain't.

1

everything in WPF is nice, but simple, it ain't.

That's a reason witholding me from really dig in deep into it.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.