InOutView.xaml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <UserControl x:Class="OHV.Module.Interactivity.PopUp.InOutView"
  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. xmlns:local="clr-namespace:OHV.Module.Interactivity.PopUp"
  7. xmlns:IOBtn="clr-namespace:GSG.NET.WPF.ControlResources;assembly=GSG.NET.WPF"
  8. mc:Ignorable="d"
  9. xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
  10. xmlns:prism="http://prismlibrary.com/"
  11. prism:ViewModelLocator.AutoWireViewModel="True"
  12. Height="1080" Width="1920"
  13. Background="#CC282C34">
  14. <prism:Dialog.WindowStyle>
  15. <Style TargetType="Window">
  16. <Setter Property="prism:Dialog.WindowStartupLocation" Value="CenterScreen" />
  17. <Setter Property="Background" Value="Transparent"/>
  18. <Setter Property="AllowsTransparency" Value="True"/>
  19. <Setter Property="ResizeMode" Value="NoResize"/>
  20. <Setter Property="SizeToContent" Value="WidthAndHeight"/>
  21. <Setter Property="WindowStyle" Value="None"/>
  22. <Setter Property="BorderThickness" Value="1"/>
  23. <Setter Property="BorderBrush" Value="{DynamicResource BorderSolidNormal}"/>
  24. <Setter Property="Template" Value="{DynamicResource WindowTemplateKey}"/>
  25. <Setter Property="WindowState" Value="Maximized"/>
  26. <!--<Style.Triggers>
  27. <Trigger Property="ResizeMode" Value="CanResizeWithGrip">
  28. <Setter Property="Template" Value="{StaticResource WindowTemplateKey}"/>
  29. </Trigger>
  30. </Style.Triggers>-->
  31. </Style>
  32. </prism:Dialog.WindowStyle>
  33. <Border BorderBrush="Gray" BorderThickness="1" Width="1000" Height="800">
  34. <Grid>
  35. <Grid.ColumnDefinitions>
  36. <ColumnDefinition/>
  37. <ColumnDefinition Width="130"/>
  38. </Grid.ColumnDefinitions>
  39. <DockPanel>
  40. <ContentControl Grid.Column="0" prism:RegionManager.RegionName="IOView"/>
  41. </DockPanel>
  42. <Grid Grid.Column="1" HorizontalAlignment="Stretch" Background="#263238">
  43. <Border Margin="1" BorderBrush="#FF00FFD3" BorderThickness="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
  44. <StackPanel VerticalAlignment="Bottom">
  45. <Button FontSize="20" Margin="10,0,10,10" HorizontalAlignment="Stretch" Height="90" BorderBrush="Gray" BorderThickness="2" Command="{Binding CloseDialogCommand}" CommandParameter="true">
  46. <StackPanel>
  47. <materialDesign:PackIcon Kind="ExitToApp" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Height="42" Width="auto"/>
  48. <TextBlock Text="Close" VerticalAlignment="Stretch" HorizontalAlignment="Center" />
  49. </StackPanel>
  50. </Button>
  51. </StackPanel>
  52. </Grid>
  53. </Grid>
  54. </Border>
  55. </UserControl>