why yahoo behind google?
October 6, 2009 by vmathanraj87wrap panel & stack panel
September 28, 2009 by vmathanraj87In Silverlight and WPF, you have a lot of choices in how to lay out your content. This is accomplished via layout panels whose only purpose is to help arrange all of the content that you decide to place inside them. While most panels are pretty boring, in this article, we will look at two panels who are anything but! These panels are known as WrapPanel and StackPanel
How to Crop an Object
July 1, 2009 by vmathanraj87If you only want to display part of an object you can do this through the Clip property
<Rectangle Fill=”DarkGoldenrod” Height=”100″ Width=”200″ StrokeThickness=”3″ Stroke=”Black”></Rectangle>
If you type the code in xaml you can view the pitcure below:

If you only want to show part of the rectangle you can apply a clip region to it like this:
<Rectangle Fill=”DarkGoldenrod” Height=”100″ Width=”200″ StrokeThickness=”3″ Stroke=”Black”>
<Rectangle.Clip>
<EllipseGeometry Center=”0,0″ RadiusX=”80″ RadiusY=”80″ />
</Rectangle.Clip>
</Rectangle>
In above code i use elipse geomentry. Depending upon yout requrement
you can use remaining geomentry like
1.Rectangle geomentry
2.Geomentry group
3.Line geomentry
4.path geomentry
Layout controls in silverlight
June 30, 2009 by vmathanraj87There are 3 different types of layout panels provided by Silverlight. The Grid control is one of them.
These are the 3 different types of layout panels provided by Silverlight:
1. Canvas – Position child elements absolutely in x,y space.
2. StackPanel – Position child elements relative to one another in horizontal or vertical stacks.
3. Grid – Position child elements in rows and columns.
You have to add a layout panel to every xaml page we create. All other UI elements must be added inside one of the layout panels. Each page can have exactly one layout panel control.
How to drag and move an image or object in silverlight?
June 30, 2009 by vmathanraj87The control that you like drag or move with the mouse can be embedded within a Border control and then handle the mouse down, up and move events to make the object move within your layout panel.
TO See sample .xaml code clik below:
wrap panel and stack panel
June 30, 2009 by vmathanraj87In Silverlight and WPF, you have a lot of choices in how to lay out your content. This is accomplished via layout panels whose only purpose is to help arrange all of the content that you decide to place inside them. While most panels are pretty boring, in this article, we will look at two panels who are anything but! These panels are known as WrapPanel and StackPanel
Introducing WrapPanel and StackPanel
As their name implies, WrapPanels wrap any content stored within its boundaries, and StackPanels stack content. That seems pretty simple, but just to highlight what makes them useful, let’s look at quick examples of both layout controls in action.
Looking at WrapPanel
A WrapPanel allows you to place content inside it, and it wraps the content over new rows and columns if there isn’t enough space available. The following screenshot shows you some square shapes placed inside a WrapPanel whose orientation is Horizontal where rows are filled first:
The WrapPanel ensures that no elements stored inside it go beyond the panel’s boundaries. That is why you see some of our squares starting on a second line instead of extending the first line of squares indefinitely
Looking at the StackPanel
The StackPanel is similar to WrapPanel, but a major difference is that it doesn’t wrap the content. Instead, it allows you to stack contents either horizontally or vertically. The following image shows you some green squares placed inside a StackPanel whose orientation is Horizontal

These panels are great because they take care of the positioning of the individual content inside them automatically. You add your content, and poof, everything worksThese panels are great because they take care of the positioning of the individual content inside them automatically. You add your content, and poof, everything works
What is Moon light?
June 30, 2009 by vmathanraj87Moonlight enables Linux users to view Silverlight content and Silverlight applications.
Recently the official Presidential Inauguration Committee broadcast the inauguration of President Barack Obama using Silverlight. Over 50,000 viewers using Linux installed Moonlight and watched the event live using Moonlight.
what is .XAP file?
June 30, 2009 by vmathanraj87.xap file is the compressed output file for the Silverlight application. The .xap file includes AppManifest.xaml, compiled output assembly of the Silverlight project (.dll) and any other resource files referred by the Silverlight application.
Web pages like .aspx files and .html files use the Silverlight components by loading the .xap files using the <object> tag in the HTML or by using <asp:Silverlight> tag in the ASP.NET pages.
“.xap” files (pronounced “zap”) use the standard .zip compression algorithm to minimize client download size. A “hello world” .NET Silverlight application (built using VB or C#) is about 5KB in size.
Let us see how a .xap file look like.
Open Visual Studio and create a new project by selecting “Silverlight Application” under the project type “Silverlight”. Choose the project name “SilverlightTest”. In the next screen, choose the option “automatically generate a test page to host Silverlight at build time”.
How to open XAML pages from another XAML pages?
June 30, 2009 by vmathanraj87In a Silverlight application, you can have multiple XAML pages. When you use the .xap file in the web page, only one XAML control will be displayed at a time. The default XAML file displayed is determined by the following code in the App.xaml file:
this.RootVisual = new Page1();
You can change the above line to the class name of any oher xaml file to open that file by default.
Another scenario is, you may want to open different xaml files from the default xaml page. For example, consider that you have a xaml control that prompt user to enter login information. After the login credentials are validated, you may want to redirect to another xaml file when the user click the “Submit” button.
This can be done by setting the “Content” property of the xaml page.
Diff between silverlight1 and silverlight2?
June 30, 2009 by vmathanraj87Silverlight 1
It is purely AJAX and Javascript based. All the code has to be written in Javascript and XAML.
Silverlight 2
Silverlight 2 supports managed code. When Silverlight 2 runtime is installed, it installs a limited version of .NET runtime on the client machine. This allows .NET programmers to write managed code to be executed on the client PC and provide a better user experience to the users. Of course, there is security and restrictions built in to it so that the code has limited access to the client computer.
Developers must be aware that if the end user decline to install the .NET runtime on their client computer, the Silverlight 2 applications will not run.


