123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191 |
- <UserControl x:Class="LampInspectionMachine.Views.MenuView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:LampInspectionMachine.Views"
- xmlns:prism="http://prismlibrary.com/"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d"
- d:DesignHeight="450"
- d:DesignWidth="800"
- d:Background="White">
- <UserControl.Resources>
- <Style x:Key="buttonborder"
- TargetType="Border">
- <Setter Property="BorderThickness"
- Value="2" />
- <Setter Property="Background"
- Value="Transparent" />
- <Setter Property="VerticalAlignment"
- Value="Center" />
- <Setter Property="BorderBrush"
- Value="White" />
- <Setter Property="CornerRadius"
- Value="5" />
- <Setter Property="Effect">
- <Setter.Value>
- <DropShadowEffect BlurRadius="10"
- Direction="0"
- ShadowDepth="0"
- Color="#D4D8DD" />
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="textborder"
- TargetType="Border">
- <Setter Property="BorderThickness"
- Value="2" />
- <Setter Property="Background"
- Value="Transparent" />
- <Setter Property="VerticalAlignment"
- Value="Center" />
- <Setter Property="BorderBrush"
- Value="#D4D8DD" />
- <Setter Property="CornerRadius"
- Value="5" />
- <Setter Property="Effect">
- <Setter.Value>
- <DropShadowEffect BlurRadius="10"
- Direction="0"
- ShadowDepth="0"
- Color="White" />
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="Menubutton"
- TargetType="Button">
- <Setter Property="Background"
- Value="Transparent" />
- <Setter Property="HorizontalContentAlignment"
- Value="Left" />
- <Setter Property="FontWeight"
- Value="Bold" />
- <Setter Property="Margin"
- Value="15,5,5,5" />
- <Setter Property="Padding"
- Value="5" />
- <Setter Property="FontSize"
- Value="14" />
- <Setter Property="BorderThickness"
- Value="0" />
- </Style>
- </UserControl.Resources>
-
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Border Grid.Column="0"
- Margin="10"
- Padding="2"
- CornerRadius="5"
- BorderBrush="#D4D8DD"
- BorderThickness="2">
- <Grid Margin="5">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="40" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Border Style="{StaticResource textborder}"
- Grid.Row="0">
- <TextBlock Text="调试"
- Width="150"
- Margin="15,5,5,5"
- FontSize="14" />
- </Border>
- <Border BorderBrush="#D4D8DD"
- BorderThickness="1"
- Grid.Row="1">
- <StackPanel>
- <Button Content="相机1"
- Style="{StaticResource Menubutton}"
- Command="{Binding OpenCameraViewCommand}"
- CommandParameter="0"/>
- <Button Content="视觉调试"
- Margin="30,0,5,5"
- Style="{StaticResource Menubutton}"
- Command="{Binding OpenVisionProViewCommand}"
- CommandParameter="0"/>
- <Button Content="相机2"
- Style="{StaticResource Menubutton}"
- Command="{Binding OpenCameraViewCommand}"
- CommandParameter="1"/>
- <Button Content="视觉调试"
- Margin="30,0,5,5"
- Style="{StaticResource Menubutton}"
- Command="{Binding OpenVisionProViewCommand}"
- CommandParameter="1"/>
- <Button Content="相机3"
- Style="{StaticResource Menubutton}"
- Command="{Binding OpenCameraViewCommand}"
- CommandParameter="2" />
- <Button Content="视觉调试"
- Margin="30,0,5,5"
- Style="{StaticResource Menubutton}"
- Command="{Binding OpenVisionProViewCommand}"
- CommandParameter="2" />
- <Button Content="相机4"
- Style="{StaticResource Menubutton}"
- Command="{Binding OpenCameraViewCommand}"
- CommandParameter="3" />
- <Button Content="视觉调试"
- Margin="30,0,5,5"
- Style="{StaticResource Menubutton}"
- Command="{Binding OpenVisionProViewCommand}"
- CommandParameter="3" />
- <Button Content="相机5"
- Style="{StaticResource Menubutton}"
- Command="{Binding OpenCameraViewCommand}"
- CommandParameter="4" />
- <Button Content="视觉调试"
- Margin="30,0,5,5"
- Style="{StaticResource Menubutton}"
- Command="{Binding OpenVisionProViewCommand}"
- CommandParameter="4" />
- <Button Content="相机6"
- Style="{StaticResource Menubutton}"
- Command="{Binding OpenCameraViewCommand}"
- CommandParameter="5" />
- <Button Content="视觉调试"
- Margin="30,0,5,5"
- Style="{StaticResource Menubutton}"
- Command="{Binding OpenVisionProViewCommand}"
- CommandParameter="5" />
- <Button Content="相机7"
- Style="{StaticResource Menubutton}"
- Command="{Binding OpenCameraViewCommand}"
- CommandParameter="6" />
- <Button Content="视觉调试"
- Margin="30,0,5,5"
- Style="{StaticResource Menubutton}"
- Command="{Binding OpenVisionProViewCommand}"
- CommandParameter="6" />
- <Button Content="相机8"
- Style="{StaticResource Menubutton}"
- Command="{Binding OpenCameraViewCommand}"
- CommandParameter="7" />
- <Button Content="视觉调试"
- Margin="30,0,5,5"
- Style="{StaticResource Menubutton}"
- Command="{Binding OpenVisionProViewCommand}"
- CommandParameter="7" />
- </StackPanel>
- </Border>
- </Grid>
- </Grid>
- </Border>
- <Border Grid.Column="1"
- Margin="20"
- BorderBrush="#D4D8DD"
- BorderThickness="2">
- <ContentControl prism:RegionManager.RegionName="MenuRegionContent" />
- </Border>
-
- </Grid>
-
- </UserControl>
|