I am currently trying to dynamically add ComboBoxItems to a ComboBox that was also created dynamically. I get an error saying that the ComboBox name does not exist.
Anyone know how I would be able to get around this? Any help is appreciated.
YearGroupRegistersRightSide.Children.Add(new ComboBox { Name = "DynamicCombobox3", SelectedIndex = 0 });
DynamicCombobox3.Children.Add(new ComboBoxItem{Name="Item One", Content="<--- Select --->>"});