Esempio n. 1
0
        public void FocusOvershotEventArgsViewCurrentFocusedView()
        {
            tlog.Debug(tag, $"FocusOvershotEventArgsCurrentFocusedView START");

            var testingTarget = new Accessibility.AccessibilityManager.FocusOvershotEventArgs();

            Assert.IsNotNull(testingTarget, "Can't create success object FocusOvershotEventArgs");
            Assert.IsInstanceOf <Accessibility.AccessibilityManager.FocusOvershotEventArgs>(testingTarget, "Should be an instance of FocusOvershotEventArgs type.");

            using (View view = new View()
            {
                Size = new Size(100, 50)
            })
            {
                testingTarget.CurrentFocusedView = view;
                tlog.Debug(tag, "CurrentFocusedView : " + testingTarget.CurrentFocusedView);
            }

            testingTarget.FocusOvershotDirection = Accessibility.AccessibilityManager.FocusOvershotDirection.Next;
            tlog.Debug(tag, "FocusOvershotDirection : " + testingTarget.FocusOvershotDirection);

            tlog.Debug(tag, $"FocusOvershotEventArgsCurrentFocusedView END (OK)");
        }
Esempio n. 2
0
 private void OnFocusOvershot(object sender, Accessibility.AccessibilityManager.FocusOvershotEventArgs e)
 {
 }