Example #1
0
        /// <summary>
        /// DockPanel closed
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>

        private void ViewDockPanel_ClosedPanel(object sender, DockPanelEventArgs e)
        {
            DockPanel dp = sender as DockPanel;

            if (dp == null)
            {
                return;
            }
            ViewManager vm = dp.Tag as ViewManager;

            if (vm == null)
            {
                return;
            }

            ResultsPage.RemoveView(vm);             // remove the view from the page

            return;
        }