Please add ItemWidth and ItemHeight instead of ItemSize
Closed this issue · 2 comments
bezzad commented
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
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
That's awesome. thanks