<Window x:Class="WPF_9_元素绑定元素.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
    <Grid>
        <StackPanel>
            <Slider Name="Slider" Margin="15" />
            <TextBox Text="{Binding ElementName=Slider,Path=Value}" Name="TextBox1" Margin="15" Height="30" />
            <TextBox Text="{Binding ElementName=Slider,Path=Value,Mode=OneWay}" Name="TextBox2" Margin="15" Height="30" />
        </StackPanel>
    </Grid>
</Window>