PageForBindings.xaml 882 B

1234567891011121314151617
  1. <Page x:Class="MyWpfApp.Pages.PageForBindings"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:MyWpfApp.Pages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="PageForBindings">
  10. <StackPanel>
  11. <TextBox x:Name="txtOut" FontSize="{Binding Value, ElementName=sl1}" Text="{Binding Name}"/>
  12. <TextBox x:Name="txtIn" FontSize="{Binding Value, ElementName=sl1}" Text="{Binding Login}"/>
  13. <Slider x:Name="sl1" Maximum="100" Minimum="10" Value="20"/>
  14. <Button Content="Сохранить изменения" Click="Button_Click"/>
  15. </StackPanel>
  16. </Page>