C# WPF app combobox pulldown not working correctly
$30-5000 USD
Paid on delivery
I have a C#, WPF app that is having a problem with the combobox pulldown. It on some occassions is not displaying either the pull down choice chosen or the correct data. I am told that i need Bind ComboBox to an ObservableCollection, so UI will get automatically updated. I do not know how to do this or locate this area. here is some of the code: I think it should not take too long, I also will have other such work as we are promoting this [url removed, login to view] someone to do this Friday AM USA Eastern time.
[Export]
class ScheduleViewModel : TabViewModel, ISelectedContentTab
{
//
private readonly String[] _assessmentType = new String[] { "All", "INCOMPLETE", "COMPLETED", "COMPLETED LATE", "INCOMPLETE LATE", "NOT STARTED - LATE", "NOT STARTED", "SUBMITTED", "SUBMITTED LATE" };
//pk display ALL as default in detail tab.
//
public ScheduleViewModel()
: base()
{
DisplayName = "Schedules";
StartDate = [url removed, login to view](-6);
EndDate = [url removed, login to view];
GroupDataCollection = new ObservableCollection<GroupData>()
{
// here is the combo box
[url removed, login to view]()
, new GroupData("Criterria"
, [url removed, login to view](StartDate,EndDate,(s, e) => { StartDate = s; EndDate = e; RefreshData(); })
, [url removed, login to view](UnitChanged)
, [url removed, login to view]("Assessment", "Assessment", "Select Assessment to show.", _assessmentType, (type) => { AssessmentType = type; })
)
};
Project ID: #3703274