ThemeModeConverter.ConvertFrom Method

Definition

Attempts to convert to a ThemeMode from the specified object

C#
public override object ConvertFrom(System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, System.Globalization.CultureInfo cultureInfo, object source);

Parameters

typeDescriptorContext
ITypeDescriptorContext

The ITypeDescriptorContext for this call.

cultureInfo
CultureInfo

The CultureInfo which is respected when converting.

source
Object

The object to convert to a ThemeMode.

Returns

The new ThemeMode instance.

Exceptions

The example object is null.

Applies to

Produkt Versioner
Windows Desktop 9, 10