2025-09-19 07:27:56 +08:00
|
|
|
<UserControl x:Class="DMS.WPF.Views.DevicesView"
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:hc="https://handyorg.github.io/handycontrol"
|
|
|
|
|
xmlns:localConverters="clr-namespace:DMS.WPF.Converters"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
|
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern"
|
|
|
|
|
xmlns:vm="clr-namespace:DMS.WPF.ViewModels"
|
|
|
|
|
d:DataContext="{d:DesignInstance vm:DevicesViewModel}"
|
|
|
|
|
d:DesignHeight="300"
|
|
|
|
|
d:DesignWidth="300"
|
|
|
|
|
mc:Ignorable="d">
|
2025-06-22 21:00:06 +08:00
|
|
|
<UserControl.Resources>
|
2025-09-12 17:22:15 +08:00
|
|
|
<localConverters:BooleanToBrushConverter x:Key="BooleanToBrushConverter" />
|
2025-09-18 11:24:56 +08:00
|
|
|
|
|
|
|
|
<!-- 添加需要的转换器 -->
|
2025-09-14 20:46:31 +08:00
|
|
|
<localConverters:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter" />
|
|
|
|
|
<localConverters:CountToVisibilityConverter x:Key="CountToVisibilityConverter" />
|
|
|
|
|
<localConverters:BoolToStringConverter x:Key="BoolToStringConverter" />
|
|
|
|
|
<localConverters:BoolToColorConverter x:Key="BoolToColorConverter" />
|
2025-09-18 11:24:56 +08:00
|
|
|
|
|
|
|
|
<!-- 设备项模板 -->
|
2025-06-22 21:00:06 +08:00
|
|
|
<DataTemplate x:Key="DeviceItemTemplate">
|
2025-09-19 07:27:56 +08:00
|
|
|
<Border Margin="5"
|
|
|
|
|
Padding="15"
|
|
|
|
|
Background="White"
|
|
|
|
|
BorderBrush="#E0E0E0"
|
|
|
|
|
BorderThickness="1"
|
|
|
|
|
CornerRadius="8">
|
2025-07-04 18:33:48 +08:00
|
|
|
<Border.Effect>
|
2025-09-19 07:27:56 +08:00
|
|
|
<DropShadowEffect BlurRadius="5"
|
|
|
|
|
Opacity="0.1"
|
|
|
|
|
ShadowDepth="2"
|
|
|
|
|
Color="#888888" />
|
2025-07-04 18:33:48 +08:00
|
|
|
</Border.Effect>
|
2025-09-18 11:24:56 +08:00
|
|
|
|
2025-07-04 18:33:48 +08:00
|
|
|
<Grid>
|
|
|
|
|
<Grid.RowDefinitions>
|
2025-09-18 11:24:56 +08:00
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
|
<RowDefinition Height="Auto" />
|
2025-07-04 18:33:48 +08:00
|
|
|
</Grid.RowDefinitions>
|
2025-09-18 11:24:56 +08:00
|
|
|
|
|
|
|
|
<!-- 设备基本信息区域 -->
|
2025-09-19 07:27:56 +08:00
|
|
|
<StackPanel Grid.Row="0"
|
|
|
|
|
Margin="0,0,0,15">
|
2025-09-14 20:46:31 +08:00
|
|
|
<Grid>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
2025-09-18 11:24:56 +08:00
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
|
<ColumnDefinition Width="Auto" />
|
2025-09-14 20:46:31 +08:00
|
|
|
</Grid.ColumnDefinitions>
|
2025-09-18 11:24:56 +08:00
|
|
|
|
|
|
|
|
<!-- 设备名称和描述 -->
|
2025-09-14 20:46:31 +08:00
|
|
|
<StackPanel Grid.Column="0">
|
2025-09-19 07:27:56 +08:00
|
|
|
<StackPanel Margin="0,0,0,5"
|
|
|
|
|
Orientation="Horizontal">
|
|
|
|
|
<ui:FontIcon Margin="0,0,8,0"
|
|
|
|
|
FontSize="20"
|
|
|
|
|
Foreground="{DynamicResource SystemAccentColorBrush}"
|
|
|
|
|
Glyph="" />
|
|
|
|
|
<TextBlock VerticalAlignment="Center"
|
|
|
|
|
FontSize="16"
|
|
|
|
|
FontWeight="SemiBold"
|
|
|
|
|
Text="{Binding Name}" />
|
2025-09-14 20:46:31 +08:00
|
|
|
</StackPanel>
|
2025-09-18 11:24:56 +08:00
|
|
|
|
2025-09-19 07:27:56 +08:00
|
|
|
<TextBlock Margin="0,0,0,8"
|
|
|
|
|
FontSize="13"
|
|
|
|
|
Foreground="#666666"
|
|
|
|
|
Text="{Binding Description}"
|
|
|
|
|
TextWrapping="Wrap" />
|
2025-09-18 11:24:56 +08:00
|
|
|
|
2025-09-14 20:46:31 +08:00
|
|
|
<StackPanel Orientation="Horizontal">
|
2025-09-19 07:27:56 +08:00
|
|
|
<ui:FontIcon Margin="0,0,5,0"
|
|
|
|
|
FontSize="14"
|
|
|
|
|
Foreground="#888888"
|
|
|
|
|
Glyph="" />
|
|
|
|
|
<TextBlock FontSize="12"
|
|
|
|
|
Foreground="#888888"
|
|
|
|
|
Text="{Binding DeviceType}" />
|
2025-09-18 11:24:56 +08:00
|
|
|
|
2025-09-19 07:27:56 +08:00
|
|
|
<Rectangle Width="1"
|
|
|
|
|
Height="12"
|
|
|
|
|
Margin="10,0"
|
|
|
|
|
Fill="#CCCCCC" />
|
2025-09-18 11:24:56 +08:00
|
|
|
|
2025-09-19 07:27:56 +08:00
|
|
|
<ui:FontIcon Margin="10,0,5,0"
|
|
|
|
|
FontSize="14"
|
|
|
|
|
Foreground="#888888"
|
|
|
|
|
Glyph="" />
|
|
|
|
|
<TextBlock FontSize="12"
|
|
|
|
|
Foreground="#888888"
|
|
|
|
|
Text="{Binding ConnectionStatus}" />
|
2025-09-14 20:46:31 +08:00
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|
2025-09-18 11:24:56 +08:00
|
|
|
|
|
|
|
|
<!-- 状态指示器 -->
|
2025-09-19 07:27:56 +08:00
|
|
|
<StackPanel Grid.Column="1"
|
|
|
|
|
VerticalAlignment="Top"
|
|
|
|
|
Orientation="Horizontal">
|
|
|
|
|
<Border Width="16"
|
|
|
|
|
Height="16"
|
|
|
|
|
Margin="0,0,10,0"
|
|
|
|
|
Background="{Binding IsRunning, Converter={StaticResource BoolToColorConverter}, ConverterParameter='Green;Red'}"
|
|
|
|
|
CornerRadius="8">
|
2025-09-14 20:46:31 +08:00
|
|
|
<Border.ToolTip>
|
2025-09-19 07:27:56 +08:00
|
|
|
<TextBlock
|
|
|
|
|
Text="{Binding IsRunning, Converter={StaticResource BoolToStringConverter}, ConverterParameter='已连接;未连接'}" />
|
2025-09-14 20:46:31 +08:00
|
|
|
</Border.ToolTip>
|
|
|
|
|
</Border>
|
2025-09-18 11:24:56 +08:00
|
|
|
|
2025-09-19 07:27:56 +08:00
|
|
|
<ToggleButton x:Name="ExpandToggleButton"
|
|
|
|
|
Background="Transparent"
|
|
|
|
|
BorderThickness="0"
|
|
|
|
|
Foreground="#666666"
|
|
|
|
|
IsChecked="True"
|
|
|
|
|
Style="{StaticResource DefaultToggleButtonStyle}"
|
|
|
|
|
ToolTip="展开/收起变量表">
|
|
|
|
|
<ToggleButton.Content>
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
<ui:FontIcon Icon="{x:Static ui:SegoeFluentIcons.ChevronUp}" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</ToggleButton.Content>
|
|
|
|
|
</ToggleButton>
|
2025-09-14 20:46:31 +08:00
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
</StackPanel>
|
2025-09-18 11:24:56 +08:00
|
|
|
|
|
|
|
|
<!-- 变量表列表区域 -->
|
2025-09-19 07:27:56 +08:00
|
|
|
<StackPanel Grid.Row="1"
|
|
|
|
|
Margin="0,0,0,15">
|
|
|
|
|
<Border Background="#F8F8F8"
|
|
|
|
|
BorderBrush="#E0E0E0"
|
|
|
|
|
BorderThickness="1"
|
|
|
|
|
CornerRadius="6"
|
|
|
|
|
Visibility="{Binding ElementName=ExpandToggleButton, Path=IsChecked, Converter={StaticResource BoolToVisibilityConverter}}">
|
2025-09-14 20:46:31 +08:00
|
|
|
<StackPanel>
|
2025-09-18 11:24:56 +08:00
|
|
|
<!-- 变量表标题 -->
|
2025-09-19 07:27:56 +08:00
|
|
|
<Border Padding="12,8"
|
|
|
|
|
Background="#F0F0F0"
|
|
|
|
|
BorderBrush="#E0E0E0"
|
|
|
|
|
BorderThickness="0,0,0,1"
|
|
|
|
|
CornerRadius="6,6,0,0">
|
2025-09-14 20:46:31 +08:00
|
|
|
<Grid>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
2025-09-18 11:24:56 +08:00
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
|
<ColumnDefinition Width="Auto" />
|
2025-09-14 20:46:31 +08:00
|
|
|
</Grid.ColumnDefinitions>
|
2025-09-18 11:24:56 +08:00
|
|
|
|
2025-09-19 07:27:56 +08:00
|
|
|
<TextBlock Grid.Column="0"
|
|
|
|
|
FontSize="14"
|
|
|
|
|
FontWeight="SemiBold"
|
|
|
|
|
Foreground="#333333"
|
|
|
|
|
Text="变量表列表" />
|
2025-09-18 11:24:56 +08:00
|
|
|
|
2025-09-19 07:27:56 +08:00
|
|
|
<Button Grid.Column="1"
|
|
|
|
|
Width="28"
|
|
|
|
|
Height="28"
|
|
|
|
|
Padding="0"
|
|
|
|
|
Content=""
|
|
|
|
|
FontFamily="Segoe MDL2 Assets"
|
|
|
|
|
FontSize="14"
|
|
|
|
|
Style="{StaticResource DefaultButtonStyle}"
|
|
|
|
|
ToolTip="添加变量表" />
|
2025-09-14 20:46:31 +08:00
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
2025-09-18 11:24:56 +08:00
|
|
|
|
|
|
|
|
<!-- 变量表列表 -->
|
2025-09-19 07:27:56 +08:00
|
|
|
<ItemsControl Margin="0"
|
|
|
|
|
ItemsSource="{Binding VariableTables}">
|
2025-09-14 20:46:31 +08:00
|
|
|
<ItemsControl.ItemTemplate>
|
|
|
|
|
<DataTemplate>
|
2025-09-19 07:27:56 +08:00
|
|
|
<Border Padding="12,10"
|
|
|
|
|
Background="White"
|
|
|
|
|
BorderBrush="#EEEEEE"
|
|
|
|
|
BorderThickness="0,0,0,1">
|
2025-09-14 20:46:31 +08:00
|
|
|
<Grid>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
2025-09-18 11:24:56 +08:00
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
|
<ColumnDefinition Width="Auto" />
|
2025-09-14 20:46:31 +08:00
|
|
|
</Grid.ColumnDefinitions>
|
2025-09-18 11:24:56 +08:00
|
|
|
|
2025-09-14 20:46:31 +08:00
|
|
|
<StackPanel Grid.Column="0">
|
2025-09-19 07:27:56 +08:00
|
|
|
<StackPanel Margin="0,0,0,3"
|
|
|
|
|
Orientation="Horizontal">
|
|
|
|
|
<ui:FontIcon Margin="0,0,6,0"
|
|
|
|
|
FontSize="14"
|
|
|
|
|
Foreground="{DynamicResource SystemAccentColorBrush}"
|
|
|
|
|
Glyph="" />
|
|
|
|
|
<TextBlock FontSize="13"
|
|
|
|
|
FontWeight="SemiBold"
|
|
|
|
|
Text="{Binding Name}" />
|
2025-09-14 20:46:31 +08:00
|
|
|
</StackPanel>
|
2025-09-18 11:24:56 +08:00
|
|
|
|
2025-09-19 07:27:56 +08:00
|
|
|
<TextBlock MaxWidth="300"
|
|
|
|
|
FontSize="11"
|
|
|
|
|
Foreground="#888888"
|
|
|
|
|
Text="{Binding Description}"
|
|
|
|
|
TextWrapping="Wrap" />
|
2025-09-14 20:46:31 +08:00
|
|
|
</StackPanel>
|
2025-09-18 11:24:56 +08:00
|
|
|
|
2025-09-19 07:27:56 +08:00
|
|
|
<StackPanel Grid.Column="1"
|
|
|
|
|
Orientation="Horizontal">
|
|
|
|
|
<TextBlock Margin="0,0,5,0"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
FontSize="12"
|
|
|
|
|
Foreground="#666666"
|
|
|
|
|
Text="{Binding Variables.Count}" />
|
|
|
|
|
<TextBlock VerticalAlignment="Center"
|
|
|
|
|
FontSize="12"
|
|
|
|
|
Foreground="#888888"
|
|
|
|
|
Text="变量" />
|
2025-09-18 11:24:56 +08:00
|
|
|
|
2025-09-19 07:27:56 +08:00
|
|
|
<Button Width="26"
|
|
|
|
|
Height="26"
|
|
|
|
|
Margin="8,0,0,0"
|
|
|
|
|
Padding="0"
|
|
|
|
|
Content=""
|
|
|
|
|
FontFamily="Segoe MDL2 Assets"
|
|
|
|
|
FontSize="14"
|
|
|
|
|
Style="{StaticResource DefaultButtonStyle}"
|
|
|
|
|
ToolTip="编辑变量表" />
|
2025-09-18 11:24:56 +08:00
|
|
|
|
2025-09-19 07:27:56 +08:00
|
|
|
<Button Width="26"
|
|
|
|
|
Height="26"
|
|
|
|
|
Margin="4,0,0,0"
|
|
|
|
|
Padding="0"
|
|
|
|
|
Content=""
|
|
|
|
|
FontFamily="Segoe MDL2 Assets"
|
|
|
|
|
FontSize="14"
|
|
|
|
|
Style="{StaticResource DefaultButtonStyle}"
|
|
|
|
|
ToolTip="删除变量表" />
|
2025-09-14 20:46:31 +08:00
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</ItemsControl.ItemTemplate>
|
|
|
|
|
</ItemsControl>
|
2025-09-18 11:24:56 +08:00
|
|
|
|
|
|
|
|
<!-- 空状态提示 -->
|
2025-09-19 07:27:56 +08:00
|
|
|
<TextBlock Padding="20,15"
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
FontSize="13"
|
|
|
|
|
Foreground="#AAAAAA"
|
|
|
|
|
Text="暂无变量表"
|
|
|
|
|
Visibility="{Binding VariableTables.Count, Converter={StaticResource CountToVisibilityConverter}}" />
|
2025-09-14 20:46:31 +08:00
|
|
|
</StackPanel>
|
|
|
|
|
</Border>
|
|
|
|
|
</StackPanel>
|
2025-09-18 11:24:56 +08:00
|
|
|
|
|
|
|
|
<!-- 操作按钮区域 -->
|
2025-09-19 07:27:56 +08:00
|
|
|
<StackPanel Grid.Row="2"
|
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
|
Orientation="Horizontal">
|
|
|
|
|
<Button Width="36"
|
|
|
|
|
Height="36"
|
|
|
|
|
Margin="0,0,8,0"
|
|
|
|
|
Padding="0"
|
|
|
|
|
Style="{StaticResource AccentButtonStyle}"
|
|
|
|
|
ToolTip="连接设备">
|
|
|
|
|
<!-- <Button.Effect> -->
|
|
|
|
|
<!-- <DropShadowEffect BlurRadius="3" -->
|
|
|
|
|
<!-- Opacity="0.2" -->
|
|
|
|
|
<!-- ShadowDepth="1" -->
|
|
|
|
|
<!-- Color="{DynamicResource SystemAccentColor}" /> -->
|
|
|
|
|
<!-- </Button.Effect> -->
|
|
|
|
|
<Button.Content>
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
<ui:FontIcon Icon="{x:Static ui:SegoeFluentIcons.Connect}" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Button.Content>
|
2025-09-14 20:46:31 +08:00
|
|
|
</Button>
|
2025-09-18 11:24:56 +08:00
|
|
|
|
2025-09-19 07:27:56 +08:00
|
|
|
<Button Width="36"
|
|
|
|
|
Height="36"
|
|
|
|
|
Margin="0,0,8,0"
|
|
|
|
|
Padding="0"
|
|
|
|
|
Command="{Binding DataContext.EditDeviceCommand, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
|
|
|
|
CommandParameter="{Binding}"
|
|
|
|
|
ToolTip="编辑设备">
|
|
|
|
|
<Button.Content>
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
<ui:FontIcon Icon="{x:Static ui:SegoeFluentIcons.Edit}" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Button.Content>
|
|
|
|
|
</Button>
|
2025-09-18 11:24:56 +08:00
|
|
|
|
2025-09-19 07:27:56 +08:00
|
|
|
<Button Width="36"
|
|
|
|
|
Height="36"
|
|
|
|
|
Margin="0,0,8,0"
|
|
|
|
|
Padding="0"
|
|
|
|
|
Style="{StaticResource DefaultButtonStyle}"
|
|
|
|
|
ToolTip="监控设备">
|
|
|
|
|
<Button.Content>
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
<ui:FontIcon Icon="{x:Static ui:SegoeFluentIcons.TVMonitor}" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Button.Content>
|
|
|
|
|
</Button>
|
2025-09-18 11:24:56 +08:00
|
|
|
|
2025-09-19 07:27:56 +08:00
|
|
|
<Button Width="36"
|
|
|
|
|
Height="36"
|
|
|
|
|
Padding="0"
|
|
|
|
|
Command="{Binding DataContext.DeleteDeviceCommand, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
|
|
|
|
CommandParameter="{Binding}"
|
|
|
|
|
Style="{StaticResource ButtonDanger.Small}"
|
|
|
|
|
ToolTip="删除设备">
|
|
|
|
|
<Button.Content>
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
<ui:FontIcon Icon="{x:Static ui:SegoeFluentIcons.Delete}" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Button.Content>
|
2025-09-14 20:46:31 +08:00
|
|
|
</Button>
|
2025-07-04 18:33:48 +08:00
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
2025-06-22 21:00:06 +08:00
|
|
|
</DataTemplate>
|
|
|
|
|
</UserControl.Resources>
|
2025-06-23 17:01:06 +08:00
|
|
|
|
|
|
|
|
<StackPanel>
|
2025-08-24 18:29:26 +08:00
|
|
|
<!-- 操作菜单栏 -->
|
2025-09-19 07:27:56 +08:00
|
|
|
<ui:CommandBar DefaultLabelPosition="Right"
|
|
|
|
|
IsOpen="False">
|
2025-08-24 18:29:26 +08:00
|
|
|
<!-- 添加设备 -->
|
2025-09-19 07:27:56 +08:00
|
|
|
<ui:AppBarButton Command="{Binding AddDeviceCommand}"
|
|
|
|
|
Label="添加设备">
|
2025-06-22 21:00:06 +08:00
|
|
|
<ui:AppBarButton.Icon>
|
2025-06-23 17:01:06 +08:00
|
|
|
<ui:FontIcon Icon="{x:Static ui:SegoeFluentIcons.Add}" />
|
2025-06-22 21:00:06 +08:00
|
|
|
</ui:AppBarButton.Icon>
|
|
|
|
|
</ui:AppBarButton>
|
2025-08-24 18:29:26 +08:00
|
|
|
<!-- 编辑设备 -->
|
2025-09-19 07:27:56 +08:00
|
|
|
<ui:AppBarButton Command="{Binding EditDeviceCommand}"
|
|
|
|
|
Label="编辑设备">
|
2025-06-22 21:00:06 +08:00
|
|
|
<ui:AppBarButton.Icon>
|
2025-06-23 17:01:06 +08:00
|
|
|
<ui:FontIcon Icon="{x:Static ui:SegoeFluentIcons.Edit}" />
|
2025-06-22 21:00:06 +08:00
|
|
|
</ui:AppBarButton.Icon>
|
2025-07-01 21:34:20 +08:00
|
|
|
</ui:AppBarButton>
|
2025-08-24 18:29:26 +08:00
|
|
|
<!-- 编辑设备 -->
|
2025-09-19 07:27:56 +08:00
|
|
|
<ui:AppBarButton Command="{Binding DeleteDeviceCommand}"
|
|
|
|
|
Label="删除设备">
|
2025-07-01 21:34:20 +08:00
|
|
|
<ui:AppBarButton.Icon>
|
|
|
|
|
<ui:FontIcon Icon="{x:Static ui:SegoeFluentIcons.Delete}" />
|
|
|
|
|
</ui:AppBarButton.Icon>
|
2025-06-22 21:00:06 +08:00
|
|
|
</ui:AppBarButton>
|
2025-09-19 07:27:56 +08:00
|
|
|
<ui:AppBarButton x:Name="ShareButton"
|
|
|
|
|
Label="Share">
|
2025-06-22 21:00:06 +08:00
|
|
|
<ui:AppBarButton.Icon>
|
2025-06-23 17:01:06 +08:00
|
|
|
<ui:FontIcon Icon="{x:Static ui:SegoeFluentIcons.Share}" />
|
2025-06-22 21:00:06 +08:00
|
|
|
</ui:AppBarButton.Icon>
|
|
|
|
|
</ui:AppBarButton>
|
|
|
|
|
<ui:CommandBar.SecondaryCommands>
|
2025-09-19 07:27:56 +08:00
|
|
|
<ui:AppBarButton x:Name="SettingsButton"
|
|
|
|
|
Icon="Setting"
|
|
|
|
|
Label="Settings" />
|
2025-06-22 21:00:06 +08:00
|
|
|
</ui:CommandBar.SecondaryCommands>
|
|
|
|
|
</ui:CommandBar>
|
2025-06-23 17:01:06 +08:00
|
|
|
|
|
|
|
|
|
2025-09-19 07:27:56 +08:00
|
|
|
<ui:GridView x:Name="BasicGridView"
|
|
|
|
|
Margin="20"
|
|
|
|
|
IsItemClickEnabled="True"
|
|
|
|
|
ItemTemplate="{StaticResource DeviceItemTemplate}"
|
|
|
|
|
ItemsSource="{Binding Devices}"
|
|
|
|
|
SelectedItem="{Binding SelectedDevice}"
|
|
|
|
|
SelectionMode="Single">
|
2025-07-16 18:39:00 +08:00
|
|
|
<hc:Interaction.Triggers>
|
|
|
|
|
<hc:EventTrigger EventName="MouseDoubleClick">
|
|
|
|
|
<hc:InvokeCommandAction Command="{Binding NavigateToDetailCommand}" />
|
|
|
|
|
</hc:EventTrigger>
|
|
|
|
|
</hc:Interaction.Triggers>
|
|
|
|
|
</ui:GridView>
|
2025-06-10 22:13:06 +08:00
|
|
|
</StackPanel>
|
2025-06-23 17:01:06 +08:00
|
|
|
|
|
|
|
|
</UserControl>
|