I have some XAML that does binding of a model to the control that I am creating. However, when the control's 'Loaded' event fires, the binding hasn't completed, so I end up with a null Model.
Is there some way to guarantee that all Binding will be completed before the Loaded event fires on a control?
As a work-around, I modified my code to create the control in the code-behind and set the Model when the parent's Loaded event gets fired.
I would really like to be able to just trust that the Binding would occur before the Loaded event on the child control gets fired.
I have set the Mode of the binding to OneWay and the IsAsync to false. Does anybody have any other suggestions or methods that would help in this situation?
I don't necessarily need to use the Loaded event, but I need some way of knowing when the Model has been set by the Binding. I need information from the model so that I can load additional information from our communications server to populate additional objects that are being displayed in the control.
Thanks for your help.