<UserControl x:Class="SceneButtonsUC"
             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="85.3" d:DesignWidth="597.1">

   <!-- Definizione del controllo SceneButton -->
   <Grid Name="SceneButtonsGrid">
      <Grid.ColumnDefinitions>
         <ColumnDefinition Width="1*"/>
         <ColumnDefinition Width="1*"/>
         <ColumnDefinition Width="1*"/>
         <ColumnDefinition Width="1*"/>
         <ColumnDefinition Width="1*"/>
         <ColumnDefinition Width="1*"/>
         <ColumnDefinition Width="1*"/>
      </Grid.ColumnDefinitions>

      <ToggleButton Name="MeasureBtn" Grid.Column="0" Style="{DynamicResource OmagCut_RightGrayYellowIconToggleButton}">
         <Image Source="{DynamicResource MeasureImg}" Style="{DynamicResource OmagCut_ButtonIcon}"/>
      </ToggleButton>
      <Button Name="ZoomAllBtn" Grid.Column="1" Style="{DynamicResource OmagCut_RightGrayGradientYellowButton}">
         <Image Source="{DynamicResource ZoomAllImg}" Style="{DynamicResource OmagCut_ButtonIcon}"/>
      </Button>
      <Button Name="ZoomInBtn" Grid.Column="2" Style="{DynamicResource OmagCut_RightGrayGradientYellowButton}">
         <Image Source="{DynamicResource ZoomInImg}" Style="{DynamicResource OmagCut_ButtonIcon}"/>
      </Button>
      <Button Name="ZoomOutBtn" Grid.Column="3" Style="{DynamicResource OmagCut_RightGrayGradientYellowButton}">
         <Image Source="{DynamicResource ZoomOutImg}" Style="{DynamicResource OmagCut_ButtonIcon}"/>
      </Button>
      <Button Name="PanBtn" Grid.Column="4" Style="{DynamicResource OmagCut_RightGrayGradientYellowButton}">
         <Image Source="{DynamicResource PanImg}" Style="{DynamicResource OmagCut_ButtonIcon}"/>
      </Button>
      <Button Name="GenericViewBtn" Grid.Column="5" Style="{DynamicResource OmagCut_RightGrayGradientYellowButton}">
         <Image Source="{DynamicResource GenericViewImg}" Style="{DynamicResource OmagCut_ButtonIcon}"/>
      </Button>
      <Button Name="TopViewBtn" Grid.Column="6" Style="{DynamicResource OmagCut_RightGrayGradientYellowButton}">
         <Image Source="{DynamicResource LookFromTOPImg}" Style="{DynamicResource OmagCut_ButtonIcon}"/>
      </Button>
      <Popup Name="ViewPopUp"
             IsOpen="False"
             AllowsTransparency="False"
             PopupAnimation="Scroll"
             StaysOpen="False"  
             Placement="Bottom"
             PlacementTarget="{Binding ElementName=TopViewBtn}">
         <WrapPanel Orientation="Vertical" 
                    Width="78"
                    Background="{DynamicResource OmagCut_Gray}">
            <Button x:Name="BottomViewBtn" 
                    ToolTip="Bottom View"
                    Style="{DynamicResource OmagCut_RightGrayGradientYellowButton}">
               <Image Source="{DynamicResource LookFromBOTTOMImg}" Style="{DynamicResource OmagCut_ButtonIcon}"/>
            </Button>
            <Button x:Name="FrontViewBtn" 
                    ToolTip="Front View"
                    Style="{DynamicResource OmagCut_RightGrayGradientYellowButton}">
               <Image Source="{DynamicResource LookFromFRONTImg}" Style="{DynamicResource OmagCut_ButtonIcon}"/>
            </Button>
            <Button x:Name="BackViewBtn"
                    ToolTip="Back View"
                    Style="{DynamicResource OmagCut_RightGrayGradientYellowButton}">
               <Image Source="{DynamicResource LookFromBACKImg}" Style="{DynamicResource OmagCut_ButtonIcon}"/>
            </Button>
            <Button x:Name="LeftViewBtn"
                    ToolTip="Left View"
                    Style="{DynamicResource OmagCut_RightGrayGradientYellowButton}">
               <Image Source="{DynamicResource LookFromLEFTImg}" Style="{DynamicResource OmagCut_ButtonIcon}"/>
            </Button>
            <Button x:Name="RightViewBtn"
                    ToolTip="Right View"
                    Style="{DynamicResource OmagCut_RightGrayGradientYellowButton}">
               <Image Source="{DynamicResource LookFromRIGHTImg}" Style="{DynamicResource OmagCut_ButtonIcon}"/>
            </Button>
         </WrapPanel>
      </Popup>

   </Grid>

</UserControl>
