ErrorWindow.xaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  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="CenterScreen"
  13. WindowStyle="None"
  14. ResizeMode="NoResize">
  15. <Border Background="#FF2D2D2D"
  16. MouseDown="Border_MouseDown">
  17. <StackPanel>
  18. <TextBlock Name="ErrorLabel"
  19. Text="Ошибка."
  20. TextWrapping="Wrap"
  21. HorizontalAlignment="Center"
  22. Margin="19,10,19,0"
  23. VerticalAlignment="Top"
  24. Width="262">
  25. </TextBlock>
  26. <Button Content="Закрыть"
  27. VerticalAlignment="Bottom"
  28. HorizontalAlignment="Center"
  29. Height="30"
  30. Width="130"
  31. Margin="0,0,0,15"
  32. Click="BackClick"/>
  33. </StackPanel>
  34. </Border>
  35. </Window>