| 1 | <UserControl xmlns="https://github.com/avaloniaui" |
| 2 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 3 | xmlns:vm="using:CascadeIDE.ViewModels" |
| 4 | xmlns:views="using:CascadeIDE.Views" |
| 5 | x:Class="CascadeIDE.Views.MfdShellView" |
| 6 | x:Name="MfdShellRoot" |
| 7 | Classes.power="{Binding UiModeFamily, Converter={StaticResource UiModeFamilyEq}, ConverterParameter=Power}" |
| 8 | x:DataType="vm:MainWindowViewModel"> |
| 9 | <UserControl.Styles> |
| 10 | <Style Selector="Border#MfdContourStackHost"> |
| 11 | <Setter Property="CornerRadius" Value="0"/> |
| 12 | </Style> |
| 13 | <Style Selector="views|MfdShellView.power Border#MfdContourStackHost"> |
| 14 | <Setter Property="CornerRadius" Value="12,12,0,0"/> |
| 15 | <Setter Property="BoxShadow" Value="0 -8 32 0 #4000C8E8, 0 -2 20 0 #20000000"/> |
| 16 | </Style> |
| 17 | </UserControl.Styles> |
| 18 | <!-- Вторичный контур MFD: полоса EICAS/Workspace Health + хост стека страниц (MfdContourStackHost → MfdShellPageStack). --> |
| 19 | <Grid MinHeight="0"> |
| 20 | <Grid.RowDefinitions> |
| 21 | <RowDefinition Height="Auto"/> |
| 22 | <RowDefinition Height="*"/> |
| 23 | </Grid.RowDefinitions> |
| 24 | <views:WorkspaceChromeBandView Grid.Row="0" |
| 25 | IsVisible="{Binding ShowWorkspaceChromeBand}"/> |
| 26 | <Border x:Name="MfdContourStackHost" |
| 27 | Grid.Row="1" |
| 28 | MinHeight="120" |
| 29 | BorderBrush="{DynamicResource CascadeTheme.WorkspacePanelBorderBrush}" |
| 30 | BorderThickness="0,1,0,0" |
| 31 | Padding="4" |
| 32 | Background="{DynamicResource CascadeTheme.MainWindowBackground}"> |
| 33 | <views:MfdShellPageStack/> |
| 34 | </Border> |
| 35 | </Grid> |
| 36 | </UserControl> |
| 37 | |