Enhance Accessibility in MsgView

This commit is contained in:
2dust 2025-04-15 09:57:04 +08:00
parent 392f6111dd
commit 18e0bb194e

View file

@ -26,6 +26,7 @@
Margin="{StaticResource MarginLeftRight8}"
materialDesign:HintAssist.Hint="{x:Static resx:ResUI.MsgFilterTitle}"
materialDesign:TextFieldAssist.HasClearButton="True"
AutomationProperties.Name="{x:Static resx:ResUI.MsgFilterTitle}"
IsEditable="True"
Style="{StaticResource DefComboBox}" />
<Button
@ -33,6 +34,7 @@
Width="24"
Height="24"
Margin="{StaticResource MarginLeftRight8}"
AutomationProperties.Name="{x:Static resx:ResUI.menuMsgViewCopyAll}"
Style="{StaticResource MaterialDesignFloatingActionMiniLightButton}"
ToolTip="{x:Static resx:ResUI.menuMsgViewCopyAll}">
<materialDesign:PackIcon VerticalAlignment="Center" Kind="ContentCopy" />
@ -42,6 +44,7 @@
Width="24"
Height="24"
Margin="{StaticResource MarginLeftRight8}"
AutomationProperties.Name="{x:Static resx:ResUI.menuMsgViewClear}"
Style="{StaticResource MaterialDesignFloatingActionMiniLightButton}"
ToolTip="{x:Static resx:ResUI.menuMsgViewClear}">
<materialDesign:PackIcon VerticalAlignment="Center" Kind="Delete" />
@ -55,6 +58,7 @@
x:Name="togAutoRefresh"
Margin="{StaticResource MarginLeftRight8}"
HorizontalAlignment="Left"
AutomationProperties.Name="{x:Static resx:ResUI.TbAutoRefresh}"
IsChecked="True" />
<TextBlock
Margin="{StaticResource MarginLeftRight8}"
@ -65,6 +69,7 @@
x:Name="togScrollToEnd"
Margin="{StaticResource MarginLeftRight8}"
HorizontalAlignment="Left"
AutomationProperties.Name="{x:Static resx:ResUI.TbAutoScrollToEnd}"
IsChecked="True" />
</WrapPanel>
<TextBox
@ -103,4 +108,4 @@
</TextBox.ContextMenu>
</TextBox>
</DockPanel>
</reactiveui:ReactiveUserControl>
</reactiveui:ReactiveUserControl>