<Window x:Class="NavisworksTransport.UI.WPF.Views.EditCoordinatesWindow"
        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"
        Background="White">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/NavisworksTransportPlugin;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>
                <!-- X坐标 -->
                <Grid Margin="0,0,0,12">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="60"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="X 坐标:" VerticalAlignment="Center" FontSize="11" Foreground="#FF333333"/>
                    <TextBox Grid.Column="1" 
                             Text="{Binding X, StringFormat=0.000, UpdateSourceTrigger=PropertyChanged}" 
                             Height="28"
                             VerticalContentAlignment="Center"
                             Padding="8,0"
                             FontSize="11"
                             BorderBrush="#FFCCCCCC"
                             BorderThickness="1"/>
                </Grid>
                
                <!-- Y坐标 -->
                <Grid Margin="0,0,0,12">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="60"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="Y 坐标:" VerticalAlignment="Center" FontSize="11" Foreground="#FF333333"/>
                    <TextBox Grid.Column="1" 
                             Text="{Binding Y, StringFormat=0.000, UpdateSourceTrigger=PropertyChanged}" 
                             Height="28"
                             VerticalContentAlignment="Center"
                             Padding="8,0"
                             FontSize="11"
                             BorderBrush="#FFCCCCCC"
                             BorderThickness="1"/>
                </Grid>
                
                <!-- Z坐标 -->
                <Grid Margin="0,0,0,12">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="60"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="Z 坐标:" VerticalAlignment="Center" FontSize="11" Foreground="#FF333333"/>
                    <TextBox Grid.Column="1" 
                             Text="{Binding Z, StringFormat=0.000, UpdateSourceTrigger=PropertyChanged}" 
                             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="OnSaveClick" 
                        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>
