ErrorWindow.xaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <Window x:Class="MyTests.ErrorWindow"
  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="ErrorWindow"
  9. MinHeight="120"
  10. Height="120"
  11. Width="300"
  12. WindowStartupLocation="CenterOwner"
  13. WindowStyle="None"
  14. ResizeMode="NoResize">
  15. <Border Background="#FF2D2D2D"
  16. BorderBrush="Black"
  17. BorderThickness="1"
  18. MouseDown="Border_MouseDown">
  19. <StackPanel>
  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. </TextBlock>
  28. <Button Content="Закрыть"
  29. VerticalAlignment="Bottom"
  30. HorizontalAlignment="Center"
  31. Height="30"
  32. Width="130"
  33. Margin="0,0,0,15"
  34. Click="BackClick"/>
  35. </StackPanel>
  36. </Border>
  37. </Window>