コード例 #1
0
		public void RemoveDecoration(WindowsRTPage page )
		{
			if(_pages.Contains( page ))
			{
				_pages.Remove( page );
			}
		}
コード例 #2
0
		public void AddDecoration(WindowsRTPage page )
		{
			if(!_pages.Contains( page ))
			{
				_pages.Add( page );
			}
		}
コード例 #3
0
		public void RemoveDecoration(WindowsRTPage page )
		{
			if(_pages.Contains( page ))
			{
				_pages.Remove( page );
			}
			foreach(var phoneApplicationPage in _pages)
			{
				SetCurrentNetworkState( phoneApplicationPage );
			}
		}
コード例 #4
0
		/// <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 );
			}
		}
コード例 #5
0
		/// <summary>
		///     Optionally removes decoration from the page.
		/// </summary>
		/// <param name="windowsRtPage">The page.</param>
		public void RemoveDecoration( WindowsRTPage windowsRtPage )
		{
			//Contract.Requires<ArgumentNullException>( windowsRtPage != null );
		}