void DockContent_IsFocusedChanged(object sender, BooleanArgs e) { if (e.Value) { DockContent content = (DockContent)sender; if (m_children.Contains(content)) { ShowPopup(content); } } else { ClosePopup(); } }
private void DockContent_IsFocusedChanged(object sender, BooleanArgs e) { // Deactivate the previously active content, and activate the newly focused one IDockContent activeControl = m_dockPanel.GetActiveContent(); if (activeControl != m_activeDockControl) { if (m_activeDockControl != null) DeactivateClient(m_activeDockControl.Content); if (activeControl != null) ActivateClient(activeControl.Content); m_activeDockControl = activeControl; } }
void DockContent_IsFocusChanged(object sender, BooleanArgs e) { Focused = ((IDockContent)DockedContent).IsFocused; }
void DockContent_IsFocusedChanged(object sender, BooleanArgs e) { if (e.Value == true) { if (m_lastFocusedContent != sender) { if (m_lastFocusedContent != null && m_lastFocusedContent.IsFocused) { m_lastFocusedContent.IsFocused = false; } m_lastFocusedContent = (DockContent)sender; } } else { if (m_lastFocusedContent == sender) { m_lastFocusedContent = null; this.Focus(); } } }
private void DockContent_IsFocusedChanged(object sender, BooleanArgs e) { //var docContent = sender as IDockContent; //if (docContent.IsFocused) //{ // var fwe = docContent.Content as FrameworkElement; // if (fwe != null) // fwe.Focus(); //} IDockContent activeControl = m_dockPanel.GetActiveContent(); if (activeControl != m_activeDockControl) { if (m_activeDockControl != null) DeactivateClient(m_activeDockControl.Content); if (activeControl != null) ActivateClient(activeControl.Content); m_activeDockControl = activeControl; } }