Click here to Skip to main content
15,892,927 members
Articles / Desktop Programming / XAML

Getting WPF SizeChanged Events at Start-up when Using MVVM and DataContext

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
12 Jun 2011CPOL3 min read 27.7K  
It is critically important to make sure that a View's DataContext is properly created and attached before the underlying Window is displayed, otherwise initial events will be missed.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Team Leader
United Kingdom United Kingdom
My day job is mostly working in C++ with a bit of C#. I write a fair amount of command line based tools and really wish they could have a GUI front-end to them hence why I spend my spare time working with WPF.

I started a blog few years back but didn't do a lot with it. I've started describing some of the interesting programming things I come across on it. Please take a look.

Comments and Discussions