Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why does design time and runtime size differ?
Message
De
27/10/2009 22:11:26
 
 
À
27/10/2009 21:57:07
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:
01431814
Vues:
34
You're worrying about this too much. Keep working with WPF and learning it. Once you understand how it works and the best controls to contain other controls, then come back and complain if you're still getting the same problem.


>Maybe for you, but I am just a newbie at WPF so it will not make sense. However now you mention it. I can see what is happening. It is just that I did not set any width for any controls. I just moved them about. VS generated that code all on its own and did not tell me that it was setting a width property for one control I moved and not for another. How odd. Is there no consistent way to get objects to align? I don't want to have to type in XAML. I want to do it visually.
>
>Since you are experienced with WPF you know what is happening. I will do some more testing and observer the changes in XAML that VS generates.
>
>Another odd thing. A pal on another forum recreated my sample form (1 textbox, 1 button) and on his computer, running Vista, the runtime and design time was EXACTLY the same. When I downloaded and ran his project on my XP machine, the button had GROWN in runtime. Note that the code is exactly the same. Only the OS has changed. So this means that for every control I will have to have different settings for XP, Vista and maybe Windows 7?
>
>This is almost like the browser rendering problems we have with pages designed for IE and Firefox separately.
>
>This is even worse than I thought at first.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform