Quantcast
Channel: WPF Reflections » Databinding
Browsing latest articles
Browse All 10 View Live

Image may be NSFW.
Clik here to view.

Re-using data template across controls

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...

View Article



Data validation using IDataErrorInfo

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...

View Article

Image may be NSFW.
Clik here to view.

Data validation in WPF using ValidationRule

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 Validate...

View Article

Image may be NSFW.
Clik here to view.

Data validation in WPF, my approach

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, I tend to use...

View Article

WPF Animation timeline

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),...

View Article


Image may be NSFW.
Clik here to view.

WPF Animation – From property

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...

View Article

Image may be NSFW.
Clik here to view.

WPF Animation – To property

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...

View Article

WPF Animations – Duration property

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...

View Article


Image may be NSFW.
Clik here to view.

WPF Animations – BeginTime property

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...

View Article


Image may be NSFW.
Clik here to view.

WPF Animations – AccelerationRatio

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...

View Article
Browsing latest articles
Browse All 10 View Live


Latest Images