DotView.xaml 1.9 KB

1234567891011121314151617181920212223242526272829303132
  1. <UserControl x:Class="NEIntelligentControl2.Views.AGC.DotView"
  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:NEIntelligentControl2.Views.AGC"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800">
  9. <UserControl.Resources>
  10. <Style x:Key="MainRadioButtonStyle" TargetType="{x:Type RadioButton}">
  11. <Setter Property="Template">
  12. <Setter.Value>
  13. <ControlTemplate TargetType="{x:Type RadioButton}">
  14. <Ellipse x:Name="ellipse" Margin="5" MinHeight="9" MinWidth="9" Fill="#FF646464" HorizontalAlignment="Left" VerticalAlignment="Top" StrokeThickness="0"/>
  15. <ControlTemplate.Triggers>
  16. <Trigger Property="IsMouseOver" Value="true">
  17. <Setter Property="Fill" TargetName="ellipse" Value="#FFBBBBBB"/>
  18. </Trigger>
  19. <Trigger Property="IsChecked" Value="true">
  20. <Setter Property="Fill" TargetName="ellipse" Value="White"/>
  21. </Trigger>
  22. <Trigger Property="IsChecked" Value="{x:Null}">
  23. <Setter Property="Fill" TargetName="ellipse" Value="#FF646464"/>
  24. </Trigger>
  25. </ControlTemplate.Triggers>
  26. </ControlTemplate>
  27. </Setter.Value>
  28. </Setter>
  29. </Style>
  30. </UserControl.Resources>
  31. <StackPanel x:Name="_SPMain" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  32. </UserControl>