Possible Duplicate:
What is the difference between System.Drawing.Point and System.Windows.Point?
Why are there these two different Size structures? Under what circumstances would you choose to use each of these? I am unclear about how to choose the correct one in my code.
System.Drawing.Size is part of GDI+.
System.Windows.Size is part of WPF.
The most noticable difference is that System.Drawing.Size uses ints for its width and height fields, while the System.Windows.Size uses doubles.
This stems from the fact that the WPF layout framework is vector based and not raster based like GDI+.
You choose one or the other depending on the UI framework you are using.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With