Silverlight

Silverlight tutorials

Silverlight Services basic tutorials

adplus-dvertising
First Application of Silverlight
Previous Home Next

Step 1: Open a New Project.

Step 2: Select a Silverlight Application and press OK

Step 3: At beginning we take a example of Canvas Control. Drag a canvas control and TextBlock control from ToolBox. you can move these as your choice.

Design Code:

<UserControl x:Class="SilverlightApplication8.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
 d:DesignHeight="300" d:DesignWidth="400">
 <Canvas x:Name="canvas1">
<TextBlock Canvas.Left="10" Canvas.Top="10" 
Height="23" Name="textBlock1" Text="Microsoft" />
<TextBlock Canvas.Left="37" Canvas.Top="39" 
Height="23" Name="textBlock2" Text="Silverlight" />
</Canvas>

</UserControl>

Step 4: Run the application

Previous Home Next