How to bind RadioButtons to an enum?

前端 未结 9 2195
日久生厌
日久生厌 2020-11-22 03:21

I\'ve got an enum like this:

public enum MyLovelyEnum
{
    FirstSelection,
    TheOtherSelection,
    YetAnotherOne
};

I got a property in

9条回答
  •  轮回少年
    2020-11-22 03:49

    I would use the RadioButtons in a ListBox, and then bind to the SelectedValue.

    This is an older thread about this topic, but the base idea should be the same: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/323d067a-efef-4c9f-8d99-fecf45522395/

提交回复
热议问题