Welcome to Windows Presentation Foundation (WPF)
Top Tasks :

WPF Community Bloggers

Saturday, March 31, 2007 - Posts

  • WPF XML Data Binding and Selection Synchronization

    There's a problem people often run into when using XML data binding in WPF. If you bind a ListBox to a collection of items, the IsSynchronizedWithCurrentItem property sometimes doesn't appear to work as you'd expect. Here's an example of the problem: < Page xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " > < Page.Resources > < XmlDataProvider x:Key = " src " > < x:XData > < data xmlns = '' > < item name = " One " /> < item name = " Two " /> < item name = " Three " /> </ data > </ x:XData > </ XmlDataProvider > </ Page.Resources > < Grid > < Grid.ColumnDefinitions > < ColumnDefinition /> < ColumnDefinition /> </ Grid.ColumnDefinitions > < ListBox IsSynchronizedWithCurrentItem = " True " ItemsSource = " {Binding Source={StaticResource src}, XPath=/data/item} " > < ListBox.ItemTemplate > < DataTemplate Read More...
  • WPF course with IdentityMine: last day / Going home

    Last day of training I simply cannot believe how fast the week went, and how interesting it was. Yesterday, we all gathered at IdentityMine HQ. We first had a cool (but fast) demo of Expression Blend by Nathan , who really knows what he is talking about and has a huge experience with the tool and WPF in general. The tool is really quite good, and should allow even developers to work faster, because of the help it provides. I really want to learn Expression Blend. I see myself quite close to the designers, actually closer than probably most of my developers colleagues. That's why I really enjoyed the afternoon discussion about the workflow designer-developer, which is quite a new topic now that WPF enables designers to work on the actual same CSPROJ and XAML files as we do. What IdentityMine recommends is to use a 3rd role in the process, named an integrator (or other names). What we're talking about here is actually a devigner (or as I call that, a werewolf, part designer and part developer). Read More...

Copyright © 2006 Microsoft Corporation. All Rights Reserved. | Terms of Use | Privacy Statement | Contact Us