Beispiel #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);
        }
Beispiel #2
0
        private void DisconnectFromGroup()
        {
            if (m_hwndAdornerGroup == null)
            {
                return;
            }

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

            m_hwndAdornerGroup.RemoveAdorner(this);
            m_hwndAdornerGroup = null;
        }
Beispiel #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);
 }