Beispiel #1
0
 void DisposeAll()
 {
     ActionOnChildControls <Grid>(llsItemList, Grid.NameProperty, "grdItem", ((c) => ContextMenuService.SetContextMenu(c, null)));
     llsItemList.ItemsSource             = null;
     llsItemList.ItemTemplate            = null;
     llsItemList.ItemRealized           -= llsItemList_ItemRealized;
     ContentPanel.ManipulationCompleted -= ContentPanel_ManipulationCompleted;
     adControl             = null;
     NavBar.SelectedEvent -= NavBar_SelectedEvent;
     NavBar.Dispose();
 }
Beispiel #2
0
 private void DisposeAll()
 {
     _wbContent.Navigating     -= wbContent_Navigating;
     _wbContent.Navigated      -= wbsContent_Navigated;
     _wbContent.LoadCompleted  -= wbContent_LoadCompleted;
     _wbContent.IsScriptEnabled = false;
     _wbContent.NavigateToString("<html></html>");
     WBContainer.Child = null;
     brdTitle.ManipulationCompleted -= Border_ManipulationCompleted;
     _itemContainer.Dispose();
     adControl.StopAds();
     adControl.Dispose();
     NavBar.Dispose();
 }