Microsoft Blend Style WPF TextBox

June 24, 2007

Here is a WPF TextBox control that functions (acts like) the TextBoxes in Microsoft Blend.  It also includes a very cool ToolTip that data binds back to the control that opened the ToolTip.

Take a look at the article on Code Project :

Microsoft Blend Style WPF TextBox

Just a grain of sand on the worlds beaches.


Blend Presentation Materials

June 23, 2007

Presentation Materials From Code Camp RDU and Charlotte, NC Developers GUILD Meeting

The below down load contains :

1.  The Blend presentation PowerPoint
2.  Hello World A La Blend code and program
3.  VB.NET Win Forms Take Home Pay Calculator application (this was used as the model for the WPF application)
4.  WPFTaxCalculator code and program

YOU MUST - after using the below link to download the file, you MUST change the extenstion to .zip.  This is a requirement of WordPress.com.

Blend Presentation Materials – Must Change Extension To .zip

Cool Features In The WPF Tax Calculator Program

1.  Custom textbox that increments it’s value using the mouse just like Microsoft Expression Blend
2. The coolest tooltip. (Code shows you how to databind inside a resource back to the parent control that spawned the tooltip!)
3.  Data binding to a .Net 1.1 .dll by wrapping the class to conform to the WPF model for UI notification of property changes.
4.  A fully reusable Formatting Converter.  Handles all .Net formatting codes for fields.  Super easy to use in WPF UI.
5.  Using Enum element names to populate the combo boxes.
6.  Two result charts displayed in 3D space.

I learned so much about WPF and Blend while preparing this presentation.

To Do

I could not figure out how to data bind a value in the control to a TextBlock in the ToolTip.  Once I figure this out, I’ll move the TextBox ToolTip to a resource and repost the code.

Have a great day,

 Karl

Just a grain of sand on the worlds beaches.


Fill Combobox With Sorted Enum Without Code

June 20, 2007

I’m in the middle of preparing for a Code Camp presentation this weekend and was reviewing all my code. I noticed an opportunity to refactor some code and then got the idea to just loose the code and data bind using xaml.

The article demonstrates how to bind a combobox with sorted names from an enum. This can all be accomplished in xaml without code in the xaml code behind page.

Take a look at the article on Code Project :

Fill Combobox With Sorted Enum Without Code

Just a grain of sand on the worlds beaches.


Checkbox : Text On Left

June 6, 2007

An article on styling the WPF Checkbox placing the text on the left side.

I was developing my second WPF application and needed to display 9 checkboxes stacked up with the text on the left side of the checkbox graphic.

The standard WPF Checkbox control only allows the text to be rendered on the right side of the graphic.

New checkbox in action

Finished Product In Action
Take a look at the article on Code Project :

WPF Checkbox Text On Left

Just a grain of sand on the worlds beaches.