<howto>Replace ListView columns with rows</howto>

Monday, September 22, 2008

Introduction: You want to present a table with a ListView, but you should display columns as rows. Problem: The only out-of-the-box view for the WPF ListView control is GridView. GridView was designed to work with columns. It displays headers and rows as two parts, using a stack layout by default. Changing the stack orientation to horizontal will not work since both the headers presenter and rows presenter are displaying children horizontally. Solution #1: Do not use ListView. Use a ListBox with custom template. Solution #2: Create a custom ListView view, derived from the View base class...
7 comments

WPF Localization Improvements

Tuesday, August 12, 2008

Due to the popularity of my WPF Localization tool, I decided to fix several bugs related to Blend and Cider designer. Also I have upgraded it to support default values.   Read more information and download details in the WPF Localization On-the-fly.   Cheers
no comments

WPF ItemsControl Filter Control

Monday, July 21, 2008

If you are working with an ItemsControl (ListBox, ComboBox, ListView), and you want to filter several items using Outlook 2007 search style, this control is exactly for you.     Usage: <local:Filter Header="Jewish Names" Background="{DynamicResource DefaultHeaderBackgroundBrush}"> <ListBox ItemsSource="{Binding}" ...
13 comments

WPF Localization – On-the-fly Language Selection

Tuesday, October 30, 2007

Download code ver 1.3 from here.   Many of my customers asked me: How WPF supports localization and globalization? Is there any built-in mechanism for choosing a language on-the-fly, at runtime and without closing any window? How do I translate formatted text with parameters? Well..., you know the story,... aren't you!? No? So start by reading this, and this. Still confused? continue with this and also this.   As you can see, there is more than one solution. Each has its pros and cons. The WPF official language support provides a complex localization set of API's, and a...
73 comments

WPF Control State Persistency

Friday, June 8, 2007

One of my customers asked me if WPF provides an option for storing or serializing controls state. For example, having a ListView, is it possible to store the width of its columns after closing and opening the Window, or maybe after restarting the application? I was thinking to myself, sure, you should use Data Binding. All you have to do is to bind the width or height, of any element to a back storage. For example you can create a State class for storing the data, and then you should bind it to your properties, using the Binding markup...
33 comments