Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why does design time and runtime size differ?
Message
From
28/10/2009 04:35:07
 
 
To
27/10/2009 22:23:59
General information
Forum:
ASP.NET
Category:
Windows Presentation Foundation (WPF)
Environment versions
Environment:
C# 3.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01431413
Message ID:
01431832
Views:
33
>Viv
>
>Updated image. I aligned everything and drew some lines.
>
>http://www.foxite.com/uploads/5d91d1cf-e67c-4a24-892d-dd64e77c8c27.jpg
>
>The lines show how the grid has moved and is now positioned in the form and there is nothing consistent I see in the movement. The combo has not shrunk, as Bonnie pointed out, but the textbox has grown as has the button, because the width was not explicitly set.
>
>Well I did not set the width property for any of the controls. That was VS doing it on its own - doing it for some and not for others.

As per my other reply: the runtime Grid is shown slightly wider than at design time; the textbox has stretched because it has no explicit width. The alignment and Margin attributes of both buttons mean that they are (effectively) docked to the right of the Grid.
Previous
Reply
Map
View

Click here to load this message in the networking platform