How to Add Comment in XAML and Silverlight?

Published on February 22, 2014 by Senthil Kumar

Filed under Windows

Last modified February 22, 2014

Print this page

rate 1 star rate 2 star rate 3 star rate 4 star rate 5 star
Your rating: none, Average: 3 (2 votes)

This article have been viewed 25409 times

You can add comment in XAML using the following format

<!– Your Comment –>

How to Add Comment in XAML and Silverlight?

Sample code snippet demonstrating the inclusion of the comments in XAML page.

<!--This Section is a Grid Layout-->

<Grid x:Name="LayoutRoot" Background="White">

  <Canvas x:Name="ACCanvas" xmlns=""


  Background="Green" Width="400" Height="300" >

   <Ellipse x:Name="ACEllipse" Fill="Red" Stroke="Pink" Width="200" Height="200"/>



Leave a Comment


You might be Interested in these Posts

How to Turnoff Frame rate counter in UWP App ?

You can turn off the frame rate counter in your Universal Windows Platform (UAP) apps by following t...

Creating a Button in UWP app by specifying the namespace as one of the attributes of button

You can add a button in your Universal Windows Platform (UWP) app by simply adding the Button tag in...

Keywords in XAML Language Namespace

Below are some of the keywords defined in the Xaml Language Namespace Keywords in XAML Language Nam...