xaml - How to force a WPF control or its bindings to load before it's visible -


for efficiency, appears wpf loads visual elements when necessary. if need them load when parent loads?

for example, have split-button control drop-down checklistbox. each checklistbox item bound isselected property , select command. changing isselected in viewmodel has same effect clicking row in control, once drop-down portion of control loaded. before select command doesn't react changes in isselected property (presumably) because binding , command don't yet exist. there clean way force split-button's contents load @ same time it's parent loads, or otherwise connect it's bindings @ initialization rather when first entering visual tree?


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -