using System; using System.Collections.Generic; using System.ComponentModel; using System.Reflection; using Xamarin.Forms; namespace SampleApp.Views { [DesignTimeVisible(false)] public partial class Functionality1 : ContentPage { public Functionality1() { InitializeComponent(); AutomationProperties.SetIsInAccessibleTree(forkImage, true); AutomationProperties.SetName(forkImage, "fork image"); } void OnToggled(object sender, ToggledEventArgs e) { // Perform an action after examining e.Value if(e.Value) { AutomationProperties.SetIsInAccessibleTree(forkImage, true); } else { AutomationProperties.SetIsInAccessibleTree(forkImage, false); } } } }