Posted in WPF Controls on Mar 6th, 2008
Just saw that Blendables have extended their portfolio of WPF controls. The stuff looks good, but unfortunately, their licensing scheme doesn’t:
A license is required for each machine utilizing the blendables controls. [...] As we do not offer a deactivation method, if you must reactivate on a new developer machine you are allowed up to 3 [...]
Read Full Post »
Posted in WPF, WPF Controls, WPF TreeView on Mar 6th, 2008
If you have a WPF TreeView control that shows nested data, and you don’t want the user to select nodes that contain child nodes, you can solve this declaratively as TreeViewItem provides all we need:
HasItems dependency property (bool)
Focusable dependency property (bool)
As both properties have the same type, you can use a binding expression (needs inversion [...]
Read Full Post »
Posted in WPF TreeView on Feb 12th, 2008
There will be filtering and multi selection support in the next iteration of my WPF TreeView, but based on a request on the Code Project forum, I decided to implement a simple filtering mechanism on the current version.
First of all, you can provide filtering without even touching the control base class by just applying the [...]
Read Full Post »
Posted in WPF on Feb 1st, 2008
Josh Smith, prolific Code Project writer and blogger, has written a great article about MVC (or M-V-poo, as the doctor would say!) and unit testing of WPF apps. The article can be found on Code Project:
http://www.codeproject.com/KB/WPF/MVCtoUnitTestinWPF.aspx
Read Full Post »
Posted in WPF on Feb 1st, 2008
This is a simple snippet which helps you to find a specified parent of a given WPF dependency object somewhere in its visual tree:
/// <summary>
/// Finds a parent of a given item on the visual tree.
/// </summary>
/// <typeparam name="T">The type of the queried item.</typeparam>
/// <param name="child">A direct or indirect child of the
/// queried item.</param>
/// <returns>The [...]
Read Full Post »
Posted in Open Source, Tools, WPF on Jan 27th, 2008
Robby Ingebretsen published the source code of his incredibly useful (and beautiful!) Kaxaml on CodePlex. I often prefer Kaxaml over Visual Studio because it combines a bunch of really smart features with a very nice UI that just makes it a pleasure to work with. I’m definitely looking forward to have a peek at its [...]
Read Full Post »
Posted in Open Source, WPF TreeView on Jan 24th, 2008
A tutorial is now available on Code Project, so check the article for a detailed overview. And please leave your rating if you like the control
http://www.codeproject.com/KB/WPF/versatile_treeview.aspx
Update: The latest version is currently only available through the download link below. I’ll update the CodeProject article once the current filtering mechanism has been rewritten:
Download: wpf-treeview.zip (Current version: [...]
Read Full Post »
Posted in WPF on Jan 21st, 2008
In all my Windows Forms applications, I usually start with a common base class for forms and controls that provides a bunch of convenience properties, subscribes to common events, handles proper cleanup etc. I also implement an empty virtual InitControl method which can be overridden by deriving controls to initialize themselves.
As you can see in [...]
Read Full Post »
Posted in WPF on Jan 18th, 2008
This is really trivial, but I’ve always used a similar helper class for my WinForms apps, and it was something I immediately missed when starting my first WPF project. So I thought I should share it with you - a simple helper class to display message boxes without having to worry about a lot of [...]
Read Full Post »
Posted in Open Source, WPF on Jan 17th, 2008
With this WPF progress dialog, you can display a progress window and invoke a method on a background thread with just a few lines of code. Let’s say, you have a worker method called CountTo100, then all you need to get things running is this:
//create a dialog instance
ProgressDialog dlg = new ProgressDialog();
dlg.Owner = this;
dlg.DialogText = [...]
Read Full Post »