Posted on June 5th, 2008 by Paul Stovell
Navigation applications are an attractive feature of Windows Presentation Foundation that allow you to create task-focused user interfaces in a manner that is very difficult to achieve using Windows Forms. In this article, I’ll discuss some of the benefits the navigation application model provides, then describe the features in WPF that make building them possible. […]
Filed under: WPF | 14 Comments »
Posted on June 5th, 2008 by Paul Stovell
One difference between XAML in a C# project and VB.NET projects is in specifying the x:Class of your XAML root element. For example, in a C# Window XAML file:
<Window
x:Class="BigBank.UI.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300"
>
<Grid>
[…]
Filed under: WPF | 5 Comments »
Posted on June 4th, 2008 by Paul Stovell
In my WPF and XAML Coding Guidelines page (which I’ll be updating soon) I discussed a little rule I follow to keep my markup looking nice. Daniel Crenna has provided a nice VS addin that reformats XAML by lining up the attributes. His post has a nice animation that shows what the tool does. The […]
Filed under: WPF | 3 Comments »
Posted on June 4th, 2008 by Paul Stovell
(This was inspired by a funny story left by Matt Hamilton)
"Where’s the Data Grid?"
When I talk to customers that are doing Windows Forms and evaluating WPF, this has to be the most common question. Their prayers will now be answered: a data grid will be included in the .NET 3.5 SP1.
Why did it take […]
Filed under: WPF | 11 Comments »
Posted on June 3rd, 2008 by Paul Stovell
One of the upcoming additions in .NET 3.5 SP1 is a StringFormat parameter you can pass along with your bindings. Sacha Barber has an example of how to use it:
<TextBlock
Text="{Binding Path=AccountBalance, StringFormat=’You have {0:c} in your bank account.’}"
/>
However, if you can’t install the service pack or you […]
Filed under: WPF, Binding | 5 Comments »