Content Property
Collapse the table of content
Expand the table of content

NavigationService.Content Property

 

Gets or sets a reference to the object that contains the current content.

Namespace:   System.Windows.Navigation
Assembly:  PresentationFramework (in PresentationFramework.dll)

public object Content { get; set; }

Property Value

Type: System.Object

An object that is a reference to the object that contains the current content.

Content can be set in one of two ways:

Setting NavigationService initiates a new navigation; since navigation is asynchronous, Content won't return a value if it is inspected immediately after being set.

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft