GasPanelHolder.xaml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <UserControl x:Class="HistoryView.Views.Regions.GasPanelHolder"
  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:HistoryView.Views.Regions"
  7. xmlns:prism="http://prismlibrary.com/"
  8. prism:ViewModelLocator.AutoWireViewModel="True"
  9. xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
  10. xmlns:wfi ="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
  11. SizeChanged="UserControl_SizeChanged"
  12. mc:Ignorable="d"
  13. d:DesignHeight="450" d:DesignWidth="800">
  14. <Grid Background="DarkGray">
  15. <Border Background="#b1d2f2" Margin="4">
  16. <Border.Effect>
  17. <DropShadowEffect BlurRadius="20" Color="Black" Opacity="0.6" ShadowDepth="5"/>
  18. </Border.Effect>
  19. <Grid>
  20. <Grid.RowDefinitions>
  21. <RowDefinition/>
  22. <RowDefinition Height="auto"/>
  23. </Grid.RowDefinitions>
  24. <WindowsFormsHost Grid.Row="0" Width="auto">
  25. <wf:Panel x:Name="panel"></wf:Panel>
  26. </WindowsFormsHost>
  27. <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right">
  28. <Button VerticalAlignment="Center" HorizontalAlignment="Center" Click="Button_Click" Width="100" Margin="8,0">Capture</Button>
  29. <Button VerticalAlignment="Center" HorizontalAlignment="Center" Click="Button_Click_1" Width="100">Clear</Button>
  30. </StackPanel>
  31. </Grid>
  32. </Border>
  33. </Grid>
  34. </UserControl>