To sum up comments at the point when you're calling _setDefaultSelections()
bindings have not been updated yet, hence Command
is still null, so you have to wait until everything is loaded. You can call _setDefaultSelections
during Loaded
event
Occurs when the element is laid out, rendered, and ready for interaction.