How do you fix the Silverlight application shift that occurs in the Firefox browser?
Posted
by Roy
on Stack Overflow
See other posts from Stack Overflow
or by Roy
Published on 2010-03-20T21:46:50Z
Indexed on
2010/03/20
21:51 UTC
Read the original article
Hit count: 319
Silverlight
|xaml
Hi, Currently I have an Silverlight application that when run on Firefox browser (ver 3.6) the entire contents of the Silverlight application shifts a little, and also the scrollbars on both the bottom and the side appear when I first use it. This does not happen in IE 8. How can I fix this in Firefox so it doesn't happen? The project type I created was the "Silverlight 3 Application + Website" via Expression Blend 3. This the code I am using in my MainPage.xaml:
<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="StackoverflowExample.MainPage"
Width="640" Height="480">
<Grid x:Name="LayoutRoot" Background="Green">
<Rectangle Fill="#FFBB2020" Stroke="Black" Margin="155,58,266,178"/>
<Button Margin="199,180,302,236" Content="Button"/>
</Grid>
</UserControl>
© Stack Overflow or respective owner