コード例 #1
0
ファイル: FocusManager.cs プロジェクト: aferin/TizenFX
 private void OnFocusedViewEnterKey2(IntPtr view)
 {
     if (focusedViewEnterKeyEventHandler != null)
     {
         FocusedViewActivatedEventArgs e = new FocusedViewActivatedEventArgs();
         e.View = Registry.GetManagedBaseHandleFromNativePtr(view) as View;
         focusedViewEnterKeyEventHandler(this, e);
     }
 }
コード例 #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);
            }
        }