Windows Phone 8.1 Binding 三种绑定类型

network | | 访问(73)
<StackPanel x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
    <Slider Name="slider" Value="50" Maximum="400"/>
    <TextBlock FontSize="25" Height="41"  Name="textBlock1" Text="OneTime" VerticalAlignment="Top" Width="112" />
    <TextBox  Height="72"  Name="textBox1" Text="{Binding ElementName=slider, Path=Value,Mode=OneTime}"  Width="269" />
    <TextBlock FontSize="25" Height="46" Name="textBlock2" Text="OneWay" VerticalAlignment="Top" Width="99" />
    <TextBox Height="72" Name="textBox2" Text="{Binding ElementName=slider, Path=Value,Mode=OneWay}" Width="269" />
    <TextBlock FontSize="25" Height="40"  Name="textBlock3" Text="TwoWay" VerticalAlignment="Top" Width="94" />
    <TextBox Height="72"  Name="textBox3" Text="{Binding ElementName=slider, Path=Value,Mode=TwoWay}" Width="268" />
    <TextBlock FontSize="25" Height="43"  Name="textBlock4" Text="slider控件的值:" />
    <TextBlock FontSize="25" Height="43" Name="textBlock5" Text="{Binding ElementName=slider, Path=Value}"  Width="185" />
</StackPanel>