如何將無線電按鈕綁定到一個枚舉上?我有一個像這樣的枚舉:public enum MyLovelyEnum{
FirstSelection,
TheOtherSelection,
YetAnotherOne};DataContext中有一個屬性:public MyLovelyEnum VeryLovelyEnum { get; set; }我的WPF客戶有三個收音機按鈕。<RadioButton Margin="3">First Selection</RadioButton><RadioButton Margin="3">The Other Selection</RadioButton><RadioButton Margin="3">
Yet Another one</RadioButton>現在,我如何將RadioButtons綁定到屬性,以便進行正確的雙向綁定?
添加回答
舉報
0/150
提交
取消