Hi,
I am trying to UI Virtualize a DataFormComboBoxField through styling, but could not find a way to do that.I copied the DataFormComboBoxField style in Blend but was not able to find the combo box on which to set the ItemsPanel to VirtualizingStackPanel.I am now doing through code and it works fine, but would like to move that to global style.
Thanks
Madani
I am trying to UI Virtualize a DataFormComboBoxField through styling, but could not find a way to do that.I copied the DataFormComboBoxField style in Blend but was not able to find the combo box on which to set the ItemsPanel to VirtualizingStackPanel.I am now doing through code and it works fine, but would like to move that to global style.
IEnumerable<DataFormComboBoxField> comboFields = MyRadForm.ChildrenOfType<DataFormComboBoxField>();
foreach
(DataFormComboBoxField comboField
in
comboFields)
{
((RadComboBox)comboField.Content).ItemsPanel = Resources[
"VirtualizingItemsPanelTemplate
"
]
as
ItemsPanelTemplate;
}
<
ItemsPanelTemplate
x:Key
=
"VirtualizingItemsPanelTemplate"
>
<
VirtualizingStackPanel
/>
</
ItemsPanelTemplate
>
Thanks
Madani