Premium Sponsor
Premium Sponsor


Advanced Search
Popular Articles
Popular Authors
SubMain - Developer Tools
 »  Home  »  Windows Development  »  Windows Presentation Foundation
Windows Presentation Foundation

» Creating a ComboBox with Individual ToolTips for each Item
by Ged Mead | Published 02/24/2010 |  | Rating:

In this article, Ged Mead demonstrates an easy way to use WPF and Windows Forms Interop to create and use a ComboBox that displays ToolTips for individual ComboBox items.

[read article...]
» Windows Presentation Foundation: Flow Documents (Part 2)
by Ged Mead | Published 09/15/2008 |  | Rating:

  In Part 1, you saw how easy it is to populate a WPF RichTextBox with a XAML FlowDocument.  If you've ever previously struggled with trying to force a RichTextBox to accept an image - and place it exactly where you want it - in Windows Forms, then you'll welcome this new tool.

 However, for legacy reasons you might want to populate the RichTextBox with content that has been saved in RTF format.  In this part we will look at how that can be achieved.

[read article...]
» WinForms and WPF Interop - The Best of Both Worlds
by Ged Mead | Published 07/12/2008 |  | Rating:

  Whenever I see a question along the lines of "How can I include an image alongside each item in a list of items or use more than one font, or varying background colors?" I usually find myself muttering "WPF!".    This is a lot more sociable and positive than many of the things I mutter as I sit here each day, but finally I've realised that I need to do something about it.

  The result is this article, which works through the steps needed to harness the rich UI features of WPF to the more familiar paradigm of Windows Forms.

   The example used will show you how easy it can be to use a WPF control in a Windows Forms application and you can use this article as the stepping stone to creating your own.  The ListBox layout shown below will be created in WPF and ported over to be used in a Windows Forms application.  

WPF ListBox Control Example [read article...]
» Multithreading The Easy Way: The BackgroundWorker
by Ged Mead | Published 06/01/2008 |  | Rating:

  Sometimes you may need  your application to work on a slow or time- consuming task in such a way that your user isn't kept waiting unnecessarily while this is happening.

   The answer to this problem is to use multithreading.   Having seen many forum questions about multithreading, I know that many people are a bit apprehensive about tackling it.  However,  as it turns out, the BackgroundWorker component is versatile  and easy to use, providing a painless solution to this requirement. 

   In this article I will show you how you can  incorporate the BackgroundWorker into your projects to give your users a more professional and less frustrating experience.



[read article...]
» Windows Presentation Foundation: FlowDocuments (Part 1)
by Ged Mead | Published 04/01/2008 |  | Rating:
When WPF first came on the scene, one of the features that got a lot of air time was the display of documents.  Leading edge projects like the NY Times Reader and the British Library manuscript display raised a lot of awareness of the possibilities.  Strangely though, since VS 2008 shipped there doesn't seem to have been a lot of mention of this part of the package.  So I thought I'd take a look at how easy (or not) document handling really is in WPF. [read article...]