Class DataFormCommandButtonsVisibilityTypeConverter
Type converter for DataForm.CommandButtonsVisibility.
Inheritance
System.Object
DataFormCommandButtonsVisibilityTypeConverter
Namespace: System.Windows.Controls
Assembly: DataForm.Toolkit.OpenSilver.dll
Syntax
public class DataFormCommandButtonsVisibilityTypeConverter : TypeConverter
Methods
| Improve this Doc View SourceCanConvertFrom(ITypeDescriptorContext, Type)
Returns whether we can convert from a given type.
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
Type | Name | Description |
---|---|---|
ITypeDescriptorContext | context | The type descriptor context. |
System.Type | sourceType | The source type. |
Returns
Type | Description |
---|---|
System.Boolean | Whether we can convert from the given type. |
ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)
Converts a value from a type.
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
Type | Name | Description |
---|---|---|
ITypeDescriptorContext | context | The type descriptor context. |
System.Globalization.CultureInfo | culture | The culture to use. |
System.Object | value | The value to convert from. |
Returns
Type | Description |
---|---|
System.Object | The converted value. |
ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)
Converts a value to a type.
Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
Type | Name | Description |
---|---|---|
ITypeDescriptorContext | context | The type descriptor context. |
System.Globalization.CultureInfo | culture | The culture to use. |
System.Object | value | The value to convert from. |
System.Type | destinationType | The destination type. |
Returns
Type | Description |
---|---|
System.Object | The converted value. |