ConfirmationWindow.xaml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <Window x:Class="MyTests.ConfirmationWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:MyTests"
  7. mc:Ignorable="d"
  8. Title="ConfirmationWindow"
  9. MinHeight="120"
  10. Height="120"
  11. Width="300"
  12. WindowStartupLocation="CenterScreen"
  13. WindowStyle="None"
  14. ResizeMode="NoResize">
  15. <Grid Background="#FF2D2D2D">
  16. <Grid.RowDefinitions>
  17. <RowDefinition Height="27*"/>
  18. <RowDefinition Height="13*"/>
  19. </Grid.RowDefinitions>
  20. <TextBlock Name="ErrorLabel"
  21. Text="Вы действительно хотите это сделать?"
  22. TextWrapping="Wrap"
  23. HorizontalAlignment="Center"
  24. Margin="19,10,19,0"
  25. VerticalAlignment="Top"
  26. Width="262"
  27. Background="{x:Null}">
  28. </TextBlock>
  29. <Grid Grid.Row="1">
  30. <StackPanel Orientation="Horizontal"
  31. HorizontalAlignment="Center"
  32. VerticalAlignment="Center">
  33. <Button Content="Да"
  34. VerticalAlignment="Bottom"
  35. HorizontalAlignment="Center"
  36. Height="30"
  37. Width="130"
  38. Margin="0,0,5,0"
  39. Click="YesButton"/>
  40. <Button Content="Нет"
  41. VerticalAlignment="Bottom"
  42. HorizontalAlignment="Center"
  43. Height="30"
  44. Width="130"
  45. Margin="5,0,0,0"
  46. Click="NoButton"/>
  47. </StackPanel>
  48. </Grid>
  49. </Grid>
  50. </Window>