Skip to main content

Microsoft Silverlight

Answered Question Strange creeping upwards!RSS Feed

(0)

JoelR
JoelR

Member

Member

0 points

1 Posts

Strange creeping upwards!

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 Chen – MSFT
Allen Ch...

Star

Star

13862 points

1,803 Posts

Answered Question

Re: Strange creeping upwards!

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.

Sincerely,
Allen Chen
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities