ContentSite Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기