Files
GSS2Rework/GSS2.Test/Views/MainView.axaml
T
2026-02-19 08:58:46 +03:00

101 lines
3.1 KiB
XML

<UserControl
x:Class="GSS2.Test.Views.MainView"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:core="using:GSS2.UI.Core"
xmlns:core_vm="using:GSS2.UI.Core.ViewModels"
xmlns:local_vm="using:GSS2.Test.ViewModels"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
x:DataType="local_vm:MainViewModel">
<Grid ColumnDefinitions="*,100" RowDefinitions="*,*">
<core:SectionPanel
Grid.Row="0"
Grid.RowSpan="2"
Grid.Column="0"
CanScrollBackward="{Binding CanScrollBackward}"
CanScrollForward="{Binding CanScrollForward}"
ClipToBounds="True"
CurrentIndex="{Binding CurrentIndex}">
<Grid ColumnDefinitions="300,*">
<ContentControl
Grid.Column="0"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Content="{Binding IlluminatorControllerViewModel}" />
<ContentControl
Grid.Column="1"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Content="{Binding CameraViewModel}" />
</Grid>
<Grid ColumnDefinitions="100,*">
<Button
Grid.Column="0"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Command="{Binding ButtonCaptureClick}" />
<Grid
Grid.Column="1"
ColumnDefinitions="*,*"
RowDefinitions="*,*">
<core:OpenCvImage
Grid.Row="0"
Grid.Column="0"
Image="{Binding Image1}" />
<core:OpenCvImage
Grid.Row="0"
Grid.Column="1"
Image="{Binding Image2}" />
<core:OpenCvImage
Grid.Row="1"
Grid.Column="0"
Image="{Binding Image3}" />
<core:OpenCvImage
Grid.Row="1"
Grid.Column="1"
Image="{Binding Image4}" />
</Grid>
</Grid>
<ContentControl
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Content="{Binding ResourcesViewModel}" />
</core:SectionPanel>
<Button
Grid.Row="0"
Grid.Column="1"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Command="{Binding ButtonUpClick}"
IsEnabled="{Binding CanScrollBackward}" />
<Button
Grid.Row="1"
Grid.Column="1"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Command="{Binding ButtonDownClick}"
IsEnabled="{Binding CanScrollForward}" />
</Grid>
</UserControl>