Nevron.Nov.UI Namespace / NRadioButtonGroup Class / FillFromEnum<TEnum> Method
Optional enum widget factory for creating the content of the items.
In This Topic
    FillFromEnum<TEnum> Method (NRadioButtonGroup)
    In This Topic
    Creates a stack panel as content of this radio button group and fills that stack panel with radio buttons, one for each value of the specified as a generic parameter enum type.
    Syntax
    public void FillFromEnum<TEnum>( 
       NEnumWidgetFactory<TEnum> widgetFactory
    )
    where TEnum: new(), System.IConvertible, struct

    Parameters

    widgetFactory
    Optional enum widget factory for creating the content of the items.

    Type Parameters

    TEnum
    Remarks
    The enum value is set to the "Tag" property of the radio button. If the radio button group has any content, it is replaced with the stack panel with radio buttons created by this method.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also