Functionality11.xaml.cs 681 Bytes
Newer Older
Mattia's avatar
Mattia committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using SampleApp.DependencyServices;
using Xamarin.Forms;

namespace SampleApp.Views
{
    public partial class Functionality11 : ContentPage
    {
        IReadText readText;
        public Functionality11()
        {
            InitializeComponent();

            readText = DependencyService.Get<IReadText>();
            AutomationProperties.SetIsInAccessibleTree(label, true);
            AutomationProperties.SetIsInAccessibleTree(button, true);

        }

        void Button_Clicked(System.Object sender, System.EventArgs e)
        {
            readText.ReadText(label);
        }
    }
}