1234567891011121314151617181920212223242526272829303132 |
- <UserControl x:Class="NEIntelligentControl2.Views.AGC.DotView"
- 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:NEIntelligentControl2.Views.AGC"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800">
- <UserControl.Resources>
- <Style x:Key="MainRadioButtonStyle" TargetType="{x:Type RadioButton}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RadioButton}">
- <Ellipse x:Name="ellipse" Margin="5" MinHeight="9" MinWidth="9" Fill="#FF646464" HorizontalAlignment="Left" VerticalAlignment="Top" StrokeThickness="0"/>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Fill" TargetName="ellipse" Value="#FFBBBBBB"/>
- </Trigger>
- <Trigger Property="IsChecked" Value="true">
- <Setter Property="Fill" TargetName="ellipse" Value="White"/>
- </Trigger>
- <Trigger Property="IsChecked" Value="{x:Null}">
- <Setter Property="Fill" TargetName="ellipse" Value="#FF646464"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </UserControl.Resources>
- <StackPanel x:Name="_SPMain" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </UserControl>
|