C# Class Catel.Windows.DataWindowButton

Information for a button that should be generated.
Afficher le fichier Open project: Catel/Catel Class Usage Examples

Méthodes publiques

Méthode Description
DataWindowButton ( string text, ICommand command ) : System

Initializes a new instance of the DataWindowButton class.

DataWindowButton ( string text, ICommand command, string contentBindingPath = null, IValueConverter contentValueConverter = null, string visibilityBindingPath = null, IValueConverter visibilityValueConverter = null ) : System

Initializes a new instance of the DataWindowButton class.

Text is ignored when contentBindingPath is set.

DataWindowButton ( string text, string commandBindingPath ) : System

Initializes a new instance of the DataWindowButton class.

DataWindowButton ( string text, string commandBindingPath, string contentBindingPath = null, IValueConverter contentValueConverter = null, string visibilityBindingPath = null, IValueConverter visibilityValueConverter = null ) : System

Initializes a new instance of the DataWindowButton class.

Text is ignored when contentBindingPath is set.

FromAsync ( string text, Func executeAsync, Func canExecute = null ) : DataWindowButton

Initializes a new instance of the DataWindowButton class.

FromAsync ( string text, Func executeAsync, Func canExecute = null, string contentBindingPath = null, IValueConverter contentValueConverter = null, string visibilityBindingPath = null, IValueConverter visibilityValueConverter = null ) : DataWindowButton

Initializes a new instance of the DataWindowButton class.

Text is ignored when contentBindingPath is set.

FromSync ( string text, System.Action execute, Func canExecute = null ) : DataWindowButton

Initializes a new instance of the DataWindowButton class.

FromSync ( string text, System.Action execute, Func canExecute = null, string contentBindingPath = null, IValueConverter contentValueConverter = null, string visibilityBindingPath = null, IValueConverter visibilityValueConverter = null ) : DataWindowButton

Initializes a new instance of the DataWindowButton class.

Text is ignored when contentBindingPath is set.

Private Methods

Méthode Description
DataWindowButton ( string text, System.Action execute, Func canExecute = null ) : System

Method Details

DataWindowButton() public méthode

Initializes a new instance of the DataWindowButton class.
The is null.
public DataWindowButton ( string text, ICommand command ) : System
text string The text.
command ICommand The command.
Résultat System

DataWindowButton() public méthode

Initializes a new instance of the DataWindowButton class.
Text is ignored when contentBindingPath is set.
The is null.
public DataWindowButton ( string text, ICommand command, string contentBindingPath = null, IValueConverter contentValueConverter = null, string visibilityBindingPath = null, IValueConverter visibilityValueConverter = null ) : System
text string The text.
command ICommand The command.
contentBindingPath string The binding path expression of the content to bind to.
contentValueConverter IValueConverter The value converter used with content binding.
visibilityBindingPath string The binding path expression of the visibility to bind to.
visibilityValueConverter IValueConverter The value converter used with visibility binding.
Résultat System

DataWindowButton() public méthode

Initializes a new instance of the DataWindowButton class.
The is null.
public DataWindowButton ( string text, string commandBindingPath ) : System
text string The text.
commandBindingPath string The binding path expression of the command to bind to.
Résultat System

DataWindowButton() public méthode

Initializes a new instance of the DataWindowButton class.
Text is ignored when contentBindingPath is set.
The is null.
public DataWindowButton ( string text, string commandBindingPath, string contentBindingPath = null, IValueConverter contentValueConverter = null, string visibilityBindingPath = null, IValueConverter visibilityValueConverter = null ) : System
text string The text.
commandBindingPath string The binding path expression of the command to bind to.
contentBindingPath string The binding path expression of the content to bind to.
contentValueConverter IValueConverter The value converter used with content binding.
visibilityBindingPath string The binding path expression of the visibility to bind to.
visibilityValueConverter IValueConverter The value converter used with visibility binding.
Résultat System

FromAsync() public static méthode

Initializes a new instance of the DataWindowButton class.
public static FromAsync ( string text, Func executeAsync, Func canExecute = null ) : DataWindowButton
text string The text.
executeAsync Func The async execute delegate.
canExecute Func The can execute delegate.
Résultat DataWindowButton

FromAsync() public static méthode

Initializes a new instance of the DataWindowButton class.
Text is ignored when contentBindingPath is set.
public static FromAsync ( string text, Func executeAsync, Func canExecute = null, string contentBindingPath = null, IValueConverter contentValueConverter = null, string visibilityBindingPath = null, IValueConverter visibilityValueConverter = null ) : DataWindowButton
text string The text.
executeAsync Func The async execute delegate.
canExecute Func The can execute delegate.
contentBindingPath string The binding path expression of the content to bind to.
contentValueConverter IValueConverter The value converter used with content binding.
visibilityBindingPath string The binding path expression of the visibility to bind to.
visibilityValueConverter IValueConverter The value converter used with visibility binding.
Résultat DataWindowButton

FromSync() public static méthode

Initializes a new instance of the DataWindowButton class.
public static FromSync ( string text, System.Action execute, Func canExecute = null ) : DataWindowButton
text string The text.
execute System.Action The execute delegate.
canExecute Func The can execute delegate.
Résultat DataWindowButton

FromSync() public static méthode

Initializes a new instance of the DataWindowButton class.
Text is ignored when contentBindingPath is set.
public static FromSync ( string text, System.Action execute, Func canExecute = null, string contentBindingPath = null, IValueConverter contentValueConverter = null, string visibilityBindingPath = null, IValueConverter visibilityValueConverter = null ) : DataWindowButton
text string The text.
execute System.Action The execute delegate.
canExecute Func The can execute delegate.
contentBindingPath string The binding path expression of the content to bind to.
contentValueConverter IValueConverter The value converter used with content binding.
visibilityBindingPath string The binding path expression of the visibility to bind to.
visibilityValueConverter IValueConverter The value converter used with visibility binding.
Résultat DataWindowButton