Пример #1
0
        void Unloaded(object sender, VisualTreeAttachmentEventArgs e)
        {
            FrameAdded    = null;
            FrameRemoved  = null;
            FrameSelected = null;
            Viewer        = null;

            this.RemoveHandler(DragDrop.DragOverEvent, DragOver);
            this.RemoveHandler(DragDrop.DropEvent, Drop);
        }
Пример #2
0
        void Unloaded(object sender, VisualTreeAttachmentEventArgs e)
        {
            FrameAdded    = null;
            FrameRemoved  = null;
            FrameSelected = null;
            Viewer        = null;

            DragDrop.Dispose();
            DragDrop = null;
        }
Пример #3
0
        private void Unloaded(object sender, VisualTreeAttachmentEventArgs e)
        {
            FrameAdded    = null;
            FrameRemoved  = null;
            FrameSelected = null;
            Viewer        = null;

            this.RemoveHandler(DragDrop.DragOverEvent, DragOver);
            this.RemoveHandler(DragDrop.DropEvent, Drop);

            FrameContextMenu.RemoveHandler(MenuItem.ClickEvent, ContextMenu_Click);
            FrameContextMenu = null;
        }