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

Datagrid VirtualizationPanel properties on codeBehind c#

$
0
0

Hello guys, I have something like this on every xaml i have a "MyExtendedDataGrid":

<myclasses:MyExtendedDatagrid
VirtualizingPanel.IsContainerVirtualizable="True" 
VirtualizingPanel.VirtualizationMode="Recycling" 
VirtualizingPanel.IsVirtualizingWhenGrouping="True"
VirtualizingPanel.ScrollUnit="Pixel" 
VirtualizingPanel.IsVirtualizing="True"
VirtualizingPanel.CacheLengthUnit="Pixel"
VirtualizingPanel.CacheLength="100"
AutoGenerateColumns="False" EnableRo...........

my question is, how to set this properties directly on the MyExtendedDataGrid class so i not need to set them every time i use it.

Thanks!


Viewing all articles
Browse latest Browse all 18858

Trending Articles



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