如何將無線電按鈕綁定到一個枚舉上?我有一個像這樣的枚舉:public enum MyLovelyEnum{
FirstSelection,
TheOtherSelection,
YetAnotherOne};DataContext中有一個屬性:public MyLovelyEnum VeryLovelyEnum { get; set; }我的WPF客戶有三個收音機(jī)按鈕。<RadioButton Margin="3">First Selection</RadioButton><RadioButton Margin="3">The Other Selection</RadioButton><RadioButton Margin="3">
Yet Another one</RadioButton>現(xiàn)在,我如何將RadioButtons綁定到屬性,以便進(jìn)行正確的雙向綁定?
如何將無線電按鈕綁定到一個枚舉上?
收到一只叮咚
2019-06-20 16:23:42