Exemple #1
0
 private void OnFocusedViewEnterKey2(IntPtr view)
 {
     if (focusedViewEnterKeyEventHandler != null)
     {
         FocusedViewActivatedEventArgs e = new FocusedViewActivatedEventArgs();
         e.View = Registry.GetManagedBaseHandleFromNativePtr(view) as View;
         focusedViewEnterKeyEventHandler(this, e);
     }
 }
Exemple #2
0
        // Callback for AccessibilityManager FocusedViewActivatedSignal
        private void OnFocusedViewActivated(IntPtr view)
        {
            if (accessibilityManagerFocusedViewActivatedEventHandler != null)
            {
                FocusedViewActivatedEventArgs e = new FocusedViewActivatedEventArgs();

                // Populate all members of "e" (FocusedViewActivatedEventArgs) with real data
                e.View = Registry.GetManagedBaseHandleFromNativePtr(view) as View;
                //here we send all data to user event handlers
                accessibilityManagerFocusedViewActivatedEventHandler(this, e);
            }
        }