|
@@ -2,6 +2,7 @@
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
xmlns:vm="using:YZWater.Core.ViewModels"
|
|
xmlns:vm="using:YZWater.Core.ViewModels"
|
|
|
xmlns:views="using:YZWater.Avalonia.Views"
|
|
xmlns:views="using:YZWater.Avalonia.Views"
|
|
|
|
|
+ xmlns:conv="using:YZWater.Avalonia.Converters"
|
|
|
x:Class="YZWater.Avalonia.Views.MainWindow"
|
|
x:Class="YZWater.Avalonia.Views.MainWindow"
|
|
|
x:DataType="vm:MainViewModel"
|
|
x:DataType="vm:MainViewModel"
|
|
|
Title="YZ WATER - 姹℃按澶勭悊鐩戞帶绯荤粺"
|
|
Title="YZ WATER - 姹℃按澶勭悊鐩戞帶绯荤粺"
|
|
@@ -14,30 +15,107 @@
|
|
|
<vm:MainViewModel/>
|
|
<vm:MainViewModel/>
|
|
|
</Window.DataContext>
|
|
</Window.DataContext>
|
|
|
|
|
|
|
|
- <!-- 鐩存帴浣跨敤 DockPanel 濉弧绐楀彛锛屼笉浣跨敤 AdaptiveContainer -->
|
|
|
|
|
<DockPanel>
|
|
<DockPanel>
|
|
|
<!-- 搴曢儴瀵艰埅鏍 -->
|
|
<!-- 搴曢儴瀵艰埅鏍 -->
|
|
|
<Border DockPanel.Dock="Bottom" Background="#111820" BorderBrush="#1C2333" BorderThickness="0,1,0,0" Padding="4,0">
|
|
<Border DockPanel.Dock="Bottom" Background="#111820" BorderBrush="#1C2333" BorderThickness="0,1,0,0" Padding="4,0">
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Spacing="0">
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Spacing="0">
|
|
|
- <Button Content="PROCESS" Command="{Binding ShowViewACommand}"
|
|
|
|
|
- FontFamily="Consolas, monospace" FontSize="11" Padding="20,8"
|
|
|
|
|
- Background="Transparent" Foreground="#00897B" BorderThickness="0"/>
|
|
|
|
|
|
|
+ <!-- PROCESS -->
|
|
|
|
|
+ <Button Command="{Binding ShowViewACommand}" Padding="20,8" BorderThickness="0" Cursor="Hand">
|
|
|
|
|
+ <Button.Content>
|
|
|
|
|
+ <StackPanel Orientation="Horizontal" Spacing="6">
|
|
|
|
|
+ <Border Width="3" Height="14" CornerRadius="1"
|
|
|
|
|
+ Background="{Binding IsTabAActive, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
+ <TextBlock Text="PROCESS" FontFamily="Consolas, monospace" FontSize="11"
|
|
|
|
|
+ FontWeight="{Binding IsTabAActive, Converter={x:Static conv:BoolConverters.ToFontWeight}}"
|
|
|
|
|
+ Foreground="{Binding IsTabAActive, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Button.Content>
|
|
|
|
|
+ <Button.Styles>
|
|
|
|
|
+ <Style Selector="Button">
|
|
|
|
|
+ <Setter Property="Background" Value="Transparent"/>
|
|
|
|
|
+ </Style>
|
|
|
|
|
+ </Button.Styles>
|
|
|
|
|
+ </Button>
|
|
|
|
|
+
|
|
|
<Border Background="#1C2333" Width="1" Height="20" VerticalAlignment="Center"/>
|
|
<Border Background="#1C2333" Width="1" Height="20" VerticalAlignment="Center"/>
|
|
|
- <Button Content="PARAMS" Command="{Binding ShowViewBCommand}"
|
|
|
|
|
- FontFamily="Consolas, monospace" FontSize="11" Padding="20,8"
|
|
|
|
|
- Background="Transparent" Foreground="#9CA3AF" BorderThickness="0"/>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <!-- PARAMS -->
|
|
|
|
|
+ <Button Command="{Binding ShowViewBCommand}" Padding="20,8" BorderThickness="0" Cursor="Hand">
|
|
|
|
|
+ <Button.Content>
|
|
|
|
|
+ <StackPanel Orientation="Horizontal" Spacing="6">
|
|
|
|
|
+ <Border Width="3" Height="14" CornerRadius="1"
|
|
|
|
|
+ Background="{Binding IsTabBActive, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
+ <TextBlock Text="PARAMS" FontFamily="Consolas, monospace" FontSize="11"
|
|
|
|
|
+ FontWeight="{Binding IsTabBActive, Converter={x:Static conv:BoolConverters.ToFontWeight}}"
|
|
|
|
|
+ Foreground="{Binding IsTabBActive, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Button.Content>
|
|
|
|
|
+ <Button.Styles>
|
|
|
|
|
+ <Style Selector="Button">
|
|
|
|
|
+ <Setter Property="Background" Value="Transparent"/>
|
|
|
|
|
+ </Style>
|
|
|
|
|
+ </Button.Styles>
|
|
|
|
|
+ </Button>
|
|
|
|
|
+
|
|
|
<Border Background="#1C2333" Width="1" Height="20" VerticalAlignment="Center"/>
|
|
<Border Background="#1C2333" Width="1" Height="20" VerticalAlignment="Center"/>
|
|
|
- <Button Content="FLOW" Command="{Binding ShowViewCCommand}"
|
|
|
|
|
- FontFamily="Consolas, monospace" FontSize="11" Padding="20,8"
|
|
|
|
|
- Background="Transparent" Foreground="#9CA3AF" BorderThickness="0"/>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <!-- FLOW -->
|
|
|
|
|
+ <Button Command="{Binding ShowViewCCommand}" Padding="20,8" BorderThickness="0" Cursor="Hand">
|
|
|
|
|
+ <Button.Content>
|
|
|
|
|
+ <StackPanel Orientation="Horizontal" Spacing="6">
|
|
|
|
|
+ <Border Width="3" Height="14" CornerRadius="1"
|
|
|
|
|
+ Background="{Binding IsTabCActive, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
+ <TextBlock Text="FLOW" FontFamily="Consolas, monospace" FontSize="11"
|
|
|
|
|
+ FontWeight="{Binding IsTabCActive, Converter={x:Static conv:BoolConverters.ToFontWeight}}"
|
|
|
|
|
+ Foreground="{Binding IsTabCActive, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Button.Content>
|
|
|
|
|
+ <Button.Styles>
|
|
|
|
|
+ <Style Selector="Button">
|
|
|
|
|
+ <Setter Property="Background" Value="Transparent"/>
|
|
|
|
|
+ </Style>
|
|
|
|
|
+ </Button.Styles>
|
|
|
|
|
+ </Button>
|
|
|
|
|
+
|
|
|
<Border Background="#1C2333" Width="1" Height="20" VerticalAlignment="Center"/>
|
|
<Border Background="#1C2333" Width="1" Height="20" VerticalAlignment="Center"/>
|
|
|
- <Button Content="ALARM" Command="{Binding ShowViewDCommand}"
|
|
|
|
|
- FontFamily="Consolas, monospace" FontSize="11" Padding="20,8"
|
|
|
|
|
- Background="Transparent" Foreground="#9CA3AF" BorderThickness="0"/>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <!-- ALARM -->
|
|
|
|
|
+ <Button Command="{Binding ShowViewDCommand}" Padding="20,8" BorderThickness="0" Cursor="Hand">
|
|
|
|
|
+ <Button.Content>
|
|
|
|
|
+ <StackPanel Orientation="Horizontal" Spacing="6">
|
|
|
|
|
+ <Border Width="3" Height="14" CornerRadius="1"
|
|
|
|
|
+ Background="{Binding IsTabDActive, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
+ <TextBlock Text="ALARM" FontFamily="Consolas, monospace" FontSize="11"
|
|
|
|
|
+ FontWeight="{Binding IsTabDActive, Converter={x:Static conv:BoolConverters.ToFontWeight}}"
|
|
|
|
|
+ Foreground="{Binding IsTabDActive, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Button.Content>
|
|
|
|
|
+ <Button.Styles>
|
|
|
|
|
+ <Style Selector="Button">
|
|
|
|
|
+ <Setter Property="Background" Value="Transparent"/>
|
|
|
|
|
+ </Style>
|
|
|
|
|
+ </Button.Styles>
|
|
|
|
|
+ </Button>
|
|
|
|
|
+
|
|
|
<Border Background="#1C2333" Width="1" Height="20" VerticalAlignment="Center"/>
|
|
<Border Background="#1C2333" Width="1" Height="20" VerticalAlignment="Center"/>
|
|
|
- <Button Content="ABOUT" Command="{Binding ShowViewECommand}"
|
|
|
|
|
- FontFamily="Consolas, monospace" FontSize="11" Padding="20,8"
|
|
|
|
|
- Background="Transparent" Foreground="#9CA3AF" BorderThickness="0"/>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <!-- ABOUT -->
|
|
|
|
|
+ <Button Command="{Binding ShowViewECommand}" Padding="20,8" BorderThickness="0" Cursor="Hand">
|
|
|
|
|
+ <Button.Content>
|
|
|
|
|
+ <StackPanel Orientation="Horizontal" Spacing="6">
|
|
|
|
|
+ <Border Width="3" Height="14" CornerRadius="1"
|
|
|
|
|
+ Background="{Binding IsTabEActive, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
+ <TextBlock Text="ABOUT" FontFamily="Consolas, monospace" FontSize="11"
|
|
|
|
|
+ FontWeight="{Binding IsTabEActive, Converter={x:Static conv:BoolConverters.ToFontWeight}}"
|
|
|
|
|
+ Foreground="{Binding IsTabEActive, Converter={x:Static conv:BoolConverters.ToBrush}}"/>
|
|
|
|
|
+ </StackPanel>
|
|
|
|
|
+ </Button.Content>
|
|
|
|
|
+ <Button.Styles>
|
|
|
|
|
+ <Style Selector="Button">
|
|
|
|
|
+ <Setter Property="Background" Value="Transparent"/>
|
|
|
|
|
+ </Style>
|
|
|
|
|
+ </Button.Styles>
|
|
|
|
|
+ </Button>
|
|
|
</StackPanel>
|
|
</StackPanel>
|
|
|
</Border>
|
|
</Border>
|
|
|
|
|
|