Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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