Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XAML Question
Message
De
26/08/2009 18:03:58
 
 
À
26/08/2009 17:14:46
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Titre:
Divers
Thread ID:
01420519
Message ID:
01421057
Vues:
42
In the class I attended taught by Adam Calderon, he stated that he finds himself coding more and more (almost entirely) in xaml now.

I like the idea of keeping the gui design part in there and keeping the code in C# (not much anyway since most goes in the presenter or uipresenter). That way there is a clear separation on what a form 'designer' would do or modify if you have someone in that position. Also, the code the developer works on is separate from the 'design.'


>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.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform