WPF Reflections:

Databinding


August 24, 2008  2:46 PM

WPF Animations – AccelerationRatio



Posted by: MarkWPF
Animation, Databinding, WPF, XAML

What does AccelerationRatio do? In a nutshell, it turns a linear animation into a non-linear one. Whaaaaaaaaaaat I hear someone say. What I mean by that is that it allows you to specify that an animation will build up to it's final destination, therefore it starts slowly and accelerates. The...

August 16, 2008  7:47 AM

WPF Animations – BeginTime property



Posted by: MarkWPF
Animation, Databinding, WPF, XAML

The BeginTime property sits in the Timeline class. It specifies a delay before the animation starts. Why would you want to do that? One thing it allows you to do is have multiple animations running at the same time, but for one to start at a specified time after the other. In the following...


August 5, 2008  2:42 PM

WPF Animations – Duration property



Posted by: MarkWPF
Animation, Databinding, WPF, XAML

This is a very important property in the world of WPF animations, as it specifies how long the animation will last. The property is actually of type Duration. What does that mean? Well, in addition to being able to specify every thing that a TimeSpan can specify - like hours, minutes or...


August 5, 2008  7:28 AM

WPF Animation – To property



Posted by: MarkWPF
Animation, Databinding, WPF, XAML

In WPF animations, the To property is an important one. It tells the animation where to stop. Quite bizarrely, in my opinion, it can be left out. When it is, the animation will use the value specified in the definition of the element. In doing so, it will ignore any changes to that...


August 4, 2008  7:05 AM

WPF Animation – From property



Posted by: MarkWPF
Animation, Databinding, WPF, XAML

When you are doing a WPF animation, with a storyboard, the From property lets you specify the starting value. It means you can start the animation with a different value than the current value. You may want to do that so that you can control the starting value, or if you are doing a cumulative...


June 15, 2008  8:52 PM

WPF Animation timeline



Posted by: MarkWPF
Animation, Databinding, Development, WPF, XAML

All of the interesting WPF classes derive from the TimeLine class. What do I mean by interesting? All of the classes for animating different types (like DoubleAnimation and ColorAnimation), MediaTimeLine (for playing videos and audio) and TimeLineGroup from which StoryBoard (which provides...


March 31, 2008  11:03 PM

Data validation in WPF, my approach



Posted by: MarkWPF
Databinding, Validation, WPF, XAML

Whether to use IDataErrorInfo or ValidationRule - that is the question, as I posed in a previous post. So , you may be wondering what do I do in my WPF projects? Or you may not :-) Well,...


March 31, 2008  11:01 PM

Data validation in WPF using ValidationRule



Posted by: MarkWPF
Databinding, Microsoft Windows, Validation, Windows Computing, WPF, XAML

As I mentioned in a previous post, you can specify validation by creating a Validation class (or classes). You do this by deriving a new class from the ValidationRule class and overriding the...


March 26, 2008  8:49 AM

Data validation using IDataErrorInfo



Posted by: MarkWPF
Databinding, WPF, XAML

As per a previous post, how do you do data validation in WPF using IDataErrorInfo? Well what does IDataErrorInfo give you? It defines two properties: public string Error { get; } public string this[string columnName] { get; } When you implement these, you provide error validation...


March 10, 2008  9:39 PM

Re-using data template across controls



Posted by: MarkWPF
Databinding, WPF, XAML

How do you use the same data template across different types of control? Well you can :-) Normally when you define the data template, you do something like the following: <DataTemplate DataType="{x:Type ListViewItem}> <TextBlock Text="{Binding Path=ISIN}"...


Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: