c# - DataBinding of a ComboBox after InitializeComponent() -
i have 2 combobox on code: <combobox name="comboboxselectcamera" itemssource="{binding path=listcameras}" selectionchanged="comboboxselectcamera_selectionchanged" /> <combobox name="comboboxcities" itemssource="{binding path=listcities}" /> on window have code combobox understand path comes from: <window .... datacontext="{binding relativesource={relativesource self}}" .... > both combos binded 2 listes created on mainwindow : public mainwindow() { initializecitiescombo(); initializecomponent(); // initialize control checks cameras initializecameracontrol(); fillcameraproperties(); datacontext = this; } the first combobox list created before initializecomponent , when combo created, fills specific content. the second combobox list created after initializecomponent , because depend on object loads cameras, and, don't know if that's reaso...