Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- visual
Type: System.Windows.DependencyObject
A Visual or Visual3D that is a child of the AdornerPanel.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Interaction Namespace