Table of Contents

Class DeleteTextTextBoxCommand

Namespace
H.Styles.Default
Assembly
H.Styles.Default.dll
[Icon("")]
[Display(Name = "删除", Description = "清空文本框文本")]
public class DeleteTextTextBoxCommand : DisplayMarkupCommandBase, ICommand, INotifyPropertyChanged, IIconable, INameable, IDescriptionable
Inheritance
DeleteTextTextBoxCommand
Implements
Inherited Members
Extension Methods

Fields

TextProperty

public static readonly DependencyProperty TextProperty

Field Value

DependencyProperty

Methods

CanExecute(object)

Defines the method that determines whether the command can execute in its current state.

public override bool CanExecute(object parameter)

Parameters

parameter object

Data used by the command. If the command does not require data to be passed, this object can be set to null.

Returns

bool

true if this command can be executed; otherwise, false.

Execute(object)

Defines the method to be called when the command is invoked.

public override void Execute(object parameter)

Parameters

parameter object

Data used by the command. If the command does not require data to be passed, this object can be set to null.

GetText(DependencyObject)

public static string GetText(DependencyObject obj)

Parameters

obj DependencyObject

Returns

string

OnTextChanged(DependencyObject, DependencyPropertyChangedEventArgs)

public static void OnTextChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)

Parameters

d DependencyObject
e DependencyPropertyChangedEventArgs

SetText(DependencyObject, string)

public static void SetText(DependencyObject obj, string value)

Parameters

obj DependencyObject
value string