Show / Hide Table of Contents

Class TextBoxService

Provides various extensions for TextBox controls.

Inheritance
Object
TextBoxService
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: PresentationTheme.Aero
Assembly: PresentationTheme.Aero.dll
Syntax
public static class TextBoxService

Fields

| Improve this Doc View Source

ViewMarginProperty

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 Source

GetViewMargin(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.

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX