Share via


DesignerView.GetVisualChild Method

Returns the visual children of the designer view.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Protected Overrides Function GetVisualChild ( _
    index As Integer _
) As Visual
protected override Visual GetVisualChild(
    int index
)
protected:
virtual Visual^ GetVisualChild(
    int index
) override
abstract GetVisualChild : 
        index:int -> Visual 
override GetVisualChild : 
        index:int -> Visual 
protected override function GetVisualChild(
    index : int
) : Visual

Parameters

  • index
    Type: System.Int32
    The zero-based index of the visual child collection.

Return Value

Type: System.Windows.Media.Visual
A Visual at the specified index.

Remarks

In the default implementation, index must have the value 0, 1, or 2. The following table shows how the indices match the view's visual children.

Index

Visual Child

0

Child

1

Hit-test layer

2

Adorner layer

.NET Framework Security

See Also

Reference

DesignerView Class

Microsoft.Windows.Design.Interaction Namespace

AdornerPanel

Other Resources

Walkthrough: Creating a Design-time Adorner

Adorner Architecture