It's fairly easy to bind a
ProgressBar
's
Value
property to a
TextBox
control's
Text
property.
Example Xaml:
---------------
<ProgressBar Value="{Binding X}"
Height="28" HorizontalAlignment="Left"
Margin="62,40,0,0" Name="progressBar"
VerticalAlignment="Top" Width="332" />
<TextBox Text="{Binding ElementName=progressBar, Path=Value}"
Height="23" HorizontalAlignment="Left" Margin="62,86,0,0"
Name="textBox" VerticalAlignment="Top" Width="120" />
Note:
TextBlock
would work the same as
TextBox
(since you asked for
TextBlock
in your question).