void widget_RootKeyChangeFocus(Widget source, EventArgs e) { RootFocusEventArgs rfea = (RootFocusEventArgs)e; if (rfea.Focus) { ViewHost.Context.getModel <EditMenuManager>(EditMenuManager.DefaultName).setMenuProvider(this); } }
void imageBox_RootKeyChangeFocus(Widget source, EventArgs e) { RootFocusEventArgs fe = (RootFocusEventArgs)e; if (!fe.Focus) { renderOneFrame = true; removeFocus(); } hasKeyFocus = fe.Focus; determineRenderingActive(); }