You need to sign in or sign up before continuing.
IosFocusChange.cs 472 Bytes
Newer Older
Poli97's avatar
Poli97 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
using System;
using UIKit;
using Xamarin.Forms;
using Xamarin.Forms.Platform.iOS;
using XAMARINChangeFocus.iOS;

[assembly: Dependency(typeof(IosFocusChange))]
namespace XAMARINChangeFocus.iOS
{
    public class IosFocusChange : IChangeFocusService
    {
        public void ChangeFocus(View v)
        {
            UIAccessibility.PostNotification(notification: UIAccessibilityPostNotification.ScreenChanged, argument: v.GetRenderer().NativeView);

        }
    }
}