示例#1
0
 void DockContent_IsFocusedChanged(object sender, BooleanArgs e)
 {
     if (e.Value)
     {
         DockContent content = (DockContent)sender;
         if (m_children.Contains(content))
         {
             ShowPopup(content);
         }
     }
     else
     {
         ClosePopup();
     }
 }
示例#2
0
        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;
            }
        }
示例#3
0
文件: SidePopup.cs 项目: GeertVL/ATF
 void DockContent_IsFocusedChanged(object sender, BooleanArgs e)
 {
     if (e.Value)
     {
         DockContent content = (DockContent)sender;
         if (m_children.Contains(content))
         {
             ShowPopup(content);
         }
     }
     else
     {
         ClosePopup();
     }
 }
示例#4
0
 void DockContent_IsFocusChanged(object sender, BooleanArgs e)
 {
     Focused = ((IDockContent)DockedContent).IsFocused;
 }
示例#5
0
 void DockContent_IsFocusChanged(object sender, BooleanArgs e)
 {
     Focused = ((IDockContent)DockedContent).IsFocused;
 }
示例#6
0
文件: DockPanel.cs 项目: sbambach/ATF
 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();
         }
     }
 }
示例#7
0
        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;
            }
        }