Welcome to MSDN Blogs Sign in | Join | Help

Data See, Data Do

Mike Hillberg's Blog on Wpf (.Net 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 » Concepts   (RSS)
Of logical and visual trees in WPF
This post is about the “logical tree” in WPF, and how it differs from the visual tree. For the most part you don’t need to understand this. But if you want to understand some of the nit-like details of property inheritance, {DynamicResource} references, Read More...

Posted Friday, May 23, 2008 4:46 PM by MikeHillberg | 5 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 | 3 Comments

Filed under: ,

A Context-Sensitive Help Provider in Wpf
Here's an example of a way to add context-sensitive help to your application. The main idea is to simply use the built-in ApplicationCommands.Help command. This command is already tied to the F1 key, and so executes when you hit F1, and tells your command Read More...

Posted Thursday, July 26, 2007 10:56 PM by MikeHillberg | 10 Comments

A look at stretchy elements
There are several elements in Wpf that have a "Stretch" property. The basic idea of these properties is to allow you to specify how an element adapts itself to a layout container, such as a Grid. For example, if you have a 100x200 pixel image, and it's Read More...

Posted Thursday, July 05, 2007 5:31 PM by MikeHillberg | 1 Comments

Filed under:

Namespaces in Xaml
If you’re really into Xml conformance, and you’ve really wondered how Xaml uses Xml namespaces, read on; I can cover the most relevant details in 1160 words or less … Namespaces on tags (I’m using the term “tag” here instead of the more correct term “element”, Read More...

Posted Wednesday, May 16, 2007 9:51 AM by MikeHillberg | 1 Comments

Filed under: ,

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

A TreeView, a HierarchicalDataTemplate, and a 2D collection walk into a bar ...
An example of a TreeView and HierarchicalDataTemplate being used to display a collection of collections. Read More...

Posted Wednesday, October 11, 2006 8:15 AM by MikeHillberg | 7 Comments


Attachment(s): hdt.jpg

Brief anatomy of a ListBox
ListBox has properties on it that allow you to control how the items in the list box get displayed. Those properties make sense if you understand some basic concepts of the ListBox, but sometimes I forget, so I wanted to post a picture on my wall. Except Read More...

Posted Thursday, September 28, 2006 10:56 PM by MikeHillberg | 1 Comments

Filed under:

Attachment(s): ListBox.jpg

Xaml Inspired Markup
A lot has been written about how Xaml maps tags and attributes to objects and properties. But it’s not necessary that Xaml actually be used to create .Net objects. Maybe you don’t plan to for your markup to be mapped to objects, at least not today. But if you already work with Xaml, following the same syntax conventions as Xaml for your other markup provides some nice consistency and readability, and a possible future path to intuitive code manipulation. Read More...

Posted Wednesday, September 27, 2006 6:16 PM by MikeHillberg | 1 Comments

Filed under: ,

Attachment(s): OrgChart.JPG

Sharing, and not sharing, Setter.Value in a Style or Template
Setter values in a style or template get shared, which is good for performance, but impacts how some features work, especially elements and Freezables. Read More...

Posted Wednesday, September 20, 2006 7:29 PM by MikeHillberg | 0 Comments

Filed under:

The Loaded event and the Initialized event
In WPF, controls have both a Loaded even and an Initialized event. Initializing and loading a control tend to happen at about the same time, and consequently these events fire at roughly the same time. But they have slightly – though important – different meanings, and the differences can be a source of confusion. So here’s some background on how we designed these events. Read More...

Posted Tuesday, September 19, 2006 5:20 PM by MikeHillberg | 3 Comments

Filed under:

Being written by XamlWriter
A big part of WPF (Avalon) is the Xaml format for creating object trees. You can also go in the other direction – take an object tree and write it out to Xaml – with the XamlWriter class. That mostly just works, but there are cases where XamlWriter needs some help from you to write your class correctly. This post describes what you need to do. Read More...

Posted Saturday, September 16, 2006 12:41 AM by MikeHillberg | 4 Comments

Filed under: ,

Page view tracker