<Window x:Class="WPF绑定元素_2_代码检索绑定.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"
        Icon="public/003540AH4M72.jpg" Title="WPF绑定元素_2_代码检索绑定" Height="450" Width="800">
    <StackPanel Margin="20" Cursor="No">
        <Slider Name="TextBlockSlider" Value="10" Maximum="100" Minimum="1" SmallChange="2" LargeChange="5"
                TickPlacement="BottomRight" TickFrequency="5" IsSelectionRangeEnabled="True" />

        <TextBlock Margin="10" Text="简单的文字" Name="SampleTextBlock"
                   FontSize="{Binding ElementName=TextBlockSlider,Path=Value,Mode=TwoWay}" />


        <WrapPanel>
            <Button Margin="5 0" Padding="15 5" Click="ButtonBase_OnClick">获取内容</Button>
            <Button Margin="5 0" Padding="15 5" Name="ExpressionButton" Click="ExpressionButton_OnClick">获取绑定参数</Button>
        </WrapPanel>
    </StackPanel>
</Window>