XAML 2009 Features: Named Object References

This is part of a series on New WPF\XAML Features In previous releases, if you needed to reference a named object, your XAML would look something like         <Label Target='{Binding ElementName=firstNameBox}’ >_Target</Label>         <TextBox Name=’firstNameBox’>Uses Binding</TextBox>   In the current release (.NET 4), we introduced a built in markup extension x:Reference. This would enable referencing…

0

New WPF Features: Updated File Dialogs

This is part of a series on New WPF Features   In previous releases, WPF open\Save dilogs had the XP style even on Vista. Some workarounds were to use the Vista bridge library or use the winforms dialogs. For this release we fixed this issue. You now get the OS style dialogs 🙂 … Usage wise…

2

XAML 2009 Features: XAML Event handling

[This is part of a series on New WPF\XAML Features]   In previous releases, when loose XAML had events in it and was loaded it would crash. In V4, there are 2 options to avoid this crash. à On loading events are searched on the root object of the XAML file. Suppose you had the loose…

0

New WPF Features: Cached Composition

This is part of a series on New WPF Features  One of the big improvements in 4.0 is the Cached Composition feature in graphics. This feature enables caching a live UIElement as a bitmap, which enables quick rendering of the element as a bitmap. The UIElement is user interactive and hence will respond to keyboard…

7

XAML 2009 Features: Node Loop flexibility

  [This is part of a series on New WPF\XAML Features]    So by now most of you must have noticed the System.Xaml dll as part of your .NET 4 WPF projects. It’s a well componentized XAML stack that provides a lot of flexibility working with XAML. So at the core we a System.Xaml.XamlReader and…

2

New WPF Features: Full Trust Xbap Deployment

This is part of a series on New WPF Features  In earlier versions, on trying to deploy a Full Trust Xbap, you would get a “Trust Not Granted” error. Its possible to workaround this issue by installing an assembly in the GAC that has the AllowPartiallyTrustedCallersAttribute. Another option is to install a certificate on the…

4

Xaml 2009 Features: Built in Types

In Xaml2009, we have built-in support for common CLR types which simplifies authoring. So rather than specifying something like <s:String xmlns:s=”clr-namespace:System;assembly=mscorlib”> Foo </s:String> We can use the notation <x:String > Foo </s:String> The list of types supported is below: •     <x:String> •     <x:Char> •     <x:Single> •     <x:Double> •     <x:Boolean> •     <x:Byte> •     <x:Int16> •     <x:Int32>…

8

New WPF Features: Bindable Run

This is part of a series on New WPF Features Bindable run – yeah its possible currently but you would require a custom implementation. if you didnt like to create your own implementation, likely you would be using textblock. Problem here is that its likely you would have issues in copy paste scenarios, layout and…

0

New WPF Features: Script Interop in Xbap

This is part of a series on New WPF Features Often times you have Xbap hosted in a Html page and its pretty common to have some kind of interaction between the host and Xbap. In this release, we have enabled these scenarios.   Operation Changes In Code Sample Invoking a function Xbap dynamic script…

1

New WPF Features: Binding to Dynamic Objects

This is part of a series on New WPF Features C# 4.0 allows creation of dynamic objects which is useful when you are interacting with dynamic languages. If you are unfamiliar with the dynamic concept take a quick look at this blog entry So back to WPF. We support binding to dynamic objects.. woohoo… To…

0