113 lines
5.2 KiB
XML
113 lines
5.2 KiB
XML
<Window x:Class="NavisworksTransport.UI.WPF.Views.EditRotationWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Title="调整物体角度" Height="320" Width="400"
|
|
WindowStartupLocation="CenterScreen"
|
|
ResizeMode="NoResize"
|
|
ShowInTaskbar="False"
|
|
Topmost="True"
|
|
Background="White">
|
|
<Window.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="pack://application:,,,/TransportPlugin;component/src/UI/WPF/Resources/NavisworksStyles.xaml"/>
|
|
</ResourceDictionary.MergedDictionaries>
|
|
</ResourceDictionary>
|
|
</Window.Resources>
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- 标题栏 -->
|
|
<Border Grid.Row="0" Background="#FFF8FBFF" BorderBrush="#FFD4E7FF" BorderThickness="0,0,0,1" Padding="20,15">
|
|
<StackPanel>
|
|
<TextBlock Text="调整物体角度" FontWeight="SemiBold" FontSize="14" Foreground="#FF2B579A"/>
|
|
<TextBlock Text="调整物体在路径起点时的水平旋转角度(顺时针)" FontSize="10" Foreground="#FF666666" Margin="0,3,0,0"/>
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<!-- 输入区域 -->
|
|
<Border Grid.Row="1" Padding="20,15">
|
|
<StackPanel>
|
|
<!-- 角度输入 -->
|
|
<Grid Margin="0,0,0,12">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="80"/>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="50"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="旋转角度:" VerticalAlignment="Center" FontSize="11" Foreground="#FF333333"/>
|
|
<TextBox Grid.Column="1"
|
|
Text="{Binding RotationAngle, StringFormat=0.0, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
Height="28"
|
|
VerticalContentAlignment="Center"
|
|
Padding="8,0"
|
|
FontSize="11"
|
|
BorderBrush="#FFCCCCCC"
|
|
BorderThickness="1"/>
|
|
<TextBlock Grid.Column="2" Text="°" VerticalAlignment="Center" FontSize="11" Foreground="#FF666666" Margin="8,0,0,0"/>
|
|
</Grid>
|
|
|
|
<!-- 快捷按钮 -->
|
|
<TextBlock Text="快捷角度:" FontSize="10" Foreground="#FF666666" Margin="0,0,0,8"/>
|
|
<StackPanel Orientation="Horizontal">
|
|
<Button Content="0°"
|
|
Click="OnQuickAngleClick"
|
|
Tag="0"
|
|
Style="{StaticResource SecondaryButtonStyle}"
|
|
Width="70"
|
|
Height="28"
|
|
Margin="0,0,8,0"/>
|
|
<Button Content="90°"
|
|
Click="OnQuickAngleClick"
|
|
Tag="90"
|
|
Style="{StaticResource SecondaryButtonStyle}"
|
|
Width="70"
|
|
Height="28"
|
|
Margin="0,0,8,0"/>
|
|
<Button Content="180°"
|
|
Click="OnQuickAngleClick"
|
|
Tag="180"
|
|
Style="{StaticResource SecondaryButtonStyle}"
|
|
Width="70"
|
|
Height="28"
|
|
Margin="0,0,8,0"/>
|
|
<Button Content="270°"
|
|
Click="OnQuickAngleClick"
|
|
Tag="270"
|
|
Style="{StaticResource SecondaryButtonStyle}"
|
|
Width="70"
|
|
Height="28"/>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<!-- 按钮栏 -->
|
|
<Border Grid.Row="2" Background="#FFF8FBFF" BorderBrush="#FFD4E7FF" BorderThickness="0,1,0,0" Padding="20,12">
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
|
|
<Button Content="恢复初始值"
|
|
Click="OnResetClick"
|
|
Style="{StaticResource SecondaryButtonStyle}"
|
|
Width="90"
|
|
Height="32"
|
|
Margin="0,0,10,0"/>
|
|
<Button Content="确认"
|
|
Click="OnConfirmClick"
|
|
Style="{StaticResource ActionButtonStyle}"
|
|
Width="90"
|
|
Height="32"
|
|
Margin="0,0,10,0"/>
|
|
<Button Content="取消"
|
|
Click="OnCancelClick"
|
|
Style="{StaticResource SecondaryButtonStyle}"
|
|
Width="90"
|
|
Height="32"/>
|
|
</StackPanel>
|
|
</Border>
|
|
</Grid>
|
|
</Window>
|