65 lines
3.3 KiB
XML
65 lines
3.3 KiB
XML
<UserControl x:Class="WeldingCommon.Views.UCCommonAutoRun"
|
|
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:WeldingCommon.Views"
|
|
xmlns:behavior="http://schemas.microsoft.com/xaml/behaviors"
|
|
xmlns:view="clr-namespace:Aurora.View;assembly=Aurora"
|
|
xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
|
|
xmlns:aurorauicomponent="clr-namespace:AuroraUIComponent;assembly=AuroraUIComponent"
|
|
xmlns:usercontrols="clr-namespace:AuroraUIComponent.UserControls;assembly=AuroraUIComponent"
|
|
xmlns:seqeunceDrawer="clr-namespace:AuroraUIComponent.UserControls.SequenceDrawer;assembly=AuroraUIComponent"
|
|
d:DataContext="{d:DesignInstance Type=local:UCCommonAutoRunViewModel}"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="800" d:DesignWidth="1200" x:Name="uc"
|
|
IsVisibleChanged="UserControl_IsVisibleChanged">
|
|
<UserControl.Resources>
|
|
<ResourceDictionary>
|
|
<view:BoolConverter x:Key="convReverse" FalseValue="True" TrueValue="False"/>
|
|
<view:BoolConverter x:Key="convDeviceEnableColor" TrueValue="Green" FalseValue="Red"/>
|
|
</ResourceDictionary>
|
|
</UserControl.Resources>
|
|
<behavior:Interaction.Triggers>
|
|
<behavior:PropertyChangedTrigger Binding="{Binding IsVisible, ElementName=uc}">
|
|
<behavior:InvokeCommandAction Command="{Binding CMD_VisibleChanged}" CommandParameter="{Binding IsVisible, ElementName=uc}"/>
|
|
</behavior:PropertyChangedTrigger>
|
|
</behavior:Interaction.Triggers>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="0.7*"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid Grid.Column="0" Margin="0">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
<Border Grid.Row="0" Margin="0" BorderBrush="Gray" BorderThickness="1">
|
|
<WindowsFormsHost x:Name="windowsFormsHost" Loaded="WindowsFormsHost_Loaded"></WindowsFormsHost>
|
|
</Border>
|
|
|
|
<Border Grid.Row="1" Margin="0 5 0 0" BorderBrush="Gray" BorderThickness="1">
|
|
<Grid x:Name="gridCommonAutoRunCameraView"></Grid>
|
|
</Border>
|
|
</Grid>
|
|
|
|
<Grid Grid.Column="1" Margin="5 0 0 0">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<GroupBox Grid.Row="0" Header="Working Position" Margin="0 0 0 0">
|
|
<local:UCWorkPos DataContext="{Binding WorkPosViewModel}"></local:UCWorkPos>
|
|
</GroupBox>
|
|
|
|
<GroupBox Grid.Row="1" Header="Sequence Diagram State" Margin="0 5 0 0">
|
|
<Border BorderBrush="Gray" BorderThickness="1">
|
|
<ContentControl Grid.Column="1" Content="{Binding ContentDiagram}"/>
|
|
</Border>
|
|
</GroupBox>
|
|
</Grid>
|
|
</Grid>
|
|
</UserControl>
|