Tuesday, 25 March 2014

What is XAML in Windows Phone Development?

Here we will talk about the purpose and nature of XAML, comparing it to C# This works almost as HTML

XAML is a special usage of XML. XAML has something to do with defining a user interface in our Phone's interface. So in that regard, it feels very much like HTML. But there’s a big difference … XAML is actually used to create instances of classes and set the values of the properties. So, for example, I'm defining a Button control in XAML:

 
<Button Name = "Sample"
    Width="200"
    Height="200"
    HorizontalAlignment="Left"
    Verticalalignment="Top"
    Background="Red"
    Click="Sample_Click"
   >
</Button>

No comments:

Post a Comment