Auth.xaml 1.3 KB

123456789101112131415161718192021222324252627282930
  1. <Page x:Class="MyWpfApp.Pages.Auth"
  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="Auth">
  10. <Grid>
  11. <GroupBox Header="Регистрационные данные">
  12. <StackPanel>
  13. <GroupBox Header="Введите логин">
  14. <TextBox Name="TxtLogin"/>
  15. </GroupBox>
  16. <GroupBox Header="Введите пароль">
  17. <PasswordBox Name="TxtPassword"/>
  18. </GroupBox>
  19. <Button Content="Войти" Name="btnEnter" IsDefault="True" Click="btnEnter_Click"/>
  20. <TextBlock x:Name="txtTitle" Text="Заголовок этой страницы"/>
  21. <Button Template="{StaticResource Template1}" Click="Button_Click" Content="{Binding Text,ElementName=txtTitle}"/>
  22. </StackPanel>
  23. </GroupBox>
  24. </Grid>
  25. </Page>