forked from amkovkov/GranuSightSoftware2
1) remove unused components: camera view (due it causes segmentation faults), compute resources and all related, illuminator controller (due in useless without camera view), image storage service, temperature and humidity service 2) database schema - reduce tables references, features storing in records themselves in compressed form, add records creation and editing date and time, add separator comment column 3) analysis - rework of pipeline and ui, now database storing only raw data and all display values calculated from it 4) lights service - add reconnection if disconnected 5) add width and height command line arguments 6) fix some typos and other issues
103 lines
4.6 KiB
XML
103 lines
4.6 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"/> <!-- Пробы -->
|
|
</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>
|
|
|
|
</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 Camera}"/> --> <!-- Камера -->
|
|
<!-- <ContentControl Content="{Binding System}"/> --> <!-- Система -->
|
|
</core:SectionPanel>
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</UserControl>
|