TextBoxHelper.

GetHasText(DependencyObject) Method

Summary

Gets if the attached TextBox has text.
Namespace
MahApps.Metro.Controls
Containing Type
TextBoxHelper

Syntax

[Category(AppName.MahApps)]
[AttachedPropertyBrowsableForType(typeof(TextBoxBase))]
[AttachedPropertyBrowsableForType(typeof(PasswordBox))]
[AttachedPropertyBrowsableForType(typeof(ComboBox))]
[AttachedPropertyBrowsableForType(typeof(DatePicker))]
[AttachedPropertyBrowsableForType(typeof(NumericUpDown))]
public static bool GetHasText(DependencyObject obj)

Attributes

Type Description
Category
AttachedPropertyBrowsableForType
AttachedPropertyBrowsableForType
AttachedPropertyBrowsableForType
AttachedPropertyBrowsableForType
AttachedPropertyBrowsableForType

Parameters

Name Type Description
obj DependencyObject

Return Value

Type Description
bool