The Lounge is rated PG. If you're about to post something you wouldn't want your
kid sister to read then don't post it. No flame wars, no abusive conduct, no programming
questions and please don't post ads.
O, pazienza, pazienza che tanto sostieni! (Dante)
Patience! Oh patience that can bear so much!
I battled for more than two days in a Prism application to get events in a Blend-type behavior to work. The behavior was supposed to set the headings for a DataGrid when the ItemsSource for the DataGrid was set to a specific DataTable. The DataGrid was set to autogenerate columns. I got some really weird effects, until I finally figured out I had to introduce a 100 millisecond delay after the View that held the DataGrid loaded, before I loaded the DataTable. Suddenly all weirdness was gone! All that was needed was patience for a 100 ms delay after the View loaded!
I introduced the delay using the DispatcherTimer. A lesson learnt costing me two days of my life!
Keep in mind that the View's loaded event fires before it is rendered and becomes visible. There are still UI element activity after the event fired. If the View is a window, I will prefer to use the ContentRendered event, but in Prism the View is usually a UserControl, that does not have a ContentRendered event.
So, following on from this and this , I am just back from a reccy visit to Cyprus.
I must say it was a success.......after visiting 3 schools and 3 villas, and the kids completing entry assessments at the first school we visited, we have accepted school places and signed a lease on a villa.
The next 3 months in Qatar are all about getting everything ready to pack up and ship out, looks like the mrs+kids will go back to the UK at the end of june and the shipment will head of to Cyprus, I will then head to Cyprus to meet it at the end of July, and then the w+kids will head over at the end of summer in time to start the new school year.
My head is mince.....
However, still managed to publish my next blog: Cyprus is Calling for those who want to follow along
I still have the Qatar is Calling blog on the go, and as I will continue to work in Qatar, I'll probably keep it going, but updates will be less frequent once we move.