diff options
Diffstat (limited to 'Xamarin.Forms.Controls/CoreGallery.cs')
-rw-r--r-- | Xamarin.Forms.Controls/CoreGallery.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls/CoreGallery.cs b/Xamarin.Forms.Controls/CoreGallery.cs index 83d8ec6c..924d4129 100644 --- a/Xamarin.Forms.Controls/CoreGallery.cs +++ b/Xamarin.Forms.Controls/CoreGallery.cs @@ -212,6 +212,7 @@ namespace Xamarin.Forms.Controls } }; #endif + SetValue(Accessibility.NameProperty, "SwapRoot"); } } @@ -235,9 +236,16 @@ namespace Xamarin.Forms.Controls public Func<Page> Realize { get; set; } public string Title { get; set; } + + public override string ToString() + { + // a11y: let Narrator read a friendly string instead of the default ToString() + return Title; + } } List<GalleryPageFactory> _pages = new List<GalleryPageFactory> { + new GalleryPageFactory(() => new AccessibilityGallery(), "Accessibility"), new GalleryPageFactory(() => new PlatformSpecificsGallery(), "Platform Specifics"), new GalleryPageFactory(() => new NativeBindingGalleryPage(), "Native Binding Controls Gallery"), new GalleryPageFactory(() => new XamlNativeViews(), "Xaml Native Views Gallery"), @@ -368,6 +376,8 @@ namespace Xamarin.Forms.Controls SelectedItem = null; }; + + SetValue(Accessibility.NameProperty, "Core Pages"); } NavigationBehavior navigationBehavior; |