C# Класс Catel.Windows.DataWindowButton

Information for a button that should be generated.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
DataWindowButton ( string text, System.Action execute, Func canExecute = null ) : System

Описание методов

DataWindowButton() публичный Метод

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.
Результат System

DataWindowButton() публичный Метод

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.
Результат System

DataWindowButton() публичный Метод

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.
Результат System

DataWindowButton() публичный Метод

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.
Результат System

FromAsync() публичный статический Метод

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.
Результат DataWindowButton

FromAsync() публичный статический Метод

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.
Результат DataWindowButton

FromSync() публичный статический Метод

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.
Результат DataWindowButton

FromSync() публичный статический Метод

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.
Результат DataWindowButton