0

i'm building a wpf control based on the outlook calender sample in code project,

first of all i wanna know if this is a good sample or that this is not the way of writing controls?

second, i need to support milliseconds view of the calender, the meaning of that is more than 24 * 60 * 60 items

my question is how to build this panel(if it should still be a StackPanel) and how can i refill the panel when resolution (zoom) changes and avoid stucking the gui while i perform the fill.

to sum up : i need a fast way to insert many items to a StackPanel in wpf.

Dave Clemmer
  • 3,741
  • 12
  • 49
  • 72
Chen Kinnrot
  • 20,609
  • 17
  • 79
  • 141

2 Answers2

2

Perhaps you can use the VirtualizingStackPanel class. Remember you need to databind the items of the panel to make it virtual.

Martin Liversage
  • 104,481
  • 22
  • 209
  • 256
0

You probably need to do UI Virtualization to do this; although, I'm not sure what the usability ramifications of having 80k rows would be.

FryGuy
  • 8,614
  • 3
  • 33
  • 47