WPF Reflections:

October, 2007

1

October 29, 2007  4:28 PM

Drag and drop



Posted by: MarkWPF
WPF

If you find yourself needing to do drag and drop in WPF, and don't want to do anything fancy try looking at Josh Smith's drag and drop manager - at http://www.codeproject.com/WPF/ListViewDragDropManager.asp You use it by...

October 26, 2007  1:25 PM

Removing localisation attributes from xaml



Posted by: MarkWPF
WPF

Should you find yourself in a position where you have localised your WPF application, and then wish you hadn't, you will find yourself needing to remove all the attributes put in by the localisation process. For those who have yet to experience that, the attribute that is added is x:Uid, like...


October 25, 2007  3:43 PM

Priority binding



Posted by: MarkWPF
WPF

This is quite a useful binding helper when you are in a scenario where you have a binding to a slow value. What I mean by that is that sometimes a value may appear in your data source slowly because it is being created via a remote service for example, especially if in the scenario you cannot...


October 25, 2007  9:15 AM

Localisation



Posted by: MarkWPF
C, WPF

Let me firstly describe the localisation support in WPF - absolute pants
For those people who might read this who don't understand the local London, UK colloquial term pants - it simply means very bad.

Essentially you get the same localisation engine as v2.0 Windows Forms without...


October 19, 2007  1:29 PM

WPF commands – my view



Posted by: MarkWPF
WPF

Having used WPF for a while, the flexibility in most things is very good The flexibility that you can do commands as per out of the box method, or using something more strictly command design patterns means that you can decide to go either way on any given project. What I have I done? I...


October 19, 2007  1:29 PM

WPF command pattern part 2



Posted by: MarkWPF
WPF

Following on from my previous post about WPF and the command pattern, how can we avoid the manual process of calling BindToElement from within code? 

What would be nice is if you could specify a commandbinding to point to a static instance of a command, but you can't. 

But...


October 19, 2007  11:14 AM

Command design pattern and WPF



Posted by: MarkWPF
WPF

For an good explanation of GOF version, see http://www.dofactory.com/Patterns/PatternCommand.aspx How does the command pattern differ from the WPF vision of commands? Well the most striking difference is that the command...


October 18, 2007  12:43 PM

WPF and the command pattern



Posted by: MarkWPF
WPF

You may (or may not) have noticed, but WPF doesn't implement the command pattern as per the GOF definition. Instead it uses the term command to use the same definition in multiple places, but have the functionality specified locally. As an example is worth a 1000 words (as true now as when...


October 4, 2007  1:11 PM

Sorting listview



Posted by: MarkWPF
WPF

ListView (and the default GridView view) is a great bare bones control for us to add extra functionality - though sorting out of the box would have been handy.

On the face of it, sorting is easy - you handle the click of the header and call Sort on the collection being bound to using...


October 4, 2007  1:11 PM

Change notification



Posted by: MarkWPF
Databinding, WPF

Change notification in WPF is the mechanism by which you proprogate changes to your objects to whomever is listening for those changes.
One typical usage is in a data binding scenario, where the recipient is listening for changes to the objects being bound to in order to update the user...


1

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: