ContentSite Class

Definition

Provides a host environment for a ContentIsland.

[WebHostHidden]
public ref class ContentSite : IClosableNotifier, IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65540)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[WebHostHidden]
class ContentSite : IClosableNotifier, IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65540)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public class ContentSite : IClosableNotifier, System.IDisposable
Public Class ContentSite
Implements IClosableNotifier, IDisposable
Inheritance
Object Platform::Object IInspectable ContentSite
Attributes
Implements

Remarks

A ContentSite is derived from a DesktopSiteBridge and provides the APIs to configure an associated ContentIsland.

There is always a 1:1 mapping between ContentSite objects and ContentIsland objects.

Properties

ActualSize

Gets the logical size of the ContentSite.

ClientSize

Gets the parent Win32 HWND client size.

CoordinateConverter

Gets a ContentCoordinateConverter to converts between a local coordinate space and the system screen coordinates.

DispatcherQueue

Gets the DispatcherQueue associated with this ContentSite.

Environment

Gets the ContentSiteEnvironment object for this ContentSite.

IsClosed

Gets whether this ContentSite is closed.

IsConnected

Gets whether this ContentSite is connected to a ContentIsland.

IsSiteEnabled

Gets or sets whether this ContentSite is enabled.

IsSiteVisible

Gets or sets whether this ContentSite is visible.

LayoutDirection

Gets or sets the layout direction for reading order and text alignment for this ContentSite.

OverrideScale

Gets or sets the scaling factor to use for this ContentSite, which overrides the ParentScale.

ParentScale

Gets or sets the parent Win32 HWND default scaling factor for this ContentSite.

RasterizationScale

Gets the computed local DPI for this ContentSite.

RequestedSize

Gets the logical requested size from the associated ContentIsland.

ShouldApplyRasterizationScale

Gets or sets whether the ContentSite should apply the computed RasterizationScale.

View

Gets the ContentSiteView associated with this ContentSite.

Methods

Close()

Closes this ContentSite.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetIslandStateChangeDeferral()

Retrieves a new ContentDeferral for this ContentSite.

Events

Closed

Occurs when this ContentSite is closed.

FrameworkClosed

Occurs when a framework closes.

RequestedStateChanged

Occurs when a ContentIsland makes a new request to its associated ContentSite.

Applies to