<UserControl x:Class="ToolChangerPosUC"
   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" 
   mc:Ignorable="d" 
   d:DesignHeight="128" d:DesignWidth="128">

   <!-- Definizione del ToolHolderUc -->
   <Grid>
      <Image Source="/Resources/ToolChangerPos.png"/>
      <ToggleButton Name="Tool" Width="50" Height="50" Margin="22,40,26,8" Background="#7FB4B4B4">
         <ToggleButton.Template>
            <ControlTemplate TargetType="{x:Type ToggleButton}">
               <Grid>
                  <Ellipse Name="Ellipse" Fill="{TemplateBinding Background}" />
                  <ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
               </Grid>
               <ControlTemplate.Triggers>
                  <Trigger Property="IsChecked" Value="True">
                     <Setter Property="Fill" TargetName="Ellipse" Value="#FFB4B4B4"/>
                  </Trigger>
               </ControlTemplate.Triggers>
            </ControlTemplate>

         </ToggleButton.Template>
      </ToggleButton>
      <TextBlock Name="PositionNameTxBl" Height="22" Width="68" FontSize="16" Margin="12,16,41,61"/>

   </Grid>
</UserControl>
