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: ClearTypeHint

This is part of a series on New WPF Features WPF enforces grayscale rendering when text is rendered on a transparent area. However, its possible that the background of a control is opaque even though its inside a transparent area. For example, popups have rounded edges and will have the allowstransparency property set. Same is…

0