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="CenterOwner"
  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. Height="30"
  38. Width="130"
  39. Margin="0,0,5,0"
  40. Click="YesButton"/>
  41. <Button Content="Нет"
  42. Height="30"
  43. Width="130"
  44. Margin="5,0,0,0"
  45. Click="NoButton"/>
  46. </StackPanel>
  47. </Grid>
  48. </Grid>
  49. </Border>
  50. </Window>