Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Set VirtualizingStackPanel properties for dynamically created StackPanel

$
0
0

Hi, for a dynamically created StackPanel how can I set the properties VirtualizingStackPanel.IsVirtualizing and VirtualizingStackPanel.VirtualizationMode ?

The code-behind intellisense doesn't show these properties on the StackPanel though available in xaml UI stackpanel control)

StackPanel sp = new StackPanel();

If I use VirtualizingStackPanel instead of StackPanel, then I don't see the children on expanding this control at runtime

VirtualizingStackPanel vsp = new VirtualizingStackPanel();

Thanks,

-srinivas y.


sri


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>