sbaeumlisberger / VirtualizingWrapPanel

Implementation of a comprehensive VirtualisingWrapPanel for WPF
MIT License
254 stars 35 forks source link

Please add ItemWidth and ItemHeight instead of ItemSize #23

Closed bezzad closed 3 years ago

bezzad commented 3 years ago

Hi, I use the MVVM and I can't to using System.Drawing.Size in the ViewModel object. For this reason. Can you add ItemWidth and ItemHeight dependency properties to the library?

sbaeumlisberger commented 3 years ago

Hi,

as you can see here the ItemSize property of the VirtualizingWrapPanel is of the type System.Windows.Size, not System.Drawing.Size. According to your link it should be fine to use this type in your view models.

Anyway you could use a IValueConverter to convert any other type to the required System.Windows.Size.

I hope that helps :)

bezzad commented 3 years ago

That's awesome. thanks