forked from amkovkov/GranuSightSoftware2
refactor: format axamls
This commit is contained in:
@@ -1,80 +1,89 @@
|
||||
<UserControl xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:layout="using:Avalonia.Layout"
|
||||
xmlns:local="using:GSS2.UI.Core.Views"
|
||||
xmlns:vm="using:GSS2.UI.Core.ViewModels"
|
||||
xmlns:behaviors="using:GSS2.UI.Core.Behaviors"
|
||||
xmlns:converters="using:GSS2.UI.Core.Converters"
|
||||
xmlns:lvc="using:LiveChartsCore.SkiaSharpView.Avalonia"
|
||||
x:Class="GSS2.UI.Core.Views.IlluminatorControllerView"
|
||||
x:DataType="vm:IlluminatorControllerViewModel">
|
||||
<Grid>
|
||||
<Grid x:Name="HorizontalLayout" IsVisible="{Binding Orientation, Converter={x:Static converters:OrientationToBoolConverter.IsHorizontal}}">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<StackPanel Orientation="Horizontal"
|
||||
HorizontalAlignment="Center"
|
||||
Spacing="20">
|
||||
<Slider Orientation="Vertical"
|
||||
Minimum="0" Maximum="1"
|
||||
Value="{Binding WhiteIntencity}"
|
||||
VerticalAlignment="Stretch"/>
|
||||
<Slider Orientation="Vertical"
|
||||
Minimum="0" Maximum="1"
|
||||
Value="{Binding Uv365Intencity}"
|
||||
VerticalAlignment="Stretch"/>
|
||||
<Slider Orientation="Vertical"
|
||||
Minimum="0" Maximum="1"
|
||||
Value="{Binding Uv254Intencity}"
|
||||
VerticalAlignment="Stretch"/>
|
||||
</StackPanel>
|
||||
<UserControl
|
||||
x:Class="GSS2.UI.Core.Views.IlluminatorControllerView"
|
||||
xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:behaviors="using:GSS2.UI.Core.Behaviors"
|
||||
xmlns:converters="using:GSS2.UI.Core.Converters"
|
||||
xmlns:layout="using:Avalonia.Layout"
|
||||
xmlns:local="using:GSS2.UI.Core.Views"
|
||||
xmlns:lvc="using:LiveChartsCore.SkiaSharpView.Avalonia"
|
||||
xmlns:vm="using:GSS2.UI.Core.ViewModels"
|
||||
x:DataType="vm:IlluminatorControllerViewModel">
|
||||
|
||||
<ToggleButton Grid.Row="1"
|
||||
Content="Включить"
|
||||
IsChecked="{Binding Enabled}"
|
||||
HorizontalAlignment="Stretch"
|
||||
HorizontalContentAlignment="Center"
|
||||
Margin="0,10,0,0"/>
|
||||
</Grid>
|
||||
<UserControl.Styles>
|
||||
<Style Selector="Slider.horizontal">
|
||||
<Setter Property="VerticalAlignment" Value="Stretch" />
|
||||
<Setter Property="Maximum" Value="1" />
|
||||
<Setter Property="Minimum" Value="0" />
|
||||
<Setter Property="Orientation" Value="Vertical" />
|
||||
</Style>
|
||||
<Style Selector="Slider.vertical">
|
||||
<Setter Property="HorizontalAlignment" Value="Stretch" />
|
||||
<Setter Property="Maximum" Value="1" />
|
||||
<Setter Property="Minimum" Value="0" />
|
||||
<Setter Property="Orientation" Value="Horizontal" />
|
||||
</Style>
|
||||
</UserControl.Styles>
|
||||
|
||||
<Grid>
|
||||
|
||||
<Grid x:Name="VerticalLayout" IsVisible="{Binding Orientation, Converter={x:Static converters:OrientationToBoolConverter.IsVertical}}">
|
||||
<Grid IsVisible="{Binding Orientation, Converter={x:Static converters:OrientationToBoolConverter.IsHorizontal}}">
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<StackPanel Grid.Column="0"
|
||||
Orientation="Vertical"
|
||||
VerticalAlignment="Center"
|
||||
Spacing="20">
|
||||
<StackPanel
|
||||
HorizontalAlignment="Center"
|
||||
Orientation="Horizontal"
|
||||
Spacing="20">
|
||||
|
||||
<Slider Orientation="Horizontal"
|
||||
Minimum="0" Maximum="1"
|
||||
Value="{Binding WhiteIntencity}"
|
||||
HorizontalAlignment="Stretch"/>
|
||||
<Slider Classes="horizontal" Value="{Binding WhiteIntencity}" />
|
||||
<Slider Classes="horizontal" Value="{Binding Uv365Intencity}" />
|
||||
<Slider Classes="horizontal" Value="{Binding Uv254Intencity}" />
|
||||
|
||||
<Slider Orientation="Horizontal"
|
||||
Minimum="0" Maximum="1"
|
||||
Value="{Binding Uv365Intencity}"
|
||||
HorizontalAlignment="Stretch"/>
|
||||
</StackPanel>
|
||||
|
||||
<Slider Orientation="Horizontal"
|
||||
Minimum="0" Maximum="1"
|
||||
Value="{Binding Uv254Intencity}"
|
||||
HorizontalAlignment="Stretch"/>
|
||||
<ToggleButton
|
||||
Grid.Row="1"
|
||||
Margin="0,10,0,0"
|
||||
HorizontalAlignment="Stretch"
|
||||
HorizontalContentAlignment="Center"
|
||||
Content="Включить"
|
||||
IsChecked="{Binding Enabled}" />
|
||||
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
<Grid IsVisible="{Binding Orientation, Converter={x:Static converters:OrientationToBoolConverter.IsVertical}}">
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<StackPanel
|
||||
Grid.Column="0"
|
||||
VerticalAlignment="Center"
|
||||
Orientation="Vertical"
|
||||
Spacing="20">
|
||||
|
||||
<Slider Classes="vertical" Value="{Binding WhiteIntencity}" />
|
||||
<Slider Classes="vertical" Value="{Binding Uv365Intencity}" />
|
||||
<Slider Classes="vertical" Value="{Binding Uv254Intencity}" />
|
||||
|
||||
</StackPanel>
|
||||
|
||||
<ToggleButton
|
||||
Grid.Column="1"
|
||||
Margin="0,0,10,0"
|
||||
VerticalAlignment="Stretch"
|
||||
HorizontalContentAlignment="Center"
|
||||
Content="Включить"
|
||||
IsChecked="{Binding Enabled}" />
|
||||
|
||||
</Grid>
|
||||
|
||||
<ToggleButton Grid.Column="1"
|
||||
Content="Включить"
|
||||
IsChecked="{Binding Enabled}"
|
||||
VerticalAlignment="Stretch"
|
||||
HorizontalContentAlignment="Center"
|
||||
Margin="0,0,10,0"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
</UserControl>
|
||||
|
||||
Reference in New Issue
Block a user