Template at root of XAML file problems...
Internal mail thread...read bottom to top...
From: MS Guy
I’m completely dumbfounded, but that works. Thanks…
From: Rob Relyea
Templates are special beasts in 3.0/3.5. We hope to enable this in the future…
I would try a ResourceDictionary with x:Class….
From: MS Guy
Subject: The attribute 'Class' does not exist in XML namespace 'http://schemas.microsoft.com/winfx/2006/xaml'?
Try compiling a simple .xaml file consisting of:
<ControlTemplate xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="MyTemplate">
<Button Click="Button_Click"/>
</ControlTemplate>
What’s up with this error? Everyone uses x:Class where xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" on a daily basis.
Is there some other way of defining reusable templates with code behind?