Share via


ContentSiteView Class

Definition

Provides access to a read-only view of ContentSite properties.

[WebHostHidden]
public ref class ContentSiteView
/// [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 ContentSiteView
[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 ContentSiteView
Public Class ContentSiteView
Inheritance
Object Platform::Object IInspectable ContentSiteView
Attributes

Remarks

This object exposes the most recent values from a ContentSite, it is not a snapshot in time.

Properties

ActualSize

Gets the logical size of the associated ContentIsland.

ClientSize

Gets the parent Win32 HWND client size.

CoordinateConverter

Gets the ContentCoordinateConverter object used to perform conversions between the local coordinate space of this ContentSiteView and screen coordinates.

DispatcherQueue

Gets the DispatcherQueue for this ContentSiteView.

EnvironmentView

Gets the Microsoft.UI.Content.ContentSiteEnvironmentView for this ContentSiteView.

IsConnected

Gets the IsConnected state reported by the ContentSite.

IsSiteEnabled

Gets the IsSiteEnabled state reported by the ContentSite.

IsSiteVisible

Gets the IsSiteVisible state reported by the ContentSite.

LayoutDirection

Gets the LayoutDirection (LeftToRight or RightToLeft) for reading order and text alignment reported by the ContentSite.

OverrideScale

Gets the override scaling factor for a single ContentSite, ignoring the default scaling factor of the parent Win32 HWND.

ParentScale

Gets the default scaling factor of the parent Win32 HWND for a single ContentSite.

RasterizationScale

Gets the computed local DPI for the associated ContentSite, which is computed from the OverrideScale and ParentScale.

See ContentIsland.RasterizationScale for more information.

RequestedSize

Gets the logical RequestedSize.

ShouldApplyRasterizationScale

Gets whether the ContentSite applies the computed RasterizationScale as an optical scale.

Applies to