public void Hide(Panel container) { if (container != null && m_loadingSpin != null) { container.Children.Remove(this.Loading); m_loadingSpin.IsBusy = false; m_loadingSpin = null; if (m_pageTab != null) { m_pageTab.ClearValue(LoadingSettingProperty); m_pageTab.Focus(); } } }
public void Dispose() { if (m_pageTab != null) { this.LoadingSpin.Dispose(); this.MessageBox.Clear(); m_pageTab.ClearValue(PageBrowser.DocumentVerticalScrollBarProperty); m_pageTab.ClearValue(PageBrowser.DocumentHorizontalScrollBarProperty); // List<Panel> list = m_pageTab.GetValue(PageBrowser.PopupBoxListProperty) as List<Panel>; // Panel container; //if (list != null) //{ // foreach (Panel panel in list) // { // if (panel.Parent != null && (container = panel.Parent as Panel) != null) // { // container.Children.Remove(panel); // } // } //} // m_pageTab.ClearValue(PageBrowser.PopupBoxListProperty); } }