2

I want to create a customized virtualizing panel which can be used as ItemsPanel for ItemsControl in Windows Store apps or UWP project. I thought it's would be the easiest way to inherit and extend VirtualizingPanel or OrientedVirtualizingPanel. But both said they 'does not contain a constructor that takes 0 arguments'. Does it mean that they can not be inherited? If so, then which class should I extend?

public class MyOrientedVirtualizingPanel : VirtualizingPanel
{
    //compile error: VirtualizingPanel does not contain a constructor that takes 0 arguments
    public MyOrientedVirtualizingPanel()
    {


    }
}
Scavenger
  • 207
  • 2
  • 9
SimonFisher
  • 380
  • 1
  • 4
  • 13
  • I've already implemented that as you done,but there is no error accrued. – Saman Hajizade Jan 11 '17 at 10:24
  • According to [this Q/A](http://stackoverflow.com/q/31507686/1136211), it won't work. – Clemens Jan 11 '17 at 10:59
  • @Clemens I'm useing the article mention in this Q/A(VirtualizingTilePanel) as the sample. It is derived from VirtualizingPanel, and implemented IScrollInfo. Can you give me some idea which class should I derive in Windows Store apps or UWP if VirtualizingPanel can't be extent?thx – SimonFisher Jan 11 '17 at 12:00
  • @Saman Can you shed more light on this topic? How to fix this compile error?thx – SimonFisher Jan 11 '17 at 12:32

0 Answers0