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 14:08:17
 
 
À
27/10/2009 10:59:50
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:
01431690
Vues:
43
I think the Grid was intended, to a certain extent, to give an approximation of WinForms behaviour. I hardly use it anymore. If you want exact size and positioning then the Canvas control is the one to use - but that is *completely* inflexible.

>I think you're missing some of the point of WPF. You don't place and size controls like you do with WinForms or VFP. You place controls inside a grid and let things resize as needed.
>
>>Alan
>>
>>You took the words out of my mouth. That is exactly what is frustrating me.
>>
>>I just started in WPF and there is so much hassle with a simple form and 2 controls - no code as yet. I dread to think what would happen for a more complicated form if I have to use trial and error to place and size every control and where simply adding a control, changes the XAML and affects other controls. That is a Nightmare I do not want to even think about.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform