What is the best coding language for silverlight?
C# or XAML
About silverlight
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sandeep ShekhawatRank #2,439 · 577 reputationPosted Jun 7, 2011, 8:31 AM EDT
XAML simplifies creating a UI for a .NET Framework application. You can create visible UI elements in the declarative XAML markup, and then separate the UI definition from the run-time logic by using code-behind files.
C# is programming language
c# is intended for use in developing software/web component.
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Jun 7, 2011, 10:02 AM EDT
If you need to design a page then you should use XAML.
for example:
If you need to do something on clicking the created button then you have to use C# [ in your case ].
for example:
private void OnButtonClick(object sender, RoutedEventArgs e)
{
BindNamesToListBox();
}
So both XAML and C# are important.
To learn about Silverlight start with - Silverlight Introduction
Sam HobbsRank #107 · 20.5K reputationPosted Jun 7, 2011, 12:09 PM EDT
Mahesh ChandRank #1 · 393.3K reputationPosted Jun 7, 2011, 3:28 PM EDT