Databinding an enum property to a ComboBox in WPF

后端 未结 13 1491
北海茫月
北海茫月 2020-11-22 15:46

As an example take the following code:

public enum ExampleEnum { FooBar, BarFoo }

public class ExampleClass : INotifyPropertyChanged
{
    private ExampleEn         


        
13条回答
  •  耶瑟儿~
    2020-11-22 16:20

    I've created an open source CodePlex project that does this. You can download the NuGet package from here.

    
    

提交回复
热议问题