ConfirmationWindow.xaml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. <Border BorderBrush="Black"
  16. BorderThickness="1"
  17. MouseDown="Border_MouseDown">
  18. <Grid Background="#FF2D2D2D">
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="27*"/>
  21. <RowDefinition Height="13*"/>
  22. </Grid.RowDefinitions>
  23. <TextBlock Name="ErrorLabel"
  24. Text="Вы действительно хотите это сделать?"
  25. TextWrapping="Wrap"
  26. HorizontalAlignment="Center"
  27. Margin="19,10,19,0"
  28. VerticalAlignment="Top"
  29. Width="262"
  30. Background="{x:Null}">
  31. </TextBlock>
  32. <Grid Grid.Row="1">
  33. <StackPanel Orientation="Horizontal"
  34. HorizontalAlignment="Center"
  35. VerticalAlignment="Center">
  36. <Button Content="Да"
  37. VerticalAlignment="Bottom"
  38. HorizontalAlignment="Center"
  39. Height="30"
  40. Width="130"
  41. Margin="0,0,5,0"
  42. Click="YesButton"/>
  43. <Button Content="Нет"
  44. VerticalAlignment="Bottom"
  45. HorizontalAlignment="Center"
  46. Height="30"
  47. Width="130"
  48. Margin="5,0,0,0"
  49. Click="NoButton"/>
  50. </StackPanel>
  51. </Grid>
  52. </Grid>
  53. </Border>
  54. </Window>