Share via


AdornerPanel.SetHorizontalStretch Method

Sets the value of the HorizontalStretch attached property for the provided element.

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

Syntax

'Declaration
Public Shared Sub SetHorizontalStretch ( _
    adorner As UIElement, _
    value As AdornerStretch _
)
public static void SetHorizontalStretch(
    UIElement adorner,
    AdornerStretch value
)
public:
static void SetHorizontalStretch(
    UIElement^ adorner, 
    AdornerStretch value
)
static member SetHorizontalStretch : 
        adorner:UIElement * 
        value:AdornerStretch -> unit 
public static function SetHorizontalStretch(
    adorner : UIElement, 
    value : AdornerStretch
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

adorner 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