Skip to content
This repository was archived by the owner on Sep 25, 2024. It is now read-only.

Commit 936a723

Browse files
authored
Merge pull request #534 from xamarin/ermau-object-a11y
[Win] a11y name for new object
2 parents 78f59f5 + 66c1202 commit 936a723

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

Xamarin.PropertyEditing.Windows/Themes/Resources.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@
417417
</Grid.ColumnDefinitions>
418418

419419
<TextBlock Text="{Binding ValueType.Name,StringFormat=({0})}" Grid.Column="0" VerticalAlignment="Center" />
420-
<Button MinHeight="20" MinWidth="40" Grid.Column="1" HorizontalAlignment="Right" Content="{x:Static prop:Resources.New}" Command="{Binding CreateInstanceCommand}" />
420+
<Button AutomationProperties.Name="{Binding Property.Name,Mode=OneTime,StringFormat={x:Static prop:Resources.NewInstanceForProperty}}" MinHeight="20" MinWidth="40" Grid.Column="1" HorizontalAlignment="Right" Content="{x:Static prop:Resources.New}" Command="{Binding CreateInstanceCommand}" />
421421
</Grid>
422422
</ControlTemplate>
423423
</Setter.Value>

Xamarin.PropertyEditing/Properties/Resources.Designer.cs

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Xamarin.PropertyEditing/Properties/Resources.resx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,4 +566,8 @@
566566
<data name="UncommonPropertiesTooltip" xml:space="preserve">
567567
<value>Show advanced properties</value>
568568
</data>
569+
<data name="NewInstanceForProperty" xml:space="preserve">
570+
<value>New {0}</value>
571+
<comment>New {PropertyName}</comment>
572+
</data>
569573
</root>

0 commit comments

Comments
 (0)