ErrorWindow.xaml 1.2 KB

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