AdornerPanel.FromVisual Method

Returns the AdornerPanel that is the parent of the specified Visual.

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

Syntax

'Declaration
Public Shared Function FromVisual ( _
    visual As DependencyObject _
) As AdornerPanel
public static AdornerPanel FromVisual(
    DependencyObject visual
)
public:
static AdornerPanel^ FromVisual(
    DependencyObject^ visual
)
static member FromVisual : 
        visual:DependencyObject -> AdornerPanel 
public static function FromVisual(
    visual : DependencyObject
) : AdornerPanel

Parameters

Return Value

Type: Microsoft.Windows.Design.Interaction.AdornerPanel
An AdornerPanel that is the parent of the visual, or nulla null reference (Nothing in Visual Basic) if the visual does not have a parent view.

Exceptions

Exception Condition
ArgumentNullException

visual is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

AdornerPanel Class

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Adorner Architecture

Feature Providers and Feature Connectors