| 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:chrome="using:CascadeIDE.Features.UiChrome" |
| 7 | xmlns:vm="using:CascadeIDE.ViewModels" |
| 8 | mc:Ignorable="d" d:DesignWidth="560" d:DesignHeight="400" |
| 9 | x:Class="CascadeIDE.Views.MfdHostWindow" |
| 10 | x:DataType="vm:MainWindowViewModel" |
| 11 | Title="Cascade — вторичный контур (Mfd)" |
| 12 | Width="560" Height="400" |
| 13 | MinWidth="320" MinHeight="240" |
| 14 | Icon="/Assets/avalonia-logo.ico" |
| 15 | Background="{DynamicResource CascadeTheme.MainWindowBackground}"> |
| 16 | |
| 17 | <!-- ADR 0017 п. 8: полный MfdShellView (все страницы), как колонка Mfd в MainWindow. --> |
| 18 | <Grid Background="{DynamicResource CascadeTheme.MainWindowBackground}"> |
| 19 | <views:MfdShellView DataContext="{Binding}" MinHeight="0"/> |
| 20 | <!-- W3: mount-layer host preview для MFD (паритет с PFD-host). --> |
| 21 | <views:ZoneInstrumentMountView IsVisible="{Binding UseSkiaInstrumentMount}" |
| 22 | HorizontalAlignment="Right" |
| 23 | VerticalAlignment="Top" |
| 24 | Margin="8" |
| 25 | Width="250" |
| 26 | InstrumentId="ide_health_status_v1" |
| 27 | SlotId="mfd" |
| 28 | MountStyle="{Binding MfdInstrumentMountStyle}" |
| 29 | ZIndex="415"/> |
| 30 | <!-- W2: preview контура зоны MFD в отдельном окне-хосте. --> |
| 31 | <Border x:Name="SkiaZoneGeometryOverlayMfdHost" |
| 32 | IsVisible="{Binding ShowSkiaZoneGeometryOverlay}" |
| 33 | ZIndex="410" |
| 34 | BorderThickness="2" |
| 35 | BorderBrush="#B38CFF" |
| 36 | CornerRadius="4" |
| 37 | Background="#04000000" |
| 38 | IsHitTestVisible="False"> |
| 39 | <TextBlock Text="MFD" |
| 40 | Margin="6,4,0,0" |
| 41 | HorizontalAlignment="Left" |
| 42 | VerticalAlignment="Top" |
| 43 | Foreground="#E6D8FF"/> |
| 44 | </Border> |
| 45 | <!-- Паритет ide_highlight_control с MainWindow: та же рамка поверх клиентской области. --> |
| 46 | <Canvas x:Name="AgentHighlightLayer" ZIndex="1000" IsHitTestVisible="False" |
| 47 | HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> |
| 48 | <Border x:Name="AgentHighlightOverlay" IsVisible="False" BorderBrush="#FF6B9D" BorderThickness="2" Background="#10000000"/> |
| 49 | </Canvas> |
| 50 | <views:CommandPaletteView ZIndex="5000"/> |
| 51 | <views:CockpitCommandLineOverlayView DataContext="{Binding CockpitCommandLineOverlay}" ZIndex="4999"/> |
| 52 | </Grid> |
| 53 | </views:PointerTrackingWindow> |
| 54 | |