Class DialogDefaultButtonToBooleanConverter
Converter to convert DialogDefaultButton to a boolean.
Inheritance
System.Object
DialogDefaultButtonToBooleanConverter
Implements
System.Windows.Data.IValueConverter
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public class DialogDefaultButtonToBooleanConverter : IValueConverter
Methods
View SourceConvert(Object, Type, Object, CultureInfo)
Converts the DialogDefaultButton to its appropriate boolean value.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The DialogDefaultButton. |
System.Type | targetType | |
System.Object | parameter | An int value of the button number (1,2 or 3). |
System.Globalization.CultureInfo | culture |
Returns
Type | Description |
---|---|
System.Object | The converted boolean value. |
ConvertBack(Object, Type, Object, CultureInfo)
Convert back
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | |
System.Type | targetType | |
System.Object | parameter | |
System.Globalization.CultureInfo | culture |
Returns
Type | Description |
---|---|
System.Object |
Implements
System.Windows.Data.IValueConverter