Hi Pooja,
Thank you for sending over your layout. If I understand your scenario correctly - you need to dynamically change your layout based on the resolution and based on the size of the window/page/browser. If this is indeed the case, then I would recommend using only
Grids with
Auto or
Star sizing. The
StackPanel control always measures its children with Infinity and therefore in a
Horizontal StackPanel, its children will take up only as much horizontal space as they really need. Instead if you replace the
StackPanels with
Grids with
Columns with
Start size, then the children of the panel will take up as much space as the
Column has available.
Also, when you set a specific
Width on an element, then the element will maintain this
Width at all times - or it will at least try. This is the reason why you get overlapping - your elements are wrapped in
StackPanels and they also have a predefined Width - and when the size of the Browser is smaller, the
ComboBoxes will try to keep their Width and therefore overlap each other.
You can take a look at
Using the Grid control in Silverlight post - it targets an earlier version of Silverlight but the
Grid specifics have not changes and it is a good starting point.
Regards,
Tina Stancheva
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application.
Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>