WPF related articles on MSDN magazine of Feb 2009

WPF Apps With The Model-View-ViewModel Design Pattern http://msdn.microsoft.com/en-us/magazine/dd419663.aspx written by Josh Smith. He has written lots of articles on WPF. You can view them at his blog joshsmithonwpf.wordpress.com     Writing More Efficient ItemsControls http://msdn.microsoft.com/en-us/magazine/dd483292.aspx from Charles Petzold

1

New Hotkey in win7 beta1

Windows 7 beta 1 includes some handy new shortcut key combinations that allow you to navigate and manage the Windows workspace more efficiently. Here are 10 new Windows 7 shortcuts that will help you speed up your workflow (“Win” means the Windows Key): Win+Home: Clear all but the active window Win+Space: All windows become transparent…

1

DependencyProperty Precedence(4)

If you want to know that where the value of DependencyProperty comes from, there is a class called DependencyPropertyHelper. 1: public static class DependencyPropertyHelper 2: { 3: // Methods 4: public static ValueSource GetValueSource(DependencyObject dependencyObject, DependencyProperty dependencyProperty); 5: } It just has one static method called GetValueSource and the parameters is dependencyObject instance and dependencyProperty…

1

DependencyProperty Precedence(3)

Let’s focused on the coercion of DP value. In the precedence list, the coercion source is the highest. In order to verify it, I have created a class called CoercionButton. 1: public class CoercionButton : Button 2: { 3: static CoercionButton() 4: { 5: WidthProperty.OverrideMetadata(typeof(CoercionButton), new FrameworkPropertyMetadata(null, OnCoerceValueCallback)); 6: } 7:  8: // public delegate…

1

DependencyProperty Precedence(2)

One common question is that: Why can’t change the DependencyProperty value after applying animation with a hold behavior and how to solve it? I have create a simple solution to go deep on coercion, animation and local value. You can download it by clicking following link. (it’s on Microsoft SkyDriver.) In this solution, there are…

2

DependencyProperty Precedence(1)

You know that value of DependencyProperty may come from different sources and all there sources has some priority. In this blog, I focus on the precedence list when calculating the value of DependencyProperty. Highest precedence is listed first: From msdn: http://msdn.microsoft.com/en-us/library/ms743230.aspx   1 Property system coercion 2 Active animations or animations with a Hold behavior…

0