public void RemoveDecoration(WindowsRTPage page ) { if(_pages.Contains( page )) { _pages.Remove( page ); } }
public void AddDecoration(WindowsRTPage page ) { if(!_pages.Contains( page )) { _pages.Add( page ); } }
public void RemoveDecoration(WindowsRTPage page ) { if(_pages.Contains( page )) { _pages.Remove( page ); } foreach(var phoneApplicationPage in _pages) { SetCurrentNetworkState( phoneApplicationPage ); } }
/// <summary> /// Optionally removes decoration from the page. /// </summary> /// <param name="windowsRtPage">The page.</param> public void RemoveDecoration( WindowsRTPage windowsRtPage ) { if( windowsRtPage == null ) { throw new ArgumentNullException( "windowsRtPage" ); } foreach( var decorator in windowsRtPage.Scope.Resolve<IEnumerable<IPageDecorator>>() ) { decorator.RemoveDecoration( windowsRtPage ); } }
/// <summary> /// Optionally removes decoration from the page. /// </summary> /// <param name="windowsRtPage">The page.</param> public void RemoveDecoration( WindowsRTPage windowsRtPage ) { //Contract.Requires<ArgumentNullException>( windowsRtPage != null ); }