次の方法で共有


ContentIsland Class

Definition

A self-contained piece of content with independent input, output, layout, and accessibility that is connected to a parent ContentSite.

[WebHostHidden]
public ref class ContentIsland : ICompositionSupportsSystemBackdrop, 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 ContentIsland : ICompositionSupportsSystemBackdrop, 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 ContentIsland : ICompositionSupportsSystemBackdrop, IClosableNotifier, System.IDisposable
Public Class ContentIsland
Implements IClosableNotifier, ICompositionSupportsSystemBackdrop, IDisposable
Inheritance
Object Platform::Object IInspectable ContentIsland
Attributes
Implements

Remarks

The ContentIsland supports Composition-based animations, rendering effects, and interactive manipulations.

These self-contained pieces of content can be composed into a "scene". Conceptually they are equivalent to child windows because they allow the scene to be subdivided.

Properties

ActualSize

Gets the logical size of the ContentIsland, as determined by the ContentSite.

AppData

Gets or sets a storage container for this ContentIsland.

CoordinateConverter

Gets the ContentCoordinateConverter for this ContentIsland.

CustomProperties

Gets the set of custom properties for the ContentIsland.

DispatcherQueue

Gets the DispatcherQueue associated with this ContentIsland.

Environment

Gets the ContentIslandEnvironment associated with this ContentIsland.

Id

Gets the unique identifier for this ContentIsland.

IsClosed

Gets whether this ContentIsland is closed.

IsConnected

Gets whether this ContentIsland is connected to a ContentSite.

IsHitTestVisibleWhenTransparent

Gets or sets whether visual hit testing is supported by this ContentIsland when not displaying any content.

IsIslandEnabled

Gets or sets whether this ContentIsland can receive input.

IsIslandVisible

Gets or sets whether this ContentIsland is shown by its associated ContentSite.

IsSiteEnabled

Gets whether the ContentSite can receive input.

IsSiteVisible

Gets whether the associated ContentSite is visible.

LayoutDirection

Gets the layout direction for reading order and text alignment in a ContentSite.

RasterizationScale

Gets the local dots per inch (dpi) of a Microsoft.UI.Composition.ICompositionSurface.

SystemBackdrop

Gets or sets the system backdrop to apply to this ContentIsland.

Methods

Close()

Closes the ContentIsland.

Create(Visual)

Creates a ContentIsland in a disconnected and empty state.

Dispose()

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

FindAllForCompositor(Compositor)

Returns all ContentIsland objects associated with the specified Microsoft.UI.Composition.Compositor.

FindAllForCurrentThread()

Returns all ContentIsland objects owned by the current thread.

GetAutomationHostProvider()

Gets the host automation provider associated with the ContentIsland.

GetByVisual(Visual)

Retrieves the ContentIsland that contains the specified child visual object on the current thread.

GetFromId(UInt64)

Retrieves the ContentIsland with the specified identifier.

GetStateChangeDeferral()

Retrieves a ContentDeferral object that enables asynchronous updates to individual properties without raising StateChanged events until the deferral is completed.

RequestSize(Vector2)

Retrieves a new size for the ContentIsland from the ContentSite.

Events

AutomationProviderRequested

Occurs when an automation provider is requested for this ContentIsland.

Closed

Occurs when the ContentIsland is closed.

FrameworkClosed

Occurs when a framework closes.

StateChanged

Occurs when a state property for this ContentIsland changes.

Applies to