Example #1
0
        private void ConnectToGroup()
        {
            DisconnectFromGroup();

            var manager = WPFTreeExtensions.TryFindVisualAncestor <IHwndAdornerManager>(m_elementAttachedTo);

            m_hwndAdornerGroup = manager == null ? new HwndAdornerGroup(m_elementAttachedTo) : manager.AdornerGroup;
            m_hwndAdornerGroup.AddAdorner(this);
        }
Example #2
0
        private void DisconnectFromGroup()
        {
            if (m_hwndAdornerGroup == null)
            {
                return;
            }

            m_hwndAdornerGroup.RemoveAdorner(this);
            m_hwndAdornerGroup = null;
        }
Example #3
0
        private void DisconnectFromGroup()
        {
            if(m_hwndAdornerGroup == null) return;

            m_hwndAdornerGroup.RemoveAdorner(this);
            m_hwndAdornerGroup = null;
        }
Example #4
0
        private void ConnectToGroup()
        {
            DisconnectFromGroup();

            var manager = WPFTreeExtensions.TryFindVisualAncestor<IHwndAdornerManager>(m_elementAttachedTo);
            m_hwndAdornerGroup = manager == null ? new HwndAdornerGroup(m_elementAttachedTo) : manager.AdornerGroup;
            m_hwndAdornerGroup.AddAdorner(this);
        }
 public HwndAdornerManager()
 {
     m_hwndAdornerGroup = new HwndAdornerGroup(this);
 }
 public HwndAdornerManager()
 {
     m_hwndAdornerGroup = new HwndAdornerGroup(this);
 }