Share via


ChildSiteLink Class

Definition

Provides hosting for a **ContentIsland** (child) in the environment of another **ContentIsland** (parent).

public ref class ChildSiteLink sealed : IContentSiteAutomation, IContentSiteInput, IContentSiteLink, IClosableNotifier, IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65543)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ChildSiteLink final : IContentSiteAutomation, IContentSiteInput, IContentSiteLink, IClosableNotifier, IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65543)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ChildSiteLink : IContentSiteAutomation, IContentSiteInput, IContentSiteLink, IClosableNotifier, System.IDisposable
Public NotInheritable Class ChildSiteLink
Implements IClosableNotifier, IContentSiteAutomation, IContentSiteInput, IContentSiteLink, IDisposable
Inheritance
Object Platform::Object IInspectable ChildSiteLink
Attributes
Implements

Remarks

This object controls the **IsSiteVisible** property of the owned **ContentSite**. The **IsSiteVisible** property is set to the value aggregated from the **IsSiteVisible** and **IsIslandVisible** properties of the parent **ContentIsland**.

This object controls the **IsSiteEnabled** property of the owned **ContentSite**. The **IsSiteEnabled** property is set to the value aggregated from the **IsSiteEnabled** and **IsIslandEnabled** properties of the parent **ContentIsland**.

This object is implicitly closed when either the parent **ContentIsland** is closed or the connected **ContentIsland** is closed or the associated **DispatcherQueue** is closed.

A ChildSiteLink constructed with a **ContentIsland** that uses a **Visual** does not support connecting with a **ContentIsland** that uses a **Visual**.

Properties

ActualSize

Gets or sets the effective **Size** of the placement **Visual** relative to the root **Visual** of the parent **ContentIsland**.

AutomationOption

Gets or sets the automation hosting contract option of the connected **ContentIsland**.

AutomationProvider

Gets an automation provider that represents a proxy for the automation provider of the connected **ContentIsland**.

DispatcherQueue

Gets the dispatcher queue associated with the ChildSiteLink object.

IsClosed

Gets whether the ChildSiteLink is hidden or closed.

LocalToParentTransformMatrix

Gets or sets the transform matrix from the placement **Visual** to the root **Visual** of the parent **ContentIsland**.

Parent

Gets the parent **ContentIsland**.

ProcessesKeyboardInput

Gets or sets a value indicating whether to process keyboard input.

ProcessesPointerInput

Gets or sets a value indicating whether to process pointer input.

SiteView

Gets a view of the owned **ContentSite**.

Methods

Close()

Closes the ChildSiteLink object, and releases system resources.

Connect(ContentIsland)

Connects the specified **ContentIsland** with the owned **ContentSite**.

Create(ContentIsland, ContainerVisual)

Creates a new **ChildSiteLink** instance (in a disconnected and empty state).

CreateForSystemVisual(ContentIsland, ContainerVisual)

Creates a new **ChildSiteLink** instance (in a disconnected and empty state).

Dispose()

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

Events

Closed

Occurs when the ChildSiteLink is hidden or closed.

FragmentRootAutomationProviderRequested

Occurs when the IRawElementProviderFragmentRoot is requested by the connected **ContentIsland**.

FrameworkClosed

Occurs when a framework closes.

NextSiblingAutomationProviderRequested

Occurs when the next sibling automation provider is requested by the connected **ContentIsland**.

ParentAutomationProviderRequested

Occurs when the parent automation provider is requested by the connected **ContentIsland**.

PreviousSiblingAutomationProviderRequested

Occurs when the previous sibling automation provider is requested by the connected **ContentIsland**.

Applies to