Click here to Skip to main content
15,902,276 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi,
I developed application in silverlight navigation application. Our development monitor is of normal size. but when we open link in big monitor m/c . UI moves to left side and bars are move here and there.

Please give me any solution for this.


<usercontrol xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">
mc:Ignorable="d" Loaded="UserControl_Loaded"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch">
<grid x:name="LayoutRoot" xmlns:x="#unknown">
<border x:name="ContentBorder" verticalalignment="Bottom">
<navigation:frame xmlns:navigation="#unknown">
x:Name="ContentFrame"
Source="/Home" Navigated="ContentFrame_Navigated"
VerticalAlignment="Bottom"
HorizontalAlignment="Stretch">
<navigation:frame.urimapper>
<urimapper:urimapper xmlns:urimapper="#unknown">
<urimapper:urimapping uri="/test" mappeduri="/Views/test.xaml">




<grid x:name="NavigationGrid" height="100">
<border x:name="BrandingBorder" height="80">
<stackpanel x:name="BrandingStackPanel" style="{StaticResource BrandingStackPanelStyle}" height="80">
<contentcontrol width="110" height="80" verticalalignment="Top">
<Image Source="../Images/img.jpg" HorizontalAlignment="Left"/>





Posted
Updated 18-Apr-12 21:16pm
v2
Comments
S@53K^S 18-Apr-12 10:41am    
Are you using fixed layouts or relative layout?If fixed layout like setting right left properties and setting the height and width of the items then positioning will change else it will be automatically positioned

1 solution

You are using a relative layout. Set a height and with of the main page user control to a fixed with and height (should this be for a business requirement) and this will allow the relative posistions of the images and buttons currently set to position themselves accordingly.

It is usually a better practice to allow for a flow layout as Sastry described above, so that the page will adjust to the size of the browser window.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900