forked from amkovkov/GranuSightSoftware2
refactor: format axamls
This commit is contained in:
+7
-3
@@ -1,12 +1,16 @@
|
||||
<Application xmlns="https://github.com/avaloniaui"
|
||||
<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"
|
||||
x:Class="GSS2.Test.App"
|
||||
RequestedThemeVariant="Dark">
|
||||
|
||||
<Application.Styles>
|
||||
<FluentTheme />
|
||||
</Application.Styles>
|
||||
|
||||
<Application.DataTemplates>
|
||||
<local:DependencyInjectionViewLocator/>
|
||||
<local:DependencyInjectionViewLocator />
|
||||
</Application.DataTemplates>
|
||||
|
||||
</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"
|
||||
<Window
|
||||
x:Class="GSS2.Test.MainWindow"
|
||||
Title="{Binding Title}">
|
||||
<ContentControl Content="{Binding MainViewModel}"/>
|
||||
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"
|
||||
<UserControl
|
||||
x:Class="GSS2.Test.Views.MainView"
|
||||
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">
|
||||
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"
|
||||
CanScrollBackward="{Binding CanScrollBackward}"
|
||||
CanScrollForward="{Binding CanScrollForward}"
|
||||
ClipToBounds="True"
|
||||
CurrentIndex="{Binding CurrentIndex}">
|
||||
|
||||
<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}" />
|
||||
|
||||
<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>
|
||||
@@ -1,13 +1,13 @@
|
||||
<Control xmlns="https://github.com/avaloniaui"
|
||||
<Control
|
||||
x:Class="GSS2.UI.Core.Views.CameraView"
|
||||
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.UI.Core.ViewModels"
|
||||
x:DataType="vm:CameraViewModel"
|
||||
x:Class="GSS2.UI.Core.Views.CameraView"
|
||||
HorizontalAlignment="Stretch"
|
||||
VerticalAlignment="Stretch"
|
||||
x:DataType="vm:CameraViewModel"
|
||||
Background="{Binding Background}"
|
||||
StretchMode="{Binding StretchMode}"
|
||||
TileMode="{Binding TileMode}">
|
||||
</Control>
|
||||
TileMode="{Binding TileMode}" />
|
||||
|
||||
@@ -1,80 +1,89 @@
|
||||
<UserControl xmlns="https://github.com/avaloniaui"
|
||||
<UserControl
|
||||
x:Class="GSS2.UI.Core.Views.IlluminatorControllerView"
|
||||
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:layout="using:Avalonia.Layout"
|
||||
xmlns:local="using:GSS2.UI.Core.Views"
|
||||
xmlns:lvc="using:LiveChartsCore.SkiaSharpView.Avalonia"
|
||||
x:Class="GSS2.UI.Core.Views.IlluminatorControllerView"
|
||||
xmlns:vm="using:GSS2.UI.Core.ViewModels"
|
||||
x:DataType="vm:IlluminatorControllerViewModel">
|
||||
|
||||
<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="HorizontalLayout" IsVisible="{Binding Orientation, Converter={x:Static converters:OrientationToBoolConverter.IsHorizontal}}">
|
||||
|
||||
<Grid IsVisible="{Binding Orientation, Converter={x:Static converters:OrientationToBoolConverter.IsHorizontal}}">
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<StackPanel Orientation="Horizontal"
|
||||
|
||||
<StackPanel
|
||||
HorizontalAlignment="Center"
|
||||
Orientation="Horizontal"
|
||||
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"/>
|
||||
|
||||
<Slider Classes="horizontal" Value="{Binding WhiteIntencity}" />
|
||||
<Slider Classes="horizontal" Value="{Binding Uv365Intencity}" />
|
||||
<Slider Classes="horizontal" Value="{Binding Uv254Intencity}" />
|
||||
|
||||
</StackPanel>
|
||||
|
||||
<ToggleButton Grid.Row="1"
|
||||
Content="Включить"
|
||||
IsChecked="{Binding Enabled}"
|
||||
<ToggleButton
|
||||
Grid.Row="1"
|
||||
Margin="0,10,0,0"
|
||||
HorizontalAlignment="Stretch"
|
||||
HorizontalContentAlignment="Center"
|
||||
Margin="0,10,0,0"/>
|
||||
Content="Включить"
|
||||
IsChecked="{Binding Enabled}" />
|
||||
|
||||
</Grid>
|
||||
|
||||
|
||||
<Grid x:Name="VerticalLayout" IsVisible="{Binding Orientation, Converter={x:Static converters:OrientationToBoolConverter.IsVertical}}">
|
||||
<Grid IsVisible="{Binding Orientation, Converter={x:Static converters:OrientationToBoolConverter.IsVertical}}">
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<StackPanel Grid.Column="0"
|
||||
Orientation="Vertical"
|
||||
<StackPanel
|
||||
Grid.Column="0"
|
||||
VerticalAlignment="Center"
|
||||
Orientation="Vertical"
|
||||
Spacing="20">
|
||||
|
||||
<Slider Orientation="Horizontal"
|
||||
Minimum="0" Maximum="1"
|
||||
Value="{Binding WhiteIntencity}"
|
||||
HorizontalAlignment="Stretch"/>
|
||||
|
||||
<Slider Orientation="Horizontal"
|
||||
Minimum="0" Maximum="1"
|
||||
Value="{Binding Uv365Intencity}"
|
||||
HorizontalAlignment="Stretch"/>
|
||||
|
||||
<Slider Orientation="Horizontal"
|
||||
Minimum="0" Maximum="1"
|
||||
Value="{Binding Uv254Intencity}"
|
||||
HorizontalAlignment="Stretch"/>
|
||||
<Slider Classes="vertical" Value="{Binding WhiteIntencity}" />
|
||||
<Slider Classes="vertical" Value="{Binding Uv365Intencity}" />
|
||||
<Slider Classes="vertical" Value="{Binding Uv254Intencity}" />
|
||||
|
||||
</StackPanel>
|
||||
|
||||
<ToggleButton Grid.Column="1"
|
||||
Content="Включить"
|
||||
IsChecked="{Binding Enabled}"
|
||||
<ToggleButton
|
||||
Grid.Column="1"
|
||||
Margin="0,0,10,0"
|
||||
VerticalAlignment="Stretch"
|
||||
HorizontalContentAlignment="Center"
|
||||
Margin="0,0,10,0"/>
|
||||
Content="Включить"
|
||||
IsChecked="{Binding Enabled}" />
|
||||
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
|
||||
</UserControl>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<lvc:PieChart xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:vm="using:GSS2.UI.Core.ViewModels"
|
||||
xmlns:lvc="using:LiveChartsCore.SkiaSharpView.Avalonia"
|
||||
<lvc:PieChart
|
||||
x:Class="GSS2.UI.Core.Views.ResourceBarView"
|
||||
xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:lvc="using:LiveChartsCore.SkiaSharpView.Avalonia"
|
||||
xmlns:vm="using:GSS2.UI.Core.ViewModels"
|
||||
x:DataType="vm:ResourceBarViewModel"
|
||||
Series="{Binding Series}"
|
||||
Bounds="{Binding Bounds, Mode=OneWayToSource}">
|
||||
</lvc:PieChart>
|
||||
Bounds="{Binding Bounds, Mode=OneWayToSource}"
|
||||
Series="{Binding Series}" />
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<lvc:CartesianChart xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:vm="using:GSS2.UI.Core.ViewModels"
|
||||
xmlns:lvc="using:LiveChartsCore.SkiaSharpView.Avalonia"
|
||||
<lvc:CartesianChart
|
||||
x:Class="GSS2.UI.Core.Views.ResourceChartView"
|
||||
xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:lvc="using:LiveChartsCore.SkiaSharpView.Avalonia"
|
||||
xmlns:vm="using:GSS2.UI.Core.ViewModels"
|
||||
x:DataType="vm:ResourceChartViewModel"
|
||||
Series="{Binding Series}"
|
||||
YAxes="{Binding YAxes}"
|
||||
XAxes="{Binding XAxes}"
|
||||
ZoomMode="None"
|
||||
Bounds="{Binding Bounds, Mode=OneWayToSource}"
|
||||
EasingFunction="{x:Null}"
|
||||
Bounds="{Binding Bounds, Mode=OneWayToSource}">
|
||||
</lvc:CartesianChart>
|
||||
Series="{Binding Series}"
|
||||
XAxes="{Binding XAxes}"
|
||||
YAxes="{Binding YAxes}"
|
||||
ZoomMode="None" />
|
||||
|
||||
@@ -1,27 +1,53 @@
|
||||
<UserControl xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:GSS2.UI.Core.Views"
|
||||
xmlns:vm="using:GSS2.UI.Core.ViewModels"
|
||||
xmlns:behaviors="using:GSS2.UI.Core.Behaviors"
|
||||
xmlns:lvc="using:LiveChartsCore.SkiaSharpView.Avalonia"
|
||||
<UserControl
|
||||
x:Class="GSS2.UI.Core.Views.ResourceCpuUsageBarsView"
|
||||
xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:behaviors="using:GSS2.UI.Core.Behaviors"
|
||||
xmlns:local="using:GSS2.UI.Core.Views"
|
||||
xmlns:lvc="using:LiveChartsCore.SkiaSharpView.Avalonia"
|
||||
xmlns:vm="using:GSS2.UI.Core.ViewModels"
|
||||
x:DataType="vm:ResourceCpuUsageBarsViewModel"
|
||||
Bounds="{Binding Bounds, Mode=OneWayToSource}">
|
||||
|
||||
<Grid>
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="2*"/>
|
||||
<ColumnDefinition Width="2*" />
|
||||
<ColumnDefinition Width="*" behaviors:GridColumnHideBehavior.IsVisible="{Binding IsCoresColumnVisible}" />
|
||||
<ColumnDefinition Width="*" behaviors:GridColumnHideBehavior.IsVisible="{Binding IsCoresColumnVisible}" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<local:ResourceBarView Grid.Row="0" Grid.RowSpan="2" Grid.Column="0" DataContext="{Binding Cpu}" />
|
||||
<local:ResourceBarView Grid.Row="0" Grid.Column="1" DataContext="{Binding Cpu0}" />
|
||||
<local:ResourceBarView Grid.Row="0" Grid.Column="2" DataContext="{Binding Cpu1}" />
|
||||
<local:ResourceBarView Grid.Row="1" Grid.Column="1" DataContext="{Binding Cpu2}" />
|
||||
<local:ResourceBarView Grid.Row="1" Grid.Column="2" DataContext="{Binding Cpu3}" />
|
||||
|
||||
<local:ResourceBarView
|
||||
Grid.Row="0"
|
||||
Grid.RowSpan="2"
|
||||
Grid.Column="0"
|
||||
DataContext="{Binding Cpu}" />
|
||||
|
||||
<local:ResourceBarView
|
||||
Grid.Row="0"
|
||||
Grid.Column="1"
|
||||
DataContext="{Binding Cpu0}" />
|
||||
|
||||
<local:ResourceBarView
|
||||
Grid.Row="0"
|
||||
Grid.Column="2"
|
||||
DataContext="{Binding Cpu1}" />
|
||||
|
||||
<local:ResourceBarView
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
DataContext="{Binding Cpu2}" />
|
||||
|
||||
<local:ResourceBarView
|
||||
Grid.Row="1"
|
||||
Grid.Column="2"
|
||||
DataContext="{Binding Cpu3}" />
|
||||
|
||||
</Grid>
|
||||
|
||||
</UserControl>
|
||||
|
||||
@@ -1,28 +1,33 @@
|
||||
<UserControl xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:GSS2.UI.Core.Views"
|
||||
xmlns:vm="using:GSS2.UI.Core.ViewModels"
|
||||
xmlns:behaviors="using:GSS2.UI.Core.Behaviors"
|
||||
xmlns:lvc="using:LiveChartsCore.SkiaSharpView.Avalonia"
|
||||
<UserControl
|
||||
x:Class="GSS2.UI.Core.Views.ResourcesView"
|
||||
xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:behaviors="using:GSS2.UI.Core.Behaviors"
|
||||
xmlns:local="using:GSS2.UI.Core.Views"
|
||||
xmlns:lvc="using:LiveChartsCore.SkiaSharpView.Avalonia"
|
||||
xmlns:vm="using:GSS2.UI.Core.ViewModels"
|
||||
x:DataType="vm:ResourcesViewModel"
|
||||
Bounds="{Binding Bounds, Mode=OneWayToSource}">
|
||||
|
||||
<Grid>
|
||||
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="3*" behaviors:GridColumnHideBehavior.IsVisible="{Binding IsChartsColumnVisible}" />
|
||||
<ColumnDefinition Width="*" behaviors:GridColumnHideBehavior.IsVisible="{Binding IsBarsColumnVisible}" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Grid RowDefinitions="*,*,*" Column="0">
|
||||
<Grid Column="0" RowDefinitions="*,*,*">
|
||||
<local:ResourceChartView Grid.Row="0" DataContext="{Binding CpuUsageChartViewModel}" />
|
||||
<local:ResourceChartView Grid.Row="1" DataContext="{Binding CpuTemperatureChartViewModel}" />
|
||||
<local:ResourceChartView Grid.Row="2" DataContext="{Binding MemoryUsageChartViewModel}" />
|
||||
</Grid>
|
||||
|
||||
<Grid RowDefinitions="*,*,*" Column="1">
|
||||
<Grid Column="1" RowDefinitions="*,*,*">
|
||||
<local:ResourceCpuUsageBarsView Grid.Row="0" DataContext="{Binding CpuUsageBarsViewModel}" />
|
||||
<local:ResourceBarView Grid.Row="1" DataContext="{Binding CpuTemperatureBarViewModel}" />
|
||||
<local:ResourceBarView Grid.Row="2" DataContext="{Binding MemoryUsageBarViewModel}" />
|
||||
</Grid>
|
||||
|
||||
</Grid>
|
||||
|
||||
</UserControl>
|
||||
|
||||
Reference in New Issue
Block a user