forked from amkovkov/GranuSightSoftware2
110 lines
5.1 KiB
XML
110 lines
5.1 KiB
XML
<UserControl
|
|
x:Class="GSS2.Views.AmineContentView"
|
|
xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:vm="using:GSS2.ViewModels"
|
|
xmlns:core="using:GSS2.UI.Core"
|
|
xmlns:avalonia_converters="using:Avalonia.Data.Converters"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
x:DataType="vm:AmineContentViewModel">
|
|
|
|
<UserControl.Resources>
|
|
<SolidColorBrush x:Key="MainBackground" Color="#001e46" />
|
|
<SolidColorBrush x:Key="ButtonBackground" Color="#0865b2" />
|
|
<SolidColorBrush x:Key="ButtonForeground" Color="#ffffff" />
|
|
</UserControl.Resources>
|
|
|
|
<UserControl.Styles>
|
|
|
|
<Style Selector="Button">
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
|
<Setter Property="Background" Value="{StaticResource ButtonBackground}" />
|
|
<Setter Property="Foreground" Value="{StaticResource ButtonForeground}" />
|
|
</Style>
|
|
|
|
<Style Selector="Button.menu">
|
|
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
|
<Setter Property="VerticalAlignment" Value="Stretch" />
|
|
</Style>
|
|
|
|
<Style Selector="TextBlock.menu-text">
|
|
<Setter Property="FontSize" Value="20"/>
|
|
</Style>
|
|
|
|
</UserControl.Styles>
|
|
|
|
<Border Background="{StaticResource MainBackground}" BorderThickness="0">
|
|
|
|
<Grid Margin="5">
|
|
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/> <!-- Меню -->
|
|
<RowDefinition Height="*"/> <!-- Основной контент -->
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.RowSpacing>5</Grid.RowSpacing>
|
|
|
|
<!-- Меню -->
|
|
<ScrollViewer
|
|
Grid.Row="0"
|
|
HorizontalScrollBarVisibility="Hidden"
|
|
IsEnabled="{Binding CanInteract}"
|
|
VerticalScrollBarVisibility="Disabled"
|
|
>
|
|
|
|
<Grid ColumnSpacing="5">
|
|
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" MinWidth="200"/> <!-- Анализ -->
|
|
<ColumnDefinition Width="*" MinWidth="200"/> <!-- Марки -->
|
|
<ColumnDefinition Width="*" MinWidth="200"/> <!-- Сепараторы -->
|
|
<ColumnDefinition Width="*" MinWidth="200"/> <!-- Пробы -->
|
|
<ColumnDefinition Width="*" MinWidth="200"/> <!-- Экспорт -->
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<!-- Анализ -->
|
|
<Button Grid.Column="0" Classes="menu" Command="{Binding ChangeSectionCommand}" CommandParameter="0">
|
|
<TextBlock Classes="menu-text" Text="Анализ"/>
|
|
</Button>
|
|
|
|
<!-- Марки -->
|
|
<Button Grid.Column="1" Classes="menu" Command="{Binding ChangeSectionCommand}" CommandParameter="1">
|
|
<TextBlock Classes="menu-text" Text="Марки"/>
|
|
</Button>
|
|
|
|
<!-- Сепараторы -->
|
|
<Button Grid.Column="2" Classes="menu" Command="{Binding ChangeSectionCommand}" CommandParameter="2">
|
|
<TextBlock Classes="menu-text" Text="Сепараторы"/>
|
|
</Button>
|
|
|
|
<!-- Пробы -->
|
|
<Button Grid.Column="3" Classes="menu" Command="{Binding ChangeSectionCommand}" CommandParameter="3">
|
|
<TextBlock Classes="menu-text" Text="Пробы"/>
|
|
</Button>
|
|
|
|
<!-- Экспорт -->
|
|
<Button Grid.Column="4" Classes="menu" Command="{Binding ChangeSectionCommand}" CommandParameter="4">
|
|
<TextBlock Classes="menu-text" Text="Экспорт"/>
|
|
</Button>
|
|
|
|
</Grid>
|
|
</ScrollViewer>
|
|
|
|
<!-- Основной контент -->
|
|
<core:SectionPanel Grid.Row="1" ClipToBounds="True" CurrentIndex="{Binding CurrentIndex}" Orientation="Horizontal" IsScrolling="{Binding IsScrolling}">
|
|
<ContentControl Content="{Binding Analysis}"/> <!-- Анализ -->
|
|
<ContentControl Content="{Binding BrandCalibration}"/> <!-- Марки -->
|
|
<ContentControl Content="{Binding SeparatorCalibration}"/> <!-- Сепараторы -->
|
|
<ContentControl Content="{Binding SampleCalibration}"/> <!-- Пробы -->
|
|
<ContentControl Content="{Binding Export}"/> <!-- Экспорт -->
|
|
<!-- <ContentControl Content="{Binding Camera}"/> --> <!-- Камера -->
|
|
<!-- <ContentControl Content="{Binding System}"/> --> <!-- Система -->
|
|
</core:SectionPanel>
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</UserControl>
|