File format limitations are now announced by Narrator

This commit is contained in:
Niels Laute
2020-10-23 16:10:16 +02:00
parent 7c42162618
commit 773c57e609

View File

@@ -255,7 +255,9 @@
MinWidth="240" MinWidth="240"
IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}" IsEnabled="{x:Bind Mode=OneWay, Path=ViewModel.IsEnabled}"
Margin="{StaticResource SmallTopMargin}" Margin="{StaticResource SmallTopMargin}"
AutomationProperties.LabeledBy="{Binding ElementName=ImageResizer_FilenameFormatHeader}"> AutomationProperties.LabeledBy="{Binding ElementName=ImageResizer_FilenameFormatHeader}"
AutomationProperties.HelpText="{Binding ElementName=FileFormatTextBlock, Path=Text}"
>
<TextBox.Header> <TextBox.Header>
<StackPanel Orientation="Horizontal"> <StackPanel Orientation="Horizontal">
<TextBlock Name="ImageResizer_FilenameFormatHeader" <TextBlock Name="ImageResizer_FilenameFormatHeader"
@@ -268,44 +270,34 @@
</StackPanel> </StackPanel>
</TextBox.Header> </TextBox.Header>
<ToolTipService.ToolTip> <ToolTipService.ToolTip>
<StackPanel> <TextBlock x:Name="FileFormatTextBlock">
<TextBlock x:Uid="ImageResizer_FileFormatDescription"/> <Run x:Uid="ImageResizer_FileFormatDescription"/>
<TextBlock Margin="{StaticResource SmallTopMargin}"> <LineBreak/>
<Run Text="%1" FontWeight="Bold" /> <LineBreak/>
<Run Text=" - "/> <Run Text="%1" FontWeight="Bold" />
<Run x:Uid="ImageResizer_Formatting_Filename" /> <Run Text=" - "/>
</TextBlock> <Run x:Uid="ImageResizer_Formatting_Filename" />
<LineBreak/>
<TextBlock> <Run Text="%2" FontWeight="Bold" />
<Run Text="%2" FontWeight="Bold" /> <Run Text=" - "/>
<Run Text=" - "/> <Run x:Uid="ImageResizer_Formatting_Sizename"/>
<Run x:Uid="ImageResizer_Formatting_Sizename"/> <LineBreak/>
</TextBlock> <Run Text="%3" FontWeight="Bold" />
<Run Text=" - "/>
<TextBlock> <Run x:Uid="ImageResizer_Formatting_SelectedWidth"/>
<Run Text="%3" FontWeight="Bold" /> <LineBreak/>
<Run Text=" - "/> <Run Text="%4" FontWeight="Bold" />
<Run x:Uid="ImageResizer_Formatting_SelectedWidth"/> <Run Text=" - "/>
</TextBlock> <Run x:Uid="ImageResizer_Formatting_SelectedHeight"/>
<LineBreak/>
<TextBlock> <Run Text="%5" FontWeight="Bold" />
<Run Text="%4" FontWeight="Bold" /> <Run Text=" - "/>
<Run Text=" - "/> <Run x:Uid="ImageResizer_Formatting_ActualWidth"/>
<Run x:Uid="ImageResizer_Formatting_SelectedHeight"/> <LineBreak/>
</TextBlock> <Run Text="%6" FontWeight="Bold" />
<Run Text=" - "/>
<TextBlock> <Run x:Uid="ImageResizer_Formatting_ActualHeight"/>
<Run Text="%5" FontWeight="Bold" /> </TextBlock>
<Run Text=" - "/>
<Run x:Uid="ImageResizer_Formatting_ActualWidth"/>
</TextBlock>
<TextBlock>
<Run Text="%6" FontWeight="Bold" />
<Run Text=" - "/>
<Run x:Uid="ImageResizer_Formatting_ActualHeight"/>
</TextBlock>
</StackPanel>
</ToolTipService.ToolTip> </ToolTipService.ToolTip>
</TextBox> </TextBox>