System.Windows.Controls.ContentPresenter.ClearRoot C# (CSharp) Method

ClearRoot() private method

private ClearRoot ( ) : void
return void
		void ClearRoot ()
		{
			if (_contentRoot != null)
				Mono.NativeMethods.uielement_element_removed (native, _contentRoot.native);
			_contentRoot = null;
			InvalidateMeasure ();
		}

Usage Example

Example #1
0
        static void ClearRoot(IntPtr target, IntPtr calldata, IntPtr closure)
        {
            ContentPresenter presenter = (ContentPresenter)NativeDependencyObjectHelper.FromIntPtr(closure);

            presenter.ClearRoot();
        }