fix: fix accessibility for dynamic generated form.

This commit is contained in:
Dong Bin
2025-01-10 21:49:56 +08:00
parent 47b39b9e74
commit b707a2ebda
6 changed files with 90 additions and 4 deletions

View File

@@ -59,6 +59,7 @@
HorizontalAlignment="{TemplateBinding LabelAlignment}"
Orientation="Horizontal">
<Label
Name="PART_Label"
Content="{TemplateBinding Label}"
Background="Transparent"
FontWeight="{DynamicResource TextBlockTitleFontWeight}"
@@ -98,8 +99,7 @@
Name="PART_Label"
Content="{TemplateBinding Label}"
Background="Transparent"
FontWeight="{DynamicResource TextBlockTitleFontWeight}"
Target="{Binding #PART_ContentPresenter.Content}" />
FontWeight="{DynamicResource TextBlockTitleFontWeight}"/>
<TextBlock
Foreground="{DynamicResource FormAsteriskForeground}"
IsVisible="{TemplateBinding IsRequired}"