C# Class Catel.Windows.DataWindowButton

Information for a button that should be generated.
Show file Open project: Catel/Catel Class Usage Examples

Public Methods

Method 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

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

Method Details

DataWindowButton() public method

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.
return System

DataWindowButton() public method

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.
return System

DataWindowButton() public method

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.
return System

DataWindowButton() public method

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.
return System

FromAsync() public static method

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.
return DataWindowButton

FromAsync() public static method

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.
return DataWindowButton

FromSync() public static method

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.
return DataWindowButton

FromSync() public static method

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.
return DataWindowButton