Friday, 4 June 2010

On click make silverlight pop up on top

To make the pop up window on top we can take help of ZIndex. Silverlight Canvas has a method SetZIndex(ObjectName, ++i).

1. Get the object which you want to make on top.
2. Increase the zindex of that object.

The highest zindex object will show on top.

Canvas.SetZIndex(ObjectName, ++i);

To take the facility of canvas ZIndex we have to take the objects collection as the child of canvas.

No comments:

Post a Comment