<Window x:Class="NavisworksTransport.UI.WPF.Views.AerialHeightDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="设置吊装提升高度" Height="240" Width="500"
        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="180"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="提升高度（米）：" VerticalAlignment="Center" FontSize="11" Foreground="#FF333333"/>
                    <TextBox Grid.Column="1" 
                             Name="HeightTextBox"
                             Text="3.0" 
                             Height="28"
                             VerticalContentAlignment="Center"
                             Padding="8,0"
                             FontSize="11"
                             BorderBrush="#FFCCCCCC"
                             BorderThickness="1"/>
                </Grid>
            </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="OnOKClick" 
                        Style="{StaticResource ActionButtonStyle}" 
                        Width="90" 
                        Height="32"
                        Margin="0,0,10,0"
                        ToolTip="设置高度并继续添加更多路径点"/>
                <Button Content="设为终点" 
                        Click="OnSetAsEndPointClick" 
                        Style="{StaticResource SecondaryButtonStyle}" 
                        Width="90"
                        Height="32"
                        Margin="0,0,10,0"
                        Background="#FFE8F5E9"
                        Foreground="#FF2E7D32"
                        ToolTip="将此点设为路径终点，直接降落完成路径"/>
                <Button Content="2点路径" 
                        Click="OnTwoPointPathClick" 
                        Style="{StaticResource SecondaryButtonStyle}" 
                        Width="90"
                        Height="32"
                        Margin="0,0,10,0"
                        Background="#FFFFF3E0"
                        Foreground="#FFE65100"
                        ToolTip="仅生成起点到终点的垂直路径（2个点），无下降段"/>
                <Button Content="取消" 
                        Click="OnCancelClick" 
                        Style="{StaticResource SecondaryButtonStyle}" 
                        Width="90"
                        Height="32"
                        ToolTip="取消这次点击"/>
            </StackPanel>
        </Border>
    </Grid>
</Window>
