Class TextBoxService
Provides various extensions for TextBox controls.
Inherited Members
Namespace: PresentationTheme.Aero
Assembly: PresentationTheme.Aero.dll
Syntax
public static class TextBoxService
Fields
| Improve this Doc View SourceViewMarginProperty
Identifies the ViewMargin dependency property.
Declaration
public static readonly DependencyProperty ViewMarginProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Remarks
TextBox controls have a hardcoded margin of (0;2). Setting this attached property on a TextBox allows changing this margin.
Methods
| Improve this Doc View SourceGetViewMargin(DependencyObject)
Gets the value of the attached ViewMarginProperty for a specified DependencyObject.
Declaration
public static Thickness? GetViewMargin(DependencyObject d)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | d | The DependencyObject from which the property value is read. |
Returns
Type | Description |
---|---|
Nullable<Thickness> | The view margin for the DependencyObject. |
SetViewMargin(DependencyObject, Nullable<Thickness>)
Sets the value of the attached ViewMarginProperty to a specified DependencyObject.
Declaration
public static void SetViewMargin(DependencyObject d, Thickness? value)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | d | The DependencyObject to which the property is attached. |
Nullable<Thickness> | value | The view margin. |