Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why does design time and runtime size differ?
Message
De
28/10/2009 04:35:07
 
 
À
27/10/2009 22:23:59
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Divers
Thread ID:
01431413
Message ID:
01431832
Vues:
34
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform