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