CustomDialog.xaml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <UserControl x:Class="GDNXFD.Alert.Config.Controls.CustomDialog"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. mc:Ignorable="d"
  7. d:DesignHeight="800" d:DesignWidth="1200">
  8. <Grid>
  9. <Grid.RowDefinitions>
  10. <RowDefinition></RowDefinition>
  11. <RowDefinition></RowDefinition>
  12. <RowDefinition></RowDefinition>
  13. </Grid.RowDefinitions>
  14. <Grid.ColumnDefinitions>
  15. <ColumnDefinition></ColumnDefinition>
  16. <ColumnDefinition></ColumnDefinition>
  17. <ColumnDefinition></ColumnDefinition>
  18. </Grid.ColumnDefinitions>
  19. <Border Background="Black" Opacity="0.5" Grid.RowSpan="3" Grid.ColumnSpan="3"/>
  20. <Border Background="{StaticResource module-background-color-brush}" Grid.Row="1" Grid.Column="0"
  21. Width="400" Height="210" Grid.ColumnSpan="3" Padding="20,40,20,40">
  22. <Grid>
  23. <TextBlock Grid.Row="0" Text="{Binding Message}" VerticalAlignment="Top"
  24. HorizontalAlignment="Center" Style="{StaticResource MessagesTextStyle}"
  25. TextWrapping="Wrap" TextAlignment="Center"></TextBlock>
  26. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  27. <Button Style="{StaticResource ConfirmButtonStyle}" Height="40" Width="80" Focusable="True" TabIndex="1"
  28. HorizontalAlignment="Left" VerticalAlignment="Bottom"
  29. Command="{Binding AcceptCommand}" IsDefault="True">
  30. <Image Source="/Resources/Images/check-big.png" Stretch="None"></Image>
  31. </Button>
  32. <Button Name="CancelButton" Style="{StaticResource CancelButtonStyle}" Height="40" Width="80" Visibility="{Binding ShowCancel}" Focusable="True" TabIndex="0"
  33. IsVisibleChanged="CancelButton_IsVisibleChanged"
  34. HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="20,0,0,0" IsDefault="True"
  35. Command="{Binding CancelCommand}" IsCancel="True">
  36. <Image Source="/Resources/Images/cancel2.png" Height="17" Width="17"></Image>
  37. </Button>
  38. </StackPanel>
  39. </Grid>
  40. </Border>
  41. </Grid>
  42. </UserControl>