Sunday, October 14, 2012

Easing Functions - XAML Syntax

DoubleAnimation...DoubleAnimation.EasingFunction vs. DoubleAnimationUsingKeyFrames...EasingDoubleKeyFrame

Samples here
In the previous example, the easing functions are applied to a From/To/By animation. You can also apply these easing functions to Key-Frame animations using either EasingDoubleKeyFrame, EasingPointKeyFrame, or EasingColorKeyFrame 

Friday, October 5, 2012

DependencyObject/DependencyProperty

DependencyProperty's (e.g. a Canvas' left, right) are assigned to DependencyObjects, e.g. UI elements. http://blog.hackedbrain.com/2004/12/04/understanding-dependencyobject-and-dependencyproperty/

Example usage of DependencyProperty to add second ContentPresenter to a ControlTemplate

For the uncommon cases where a settable property on a DependencyObject is not a dependency property, that property will be unable to support animation, data binding, or FrameworkElement styling.
http://msdn.microsoft.com/en-us/library/cc221408(v=vs.95).aspx

Tuesday, October 2, 2012

XAML Concepts


See http://msdn.microsoft.com/en-us/library/ms752059.aspx for descriptions of:

XAML Object Elements (represent WPF types)
Property Element Syntax (vs Attribute Syntax)
Markup Extensions - for setting property dynamically at runtime
Type Converters (e.g. Margin/Thickness)