| 1 | <views:PointerTrackingWindow xmlns="https://github.com/avaloniaui" |
| 2 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 3 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 4 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 5 | xmlns:views="using:CascadeIDE.Views" |
| 6 | xmlns:vm="using:CascadeIDE.ViewModels" |
| 7 | xmlns:chrome="using:CascadeIDE.Features.UiChrome" |
| 8 | mc:Ignorable="d" d:DesignWidth="900" d:DesignHeight="600" |
| 9 | x:Class="CascadeIDE.Views.PmSplitHostWindow" |
| 10 | x:DataType="vm:MainWindowViewModel" |
| 11 | Title="Cascade — PFD + MFD (сплит)" |
| 12 | Width="900" Height="600" |
| 13 | MinWidth="480" MinHeight="320" |
| 14 | Icon="/Assets/avalonia-logo.ico" |
| 15 | Background="{DynamicResource CascadeTheme.MainWindowBackground}"> |
| 16 | |
| 17 | <!-- Две зоны на одном экране — как колонки PFD | MFD в MainWindow без Forward (ADR 0017). --> |
| 18 | <Grid x:Name="PmSplitRootGrid" ColumnDefinitions="220,4,340" |
| 19 | Background="{DynamicResource CascadeTheme.MainWindowBackground}"> |
| 20 | <chrome:AttentionZoneContainer Zone="Pfd" Grid.Column="0"> |
| 21 | <Grid> |
| 22 | <views:SolutionExplorerView IsVisible="{Binding IsDockedPfdSolutionExplorerTree}"/> |
| 23 | <Grid IsVisible="{Binding IsDockedPfdWorkspaceNavigationMap}"> |
| 24 | <views:WorkspaceNavigationMapView DataContext="{Binding NavigationMap}"/> |
| 25 | </Grid> |
| 26 | <views:ZoneInstrumentMountView IsVisible="{Binding UseSkiaInstrumentMount}" |
| 27 | HorizontalAlignment="Right" |
| 28 | VerticalAlignment="Top" |
| 29 | Margin="8" |
| 30 | Width="250" |
| 31 | InstrumentId="ide_health_status_v1" |
| 32 | SlotId="pfd" |
| 33 | MountStyle="{Binding PfdInstrumentMountStyle}" |
| 34 | ZIndex="415"/> |
| 35 | </Grid> |
| 36 | </chrome:AttentionZoneContainer> |
| 37 | <GridSplitter Grid.Column="1" Width="4" ResizeDirection="Columns" |
| 38 | Background="{DynamicResource CascadeTheme.WorkspacePanelBorderBrush}" |
| 39 | IsEnabled="{Binding WorkspaceSplittersUnlocked}"/> |
| 40 | <chrome:AttentionZoneContainer Zone="Mfd" Grid.Column="2"> |
| 41 | <views:MfdShellView DataContext="{Binding}" MinHeight="0"/> |
| 42 | </chrome:AttentionZoneContainer> |
| 43 | <Border x:Name="SkiaZoneGeometryOverlayPfdPm" |
| 44 | Grid.Column="0" |
| 45 | IsVisible="{Binding ShowSkiaZoneGeometryOverlay}" |
| 46 | ZIndex="410" |
| 47 | BorderThickness="2" |
| 48 | BorderBrush="#7CC9FF" |
| 49 | CornerRadius="4" |
| 50 | Background="#04000000" |
| 51 | IsHitTestVisible="False"> |
| 52 | <TextBlock Text="PFD" |
| 53 | Margin="6,4,0,0" |
| 54 | HorizontalAlignment="Left" |
| 55 | VerticalAlignment="Top" |
| 56 | Foreground="#C6F2FF"/> |
| 57 | </Border> |
| 58 | <Border x:Name="SkiaZoneGeometryOverlayMfdPm" |
| 59 | Grid.Column="2" |
| 60 | IsVisible="{Binding ShowSkiaZoneGeometryOverlay}" |
| 61 | ZIndex="410" |
| 62 | BorderThickness="2" |
| 63 | BorderBrush="#B38CFF" |
| 64 | CornerRadius="4" |
| 65 | Background="#04000000" |
| 66 | IsHitTestVisible="False"> |
| 67 | <TextBlock Text="MFD" |
| 68 | Margin="6,4,0,0" |
| 69 | HorizontalAlignment="Left" |
| 70 | VerticalAlignment="Top" |
| 71 | Foreground="#E6D8FF"/> |
| 72 | </Border> |
| 73 | <Canvas x:Name="AgentHighlightLayer" Grid.Column="0" Grid.ColumnSpan="3" ZIndex="1000" IsHitTestVisible="False" |
| 74 | HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> |
| 75 | <Border x:Name="AgentHighlightOverlay" IsVisible="False" BorderBrush="#FF6B9D" BorderThickness="2" Background="#10000000"/> |
| 76 | </Canvas> |
| 77 | <views:CommandPaletteView Grid.Column="0" Grid.ColumnSpan="3" ZIndex="5000"/> |
| 78 | <views:CockpitCommandLineOverlayView Grid.Column="0" Grid.ColumnSpan="3" |
| 79 | DataContext="{Binding CockpitCommandLineOverlay}" |
| 80 | ZIndex="4999"/> |
| 81 | </Grid> |
| 82 | </views:PointerTrackingWindow> |
| 83 | |