forked from amkovkov/GranuSightSoftware2
refactor: format axamls
This commit is contained in:
+11
-7
@@ -1,12 +1,16 @@
|
||||
<Application xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:GSS2.Test"
|
||||
x:Class="GSS2.Test.App"
|
||||
RequestedThemeVariant="Dark">
|
||||
<Application
|
||||
x:Class="GSS2.Test.App"
|
||||
xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:GSS2.Test"
|
||||
RequestedThemeVariant="Dark">
|
||||
|
||||
<Application.Styles>
|
||||
<FluentTheme />
|
||||
</Application.Styles>
|
||||
|
||||
<Application.DataTemplates>
|
||||
<local:DependencyInjectionViewLocator/>
|
||||
<local:DependencyInjectionViewLocator />
|
||||
</Application.DataTemplates>
|
||||
</Application>
|
||||
|
||||
</Application>
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
<Window xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:vm="using:GSS2.Test.ViewModels"
|
||||
x:DataType="vm:MainWindowViewModel"
|
||||
x:Class="GSS2.Test.MainWindow"
|
||||
Title="{Binding Title}">
|
||||
<ContentControl Content="{Binding MainViewModel}"/>
|
||||
<Window
|
||||
x:Class="GSS2.Test.MainWindow"
|
||||
xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:vm="using:GSS2.Test.ViewModels"
|
||||
Title="{Binding Title}"
|
||||
x:DataType="vm:MainWindowViewModel">
|
||||
|
||||
<ContentControl Content="{Binding MainViewModel}" />
|
||||
|
||||
</Window>
|
||||
|
||||
@@ -1,30 +1,100 @@
|
||||
<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">
|
||||
<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="*,*">
|
||||
<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}">
|
||||
|
||||
<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" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Content="{Binding IlluminatorControllerViewModel}" />
|
||||
<ContentControl Grid.Column="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Content="{Binding CameraViewModel}" />
|
||||
|
||||
<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" 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}" />
|
||||
|
||||
<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 VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Content="{Binding ResourcesViewModel}" />
|
||||
|
||||
<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>
|
||||
|
||||
</UserControl>
|
||||
|
||||
Reference in New Issue
Block a user