251 lines
11 KiB
XML
251 lines
11 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">
|
|
<Grid.Resources>
|
|
<PrintApp:CenterToolTipConverter x:Key="CenterToolTipConverter"/>
|
|
<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}"
|
|
Style="{StaticResource ToolBar_TextToggleButton}"/>
|
|
<!--<Border Background="Red"
|
|
Grid.Column="1"
|
|
Grid.Row="1"
|
|
Grid.RowSpan="5"
|
|
Width="50"
|
|
VerticalAlignment="Stretch"/>-->
|
|
|
|
<Border x:Name="PopupBrd"
|
|
Grid.Column="1"
|
|
Grid.Row="1"
|
|
Grid.RowSpan="5"
|
|
VerticalAlignment="Center"
|
|
Margin="5,0,0,0"
|
|
Visibility="{Binding IsChecked, ElementName=MoveBtn, Converter={StaticResource FromBooleanToVisibility}}"
|
|
Style="{StaticResource LeftPanelPopup_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"
|
|
VerticalAlignment="Center"/>
|
|
<EgtWPFLib5:EgtTextBox Text="{Binding sXPos, UpdateSourceTrigger=Explicit}"
|
|
Grid.Column="1"
|
|
Margin="5,0,0,0"
|
|
Style="{StaticResource LeftPanel_TextBox}"/>
|
|
</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"
|
|
VerticalAlignment="Center"/>
|
|
<EgtWPFLib5:EgtTextBox Text="{Binding sYPos, UpdateSourceTrigger=Explicit}"
|
|
Grid.Column="1"
|
|
Margin="5,0,0,0"
|
|
Style="{StaticResource LeftPanel_TextBox}"/>
|
|
</Grid>
|
|
<Grid Grid.Row="2"
|
|
Margin="0,2.5,0,0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="Z"
|
|
VerticalAlignment="Center"/>
|
|
<EgtWPFLib5:EgtTextBox Text="{Binding sZPos, UpdateSourceTrigger=Explicit}"
|
|
Grid.Column="1"
|
|
Margin="5,0,0,0"
|
|
Style="{StaticResource LeftPanel_TextBox}"/>
|
|
</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>
|
|
|
|
<!--<Popup IsOpen="{Binding IsChecked, ElementName=MoveBtn}"
|
|
PlacementTarget="{Binding ElementName=MoveBtn}"
|
|
Style="{StaticResource LeftPanel_Popup}">
|
|
<Border x:Name="PopupBrd" Style="{StaticResource LeftPanelPopup_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"
|
|
VerticalAlignment="Center"/>
|
|
<EgtWPFLib5:EgtTextBox Text="{Binding sXPos, UpdateSourceTrigger=Explicit}"
|
|
Grid.Column="1"
|
|
Margin="5,0,0,0"
|
|
Style="{StaticResource LeftPanel_TextBox}"/>
|
|
</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"
|
|
VerticalAlignment="Center"/>
|
|
<EgtWPFLib5:EgtTextBox Text="{Binding sYPos, UpdateSourceTrigger=Explicit}"
|
|
Grid.Column="1"
|
|
Margin="5,0,0,0"
|
|
Style="{StaticResource LeftPanel_TextBox}"/>
|
|
</Grid>
|
|
<Grid Grid.Row="2"
|
|
Margin="0,2.5,0,0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="Z"
|
|
VerticalAlignment="Center"/>
|
|
<EgtWPFLib5:EgtTextBox Text="{Binding sZPos, UpdateSourceTrigger=Explicit}"
|
|
Grid.Column="1"
|
|
Margin="5,0,0,0"
|
|
Style="{StaticResource LeftPanel_TextBox}"/>
|
|
</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>
|
|
</Popup>-->
|
|
|
|
<ToggleButton x:Name="RotateBtn"
|
|
Grid.Row="4"
|
|
Content="Rotate"
|
|
IsChecked="{Binding bRotate_IsChecked}"
|
|
Style="{StaticResource ToolBar_TextToggleButton}"/>
|
|
<!--<Border Background="Blue"
|
|
Grid.Column="2"
|
|
Grid.Row="2"
|
|
Grid.RowSpan="5"
|
|
Width="50"
|
|
VerticalAlignment="Stretch"
|
|
HorizontalAlignment="Stretch"/>-->
|
|
|
|
<Border Grid.Column="1"
|
|
Grid.Row="2"
|
|
Grid.RowSpan="5"
|
|
VerticalAlignment="Center"
|
|
Margin="5,0,0,0"
|
|
Visibility="{Binding IsChecked, ElementName=RotateBtn, Converter={StaticResource FromBooleanToVisibility}}"
|
|
Style="{StaticResource LeftPanelPopup_Border}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
<UniformGrid Columns="3">
|
|
<RadioButton Content="X"
|
|
GroupName="Axes"
|
|
IsChecked="{Binding RotAxes[0]}"
|
|
Style="{StaticResource ToolBar_ToggleButton}"/>
|
|
<RadioButton Content="Y"
|
|
GroupName="Axes"
|
|
IsChecked="{Binding RotAxes[1]}"
|
|
Style="{StaticResource ToolBar_ToggleButton}"/>
|
|
<RadioButton Content="Z"
|
|
GroupName="Axes"
|
|
IsChecked="{Binding RotAxes[2]}"
|
|
Style="{StaticResource ToolBar_ToggleButton}"/>
|
|
</UniformGrid>
|
|
<EgtWPFLib5:EgtTextBox Grid.Row="1"
|
|
Text="{Binding sRotAngle, UpdateSourceTrigger=Explicit}"
|
|
Margin="0,5,0,0"/>
|
|
<Grid Grid.Row="2"
|
|
Margin="0,2.5,0,0">
|
|
<Button Content="Drag"
|
|
Command="{Binding DragRotate_Command}"
|
|
Style="{StaticResource LeftPanel_TextButton}"/>
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<!--<Popup IsOpen="{Binding IsChecked, ElementName=RotateBtn}"
|
|
Grid.Column="1"
|
|
PlacementTarget="{Binding ElementName=RotateBtn}"
|
|
Style="{StaticResource LeftPanel_Popup}">
|
|
<Border Style="{StaticResource LeftPanelPopup_Border}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
<UniformGrid Columns="3">
|
|
<RadioButton Content="X"
|
|
GroupName="Axes"
|
|
IsChecked="{Binding RotAxes[0]}"
|
|
Style="{StaticResource ToolBar_ToggleButton}"/>
|
|
<RadioButton Content="Y"
|
|
GroupName="Axes"
|
|
IsChecked="{Binding RotAxes[1]}"
|
|
Style="{StaticResource ToolBar_ToggleButton}"/>
|
|
<RadioButton Content="Z"
|
|
GroupName="Axes"
|
|
IsChecked="{Binding RotAxes[2]}"
|
|
Style="{StaticResource ToolBar_ToggleButton}"/>
|
|
</UniformGrid>
|
|
<EgtWPFLib5:EgtTextBox Grid.Row="1"
|
|
Text="{Binding sRotAngle, UpdateSourceTrigger=Explicit}"
|
|
Margin="0,5,0,0"/>
|
|
<Grid Grid.Row="2"
|
|
Margin="0,2.5,0,0">
|
|
<Button Content="Drag"
|
|
Command="{Binding DragRotate_Command}"
|
|
Style="{StaticResource LeftPanel_TextButton}"/>
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
</Popup>-->
|
|
</Grid>
|