Search Results for

    Show / Hide Table of Contents

    Class EnumExtension

    XAML extension to return the values of an enumeration.

    Inheritance
    Object
    MarkupExtension
    EnumExtension
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: BionicCode.Utilities.Net
    Assembly: BionicCode.Utilities.Net.Wpf.dll
    Syntax
    public class EnumExtension : MarkupExtension
    Examples

    Provide the enum type via constructor or by setting the EnumType property:

    Constructors

    | Improve this Doc View Source

    EnumExtension()

    Default constructor.

    Declaration
    public EnumExtension()
    | Improve this Doc View Source

    EnumExtension(Type)

    Constructor to initialize the EnumType property.

    Declaration
    public EnumExtension(Type enumType)
    Parameters
    Type Name Description
    Type enumType

    Properties

    | Improve this Doc View Source

    EnumType

    The enum to enumerate.

    Declaration
    public Type EnumType { get; set; }
    Property Value
    Type Description
    Type

    The type of the enum to enumerate.

    Methods

    | Improve this Doc View Source

    ProvideValue(IServiceProvider)

    Declaration
    public override object ProvideValue(IServiceProvider serviceProvider)
    Parameters
    Type Name Description
    IServiceProvider serviceProvider
    Returns
    Type Description
    Object
    Overrides
    MarkupExtension.ProvideValue(IServiceProvider)

    Extension Methods

    HelperExtensionsCommon.ToDictionary(Object)
    HelperExtensionsCommon.ToFlatDictionary(Object)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX