Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why does design time and runtime size differ?
Message
De
26/10/2009 19:30:38
 
 
À
26/10/2009 07:54:04
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:
01431598
Vues:
42
Craig

My thinking is you are right. How come no one has complained about this before ?

>My guess is design time is wrong. The button looks squished vertically. Keep in mind that 1) in VS2008, the IDE is a C++ app. The WPF designer is probably a COM-enabled .NET control (ie ActiveX), and that could be causing the probem. I'd be interested to see the how it looks in design time in VS2010. Microsoft has completely rebuilt the IDE in WPF.
>
>>Hi people
>>
>>On Kevin Goff's recommendation I got the book "Microsoft Visual C# 2008 Step by Step"
>>
>>In the very first stage they describe creating a simple WPF form with a label, textbox and button.
>>I followed it exactly, and the button is the same height as the textbox in the IDE.
>>
>>However after compiling and running it, the button shows up slightly larger and taller than the textbox and the form looks like crap because the button looks mis-sized.
>>
>>How can I make sure that the development and runtime is properly WISIWYG and if this were to happen to a form with many buttons and textboxes, it would look a mess.
>>
>>An image of what I am talking about can be viewed here:
>>
>>http://www.foxite.com/uploads/5fdee885-ecb1-42dc-b555-c6a5a6eb99e6.jpg
>>
>>Notice that in design time the button and textbox appear to have the same height, but in the runtime the button has grown downwards and looks terrible.
>>
>>I am sure it has something to do with the Margin since the button resizes with the form but cannot see what.
>>
>>Thanks.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform