Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XAML Question
Message
General information
Forum:
ASP.NET
Category:
Windows Presentation Foundation (WPF)
Title:
Miscellaneous
Thread ID:
01420519
Message ID:
01421033
Views:
40
It can be done, but is not recommended and definately isn't best practice.

>I picked up this book
>http://www.amazon.com/Windows-Presentation-Foundation-Unleashed-WPF/dp/0672328917/ref=sr_1_1?ie=UTF8&s=books&qid=1251319032&sr=1-1
>
>On page 40 is this example:
>
>
><Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
>	 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
>
>
><Button Click="button_Click">Ok</Button>
>
><x:Code><![CDATA[
>	void button_Click(object Sender, RoutedEventArgs e)
>	{
>		this.Close();
>	}
>]]<>/X;Code>
></Window>
>
>
>This is a click event defined inside an XAML file. As I said, this would get really unmanagable very quickly.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform