コード例 #1
0
        void widget_RootKeyChangeFocus(Widget source, EventArgs e)
        {
            RootFocusEventArgs rfea = (RootFocusEventArgs)e;

            if (rfea.Focus)
            {
                ViewHost.Context.getModel <EditMenuManager>(EditMenuManager.DefaultName).setMenuProvider(this);
            }
        }
コード例 #2
0
        void imageBox_RootKeyChangeFocus(Widget source, EventArgs e)
        {
            RootFocusEventArgs fe = (RootFocusEventArgs)e;

            if (!fe.Focus)
            {
                renderOneFrame = true;
                removeFocus();
            }
            hasKeyFocus = fe.Focus;
            determineRenderingActive();
        }