Class DeleteTextTextBoxCommand
[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
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
objectData used by the command. If the command does not require data to be passed, this object can be set to null.
Returns
Execute(object)
Defines the method to be called when the command is invoked.
public override void Execute(object parameter)
Parameters
parameter
objectData 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
OnTextChanged(DependencyObject, DependencyPropertyChangedEventArgs)
public static void OnTextChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
Parameters
SetText(DependencyObject, string)
public static void SetText(DependencyObject obj, string value)
Parameters
obj
DependencyObjectvalue
string