need tips : translating xaml to c#  
Author Message
publicENEMY





PostPosted: Windows Presentation Foundation (WPF), need tips : translating xaml to c# Top

Hi guys.

are there any good guidance on converting xaml to c# actually, what i wanted is to understand xaml from coding perspective.

thanks.



Visual Studio 200836  
 
 
Chad Campbell





PostPosted: Windows Presentation Foundation (WPF), need tips : translating xaml to c# Top

Hi publicENEMY,

Essentially, each XAML element represents a C# object.  In addition, each attribute on a XAML element represents a C# property.  Just as an example, I would recommend looking at a basic class such as the TextBlock class (http://msdn2.microsoft.com/en-us/library/system.windows.controls.textblock.aspx) to get a feel for this.

An overview of XAML can be found here: http://msdn2.microsoft.com/en-us/library/ms752059.aspx

If this answers your question, please select "Mark as Answer", if not, please post a follow up question and I will be glad to help.

Chad Campbell



 
 
publicENEMY





PostPosted: Windows Presentation Foundation (WPF), need tips : translating xaml to c# Top

yup. that answered it. funny though i miss that. probably it was already in windows vista sdk doc.

thank you very much.


 
 
stswordman





PostPosted: Windows Presentation Foundation (WPF), need tips : translating xaml to c# Top

thanks