Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.47 KB | None | 0 0
  1. {Binding RelativeSource={RelativeSource FindAncestor, AncestorType=PasswordBox}}
  2.  
  3. <Label Margin="15" Padding="15">
  4. <Grid>
  5. <Grid.ColumnDefinitions>
  6. <ColumnDefinition />
  7. <ColumnDefinition />
  8. </Grid.ColumnDefinitions>
  9.  
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="*" />
  12. <RowDefinition Height="Auto" />
  13. </Grid.RowDefinitions>
  14. <Grid Grid.Row="0" Grid.ColumnSpan="2">
  15. <Grid.RowDefinitions>
  16. <RowDefinition />
  17. <RowDefinition />
  18. </Grid.RowDefinitions>
  19. <Grid.ColumnDefinitions>
  20. <ColumnDefinition />
  21. <ColumnDefinition />
  22. </Grid.ColumnDefinitions>
  23. <Label Style="{StaticResource InfoLabel}" Content="My Super Logotype" Grid.RowSpan="2" Grid.Column="0"
  24. Grid.ColumnSpan="2" FontSize="32"
  25. VerticalAlignment="Center"
  26. HorizontalAlignment="Center" />
  27. <Grid Grid.Column="1" Grid.Row="0">
  28. <Label Content="SubTAG" Style="{StaticResource InfoLabel}" VerticalAlignment="Bottom"
  29. HorizontalAlignment="Left"
  30. Margin="47,-47,-13,13" />
  31. </Grid>
  32. </Grid>
  33. <Grid Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="1">
  34. <Grid.RowDefinitions>
  35. <RowDefinition Height="*" />
  36. <RowDefinition Height="Auto" />
  37. </Grid.RowDefinitions>
  38.  
  39. <Label Grid.Column="0">
  40. <Grid>
  41. <Grid.ColumnDefinitions>
  42. <ColumnDefinition Width="Auto" />
  43. <ColumnDefinition Width="*" />
  44. </Grid.ColumnDefinitions>
  45. <Grid.RowDefinitions>
  46. <RowDefinition />
  47. <RowDefinition />
  48. </Grid.RowDefinitions>
  49. <Label Margin="0,2" VerticalAlignment="Center" HorizontalAlignment="Right" Content="Логин:" />
  50. <TextBox Text="{Binding UserName}" Grid.Row="0" Grid.Column="1"
  51. HorizontalContentAlignment="Stretch"
  52. VerticalAlignment="Center" FontSize="14"
  53. HorizontalAlignment="Left" Width="145" />
  54. <Label Grid.Column="0" Grid.Row="1" Content="Пароль:" />
  55. <PasswordBox x:Name="UserPassword" Grid.Column="1" Width="145" Grid.Row="1" FontSize="14"
  56. HorizontalAlignment="Stretch" />
  57. </Grid>
  58. </Label>
  59.  
  60. <Grid Grid.Row="1">
  61. <Grid.ColumnDefinitions>
  62. <ColumnDefinition Width="*" />
  63. <ColumnDefinition Width="Auto" />
  64. </Grid.ColumnDefinitions>
  65. <Button Command="{Binding AuthUserCommand}"
  66. CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=PasswordBox}}"
  67. Margin="0,0,7,0"
  68. HorizontalAlignment="Stretch" Style="{StaticResource SuccessBtn}"
  69. Content="Войти" />
  70. <Button Margin="0,0,7,0" MinWidth="12" HorizontalAlignment="Right" Grid.Column="1"
  71. Style="{StaticResource WarningBtn}"
  72. Content="Отмена" Command="{Binding Close}" />
  73. </Grid>
  74. </Grid>
  75. </Grid>
  76. </Label>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement