Welcome to MSDN Blogs Sign in | Join | Help

Data See, Data Do

Mike Hillberg's Blog on Wpf and Silverlight

Syndication

News

All postings are provided "As Is" with no warranties, and confers no rights. Opinions and views expressed here are not necessarily those of Microsoft Corporation.


Browse by Tags

All Tags » Data binding   (RSS)
TreeView and HierarchicalDataTemplate, Step-by-Step
I’ve never found TreeView to be terribly confusing by itself. But usually I want to data bind a TreeView to a collection with some hierarchy, which leads me to HierarchicalDataTemplate, which didn’t always just write itself for me. If you look at it in Read More...

Posted Friday, October 30, 2009 12:40 PM by MikeHillberg | 0 Comments

Filed under: ,

Attachment(s): TreeViewStepByStep.zip

A Comparable DataTrigger
Property triggers today only check for equality. We’d like to add support for other comparison operators, but that hasn’t happened yet. But I needed them for a project, and wrote a workaround for it. It’s a bit hacky in a couple of places, but if you Read More...

Posted Tuesday, September 30, 2008 12:04 AM by MikeHillberg | 6 Comments

Trying out Binding.StringFormat
StringFormat is a new property in .Net 3.5 SP1, which is currently in Beta. See Scott’s blog for more info on the beta. When you bind data into a property on an element, it’s automatically type converted for you. For example, this markup: < StackPanel Read More...

Posted Thursday, May 29, 2008 2:15 PM by MikeHillberg | 1 Comments

Filed under:

Model-see, Model-do, and the Poo is Optional
Like a lot of people, I’ve developed software professionally for a lot of different environments: PC systems and embedded systems; high- and low-level languages; kernel mode, user mode, real mode, and protected mode; system services; domain controllers; Read More...

Posted Wednesday, May 21, 2008 3:05 PM by MikeHillberg | 4 Comments

Filed under: ,

Binding to anonymous types in an Xbap or Silverlight application
It's easy to use Linq queries to create objects, and to use {Binding}s to bind properties of those objects into your view. If you're doing this for an application that will run as an Xbap ("WPF Browser Application") or as a Silverlight app, just note Read More...

Posted Monday, May 05, 2008 9:56 AM by MikeHillberg | 3 Comments

Where does a Binding find its data?
If you’ve look at much WPF Xaml you’ve probably seen bindings like this: < TextBlock Text = " {Binding Name " /> … which binds the Text property of the TextBlock to the Name property of some data object. The question that begets is: where does the Read More...

Posted Monday, May 14, 2007 10:04 AM by MikeHillberg | 3 Comments

Filed under: ,

Attachment(s): barrow.jpg

Page view tracker