80 lines
4.3 KiB
XML
80 lines
4.3 KiB
XML
<UserControl x:Class="AuroraOCT.Views.UCOCTDevice"
|
|
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:AuroraOCT.Views"
|
|
xmlns:view="clr-namespace:Aurora.View;assembly=Aurora"
|
|
mc:Ignorable="d" Name="uc"
|
|
xmlns:behavior="http://schemas.microsoft.com/xaml/behaviors"
|
|
d:DataContext="{d:DesignInstance Type=local:UCOCTDeviceViewModel}"
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
<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>
|
|
<UserControl.Resources>
|
|
<ResourceDictionary>
|
|
<view:BoolConverter x:Key="convFieldColor" TrueValue="Red" FalseValue="Gray" />
|
|
<Style x:Key="styleRbJogUnit" TargetType="RadioButton">
|
|
<Setter Property="MinWidth" Value="{Binding RelativeSource={x:Static RelativeSource.Self}, Path=ActualHeight}"/>
|
|
<Setter Property="FontWeight" Value="Bold"/>
|
|
<Setter Property="FontSize" Value="16"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="Height" Value="40"/>
|
|
<Setter Property="OverridesDefaultStyle" Value="True"/>
|
|
<Setter Property="Margin" Value="2 0"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type RadioButton}">
|
|
<Border Name="border" BorderThickness="1" Background="#1A2242"
|
|
BorderBrush="#1A2242">
|
|
<ContentPresenter Margin="0,0,0,4" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="Opacity" Value="0.8" />
|
|
</Trigger>
|
|
<Trigger Property="IsChecked"
|
|
Value="True">
|
|
<Setter TargetName="border"
|
|
Property="Background"
|
|
Value="#A50034" />
|
|
<Setter TargetName="border"
|
|
Property="BorderThickness"
|
|
Value="1" />
|
|
<Setter Property="FontWeight"
|
|
Value="Bold" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ResourceDictionary>
|
|
</UserControl.Resources>
|
|
<Grid>
|
|
<Grid Height="40" VerticalAlignment="Top">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="50"/>
|
|
<ColumnDefinition Width="35"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid Grid.Column="0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Button Grid.Column="0" Margin="5">Start</Button>
|
|
<Button Grid.Column="1" Margin="5">Exit</Button>
|
|
<Button Grid.Column="2" Margin="5">Restart</Button>
|
|
</Grid>
|
|
<TextBlock Grid.Column="1">SW Running</TextBlock>
|
|
<Ellipse Grid.Column="2" Width="25" Height="25" Fill="{Binding bRunningSoftware, Converter={StaticResource convFieldColor}}" Stroke="white" StrokeThickness="2" Margin="10,0,10,0" />
|
|
</Grid>
|
|
</Grid>
|
|
</UserControl>
|