Here is a large number of hidden features discussed for variety of languages. Now I am curious about some hidden features of XAML and WPF?
One I have found is the header click event of a ListView
<ListView x:Name='lv'
Height="150"
GridViewColumnHeader.Click="GridViewColumnHeaderClickedHandler">
The GridViewColumnHeader.Click property is not listed.
Some of relevant features so far:
See also:
PriorityBinding. Allows you to use asyn bindings in an "first come first show" order:
There is also PresentationTraceSources.TraceLevel trick to debug what is going on with bindings in any particular scenario. All you have to do is to reference System.Diagnostics namespace in WindowsBase assembly
and then add following to the binding expression:
Log will be like this:
XAML Converters
The following list shows converters developed by the WPF community to convert different formats to XAML or vice versa.
Adobe Illustrator XAML Export Plugin
Adobe Photoshop to XAML Converter
Blender XAML Export Plugin
Lightwave XAML Export Plugin
Visio XAML Export
3D Studio Max to XAML Converter
Maya to XAML Converter
Flash to XAML Converter
SVG to XAML Converter
WMF/EMF to XAML Converter
Not really a hidden feature but with WPF/XAML you get Bea Stollnitz and Josh Smith. Queen and King of WPF/XAML programming.
Support for Arbitrary Dictionary Keys
In XAML 2006 all explicit x:Key value were treated as strings. In XAML 2009 you can define any type of key you like by writing the key in ElementSyntax.
Generics in XAML with x:TypeArguments
If you want to use an ObservableCollection in XAML you need to create a type that derives from ObservableCollection because you cannot declare it in XAML. With XAML 2009 you can use the x:TypeArguments attribute to define the type of a generic type.