Skip to main content
Home Forums Silverlight Programming Report a Silverlight Bug Strange creeping upwards!
1 replies. Latest Post by Allen Chen – MSFT on February 19, 2009.
(0)
JoelR
Member
0 points
1 Posts
02-16-2009 11:47 AM |
I started a new project and started playing with the UI. While trying to expand the width of a check-box, it started creeping upwards. Is this the desired behavior, or could it be a bug? Grab the check-box, and try to change the dimensions. Thanks, Joel
XAML: [UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="FirstApplication.Page" Width="640" Height="480" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"] [Border Height="480" Width="640"] [Grid x:Name="LayoutRoot" Background="White" Height="480" Width="640"] [Grid Margin="127.69,104.103,221.413,215.311"] [Button Width="50" Height="25" Content="Button"/] [CheckBox Width="50" Height="20" Content="CheckBox" Margin="121,0,120,43.5" VerticalAlignment="Bottom"/] [/Grid] [/Grid] [/Border] [/UserControl]
Allen Ch...
Star
13862 points
1,803 Posts
02-19-2009 1:57 AM |
Hi,
Thanks for highlighting this issue. It's a known issue that we're not working on. A possible workaround is to change the Margin to integer values:
<Border Height="480" Width="640">
<Grid x:Name="LayoutRoot" Background="White" Height="480" Width="640"> <Grid Margin="127,104,221,215"> <Button Width="50" Height="25" Content="Button"/> <CheckBox Width="50" Height="20" Content="CheckBox" Margin="121,0,120,43" VerticalAlignment="Bottom"/> </Grid> </Grid> </Border>
You can also resize the CheckBox via the properties window.