WPF and x:class

Mar 15, 2008 at 9:22 PM
I start a new WPF project and add a button in the XAML code, then try to build and it works.
Add Click="OnClick" attribute and I get an error that I should either remove the event or add x:class to the root tag:

Error 2 'Window' root element requires a x:Class attribute to support event handlers in the XAML file. Either remove the event handler for the Click event, or add a x:Class attribute to the root element. Line 7 Position 17. C:\Documents and Settings\lrhazi\My Documents\IronPython Studio\WpfApplication1\WpfApplication1\Window1.xaml 7 18 WpfApplication1

What should the tag be exactly? x:Class=What?

Thanks a lot.