I'm trying to do this in Windows 10 and Windows Phone 8.1 (app link):
I have a custom class called FluidPanel that extends Panel and overrides methods MeasureOverride and ArrangeOverride. The goal is to create the Google Keep appearence. Ok, it's working fine.
But, because I'm using a basic Panel as the ItemsPanelTemplate, the items Reorder doesn't work. Also, transistions doesn't work and it doesn't virtualize.
So, I would like to know how to create a custom panel that reorder items and virtualize just like the GridView's ItemsWrapGrid.
I tried to extends the class VirtualizingPanel, but it keeps showing me this error that looks like a bug:
'VirtualizingPanel' does not contain a constructor that takes 0 arguments
Hope someone can give some directions.
You can’t inherit from the “VirtualizingPanel” in C# is because it is a Windows Runtime Class and there is no constructor function exposed by the Windows metadata (windows.winmd file). The UI virtualizing is only a concept, it will be a little complex, but it is possible to implement it from scratch. I think the blog series implementing a virtualized panel in WPF will be a good start.
Part#1: http://blogs.msdn.com/b/dancre/archive/2006/02/06/526310.aspx
Part#2: http://blogs.msdn.com/b/dancre/archive/2006/02/13/531550.aspx
Part#3: http://blogs.msdn.com/b/dancre/archive/2006/02/14/532333.aspx
P.S: the blog is about WPF, but the basic idea is the same.
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