e621fb46d0
- Aggiunti bottoni v e x - Aggiunte dimansioni oggetto - Esteso uso EgtTextBox2 - Modificato RibParamPanel e ShellNumberParamPanel
143 lines
5.9 KiB
XML
143 lines
5.9 KiB
XML
<Grid x:Class="DispositionPanelV"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
|
xmlns:PrintApp="clr-namespace:Icarus"
|
|
VerticalAlignment="Stretch"
|
|
Margin="5,0,0,0">
|
|
|
|
<Grid.Resources>
|
|
<PrintApp:FromBooleanToVisibility x:Key="FromBooleanToVisibility"/>
|
|
</Grid.Resources>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="{Binding ActualHeight, ElementName=MoveBtn}"/>
|
|
<RowDefinition Height="{Binding ActualHeight, ElementName=MoveBtn}"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="{Binding ActualHeight, ElementName=MoveBtn}"/>
|
|
<RowDefinition Height="{Binding ActualHeight, ElementName=MoveBtn}"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<ToggleButton x:Name="MoveBtn"
|
|
Grid.Row="3"
|
|
Content="Move"
|
|
IsChecked="{Binding bMove_IsChecked}"
|
|
Margin="0,0,0,2.5"
|
|
Style="{StaticResource LeftPanel_ToggleButton}"/>
|
|
|
|
<Border x:Name="PopupBrd"
|
|
Grid.Column="1"
|
|
Grid.Row="1"
|
|
Grid.RowSpan="5"
|
|
VerticalAlignment="Center"
|
|
Visibility="{Binding IsChecked, ElementName=MoveBtn, Converter={StaticResource FromBooleanToVisibility}}"
|
|
Style="{StaticResource LeftPanel_Popup_Border}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
<Grid Margin="0,0,0,2.5">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="X"
|
|
Style="{StaticResource Move_TextBlock}"/>
|
|
<EgtWPFLib5:EgtTextBox2 Text="{Binding sXPos, UpdateSourceTrigger=Explicit}"
|
|
Grid.Column="1"
|
|
Margin="5,0,0,0"
|
|
Style="{StaticResource LeftPanel_TextBox2}"/>
|
|
</Grid>
|
|
<Grid Grid.Row="1"
|
|
Margin="0,2.5,0,2.5">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="Y"
|
|
Style="{StaticResource Move_TextBlock}"/>
|
|
<EgtWPFLib5:EgtTextBox2 Text="{Binding sYPos, UpdateSourceTrigger=Explicit}"
|
|
Grid.Column="1"
|
|
Margin="5,0,0,0"
|
|
Style="{StaticResource LeftPanel_TextBox2}"/>
|
|
</Grid>
|
|
<Grid Grid.Row="2"
|
|
Margin="0,2.5,0,2.5">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="Z"
|
|
Style="{StaticResource Move_TextBlock}"/>
|
|
<EgtWPFLib5:EgtTextBox2 Text="{Binding sZPos, UpdateSourceTrigger=Explicit}"
|
|
Grid.Column="1"
|
|
Margin="5,0,0,0"
|
|
Style="{StaticResource LeftPanel_TextBox2}"/>
|
|
</Grid>
|
|
<Grid Grid.Row="3"
|
|
Margin="0,2.5,0,0">
|
|
<Button Content="Drag"
|
|
Command="{Binding DragMove_Command}"
|
|
Style="{StaticResource LeftPanel_TextButton}"/>
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<ToggleButton x:Name="RotateBtn"
|
|
Grid.Row="4"
|
|
Content="Rotate"
|
|
IsChecked="{Binding bRotate_IsChecked}"
|
|
Margin="0,2.5,0,0"
|
|
Style="{StaticResource LeftPanel_ToggleButton}"/>
|
|
|
|
<Border Grid.Column="1"
|
|
Grid.Row="2"
|
|
Grid.RowSpan="5"
|
|
VerticalAlignment="Center"
|
|
Visibility="{Binding IsChecked, ElementName=RotateBtn, Converter={StaticResource FromBooleanToVisibility}}"
|
|
Style="{StaticResource LeftPanel_Popup_Border}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
<UniformGrid Columns="3">
|
|
<RadioButton Content="X"
|
|
GroupName="Axes"
|
|
IsChecked="{Binding RotX}"
|
|
Style="{StaticResource ToolBar_ToggleButton}"/>
|
|
<RadioButton Content="Y"
|
|
GroupName="Axes"
|
|
IsChecked="{Binding RotY}"
|
|
Style="{StaticResource ToolBar_ToggleButton}"/>
|
|
<RadioButton Content="Z"
|
|
GroupName="Axes"
|
|
IsChecked="{Binding RotZ}"
|
|
Style="{StaticResource ToolBar_ToggleButton}"/>
|
|
</UniformGrid>
|
|
<EgtWPFLib5:EgtTextBox2 Grid.Row="1"
|
|
Text="{Binding sRotAngle, UpdateSourceTrigger=Explicit}"
|
|
ResetValueOnLostFocus="False"
|
|
Margin="0,5,0,2.5"/>
|
|
<Grid Grid.Row="2"
|
|
Margin="0,2.5,0,0">
|
|
<Button Content="Drag"
|
|
Command="{Binding DragRotate_Command}"
|
|
Style="{StaticResource LeftPanel_TextButton}"/>
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
|
|
</Grid>
|