I have a combo box that I want to load with a string array that is returned from a method. I currently just have this being loaded with a for loop but I think there should be away to just assingn the string array directly to the combo box. (I'm just trying to improve my code)
I've done some searching and I've seen answers using datarange or datasource but neither of these seem to work. I also have tried datacontext as that seemed like a possibility. Is there something I'm missing or there not a way to assing the array all in one line?
I am using C# WPF and the file is the MainWindow.xaml.cs
Thanks!