SilverlightHost Class
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Reports details about the application's instantiation settings.
Inheritance Hierarchy
System..::.Object
System.Windows.Interop..::.SilverlightHost
Namespace: System.Windows.Interop
Assembly: System.Windows (in System.Windows.dll)
Syntax
Public Class SilverlightHost
public class SilverlightHost
The SilverlightHost type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
![]() |
SilverlightHost | Infrastructure. Initializes a new instance of the SilverlightHost class. |
Top
Properties
| Name | Description | |
|---|---|---|
![]() |
Background | Gets the background color value that was applied to the application as part of instantiation settings. |
![]() |
Content | Gets the "Content" sub-object of this SilverlightHost. |
![]() |
IsLoaded | Gets a value that indicates whether the application has finished loading. |
![]() |
NavigationState | Gets or sets a URI fragment that represents the current navigation state. |
![]() |
Settings | Gets the "Settings" sub-object of this SilverlightHost. |
Top
Methods
| Name | Description | |
|---|---|---|
![]() |
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() |
Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
IsVersionSupported | Returns a value that indicates whether the specified version is supported. |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Events
| Name | Description | |
|---|---|---|
![]() |
NavigationStateChanged | Occurs when the NavigationState property changes value. |
Top
Remarks
The Content property returns a value of type Content, which represents the visual state of the application.
The Settings property returns a value of type Settings, which provides access to some application configuration values.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0
Platforms
Windows Phone
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
.gif)
.gif)
.gif)
.gif)