Hi all,
I have a problem with combo box that i did give hem 2000 item the combo tack 2 sec to show his list for selection
this was the code XAML :
<combobox height="23" horizontalalignment="Left" margin="72,27,0,0" name="cmbTest">
VerticalAlignment="Top" Width="120" >
</combobox>
to fix this time delay i did use VirtualizingStackPanel ,
the code after adding VirtualizingStackPanel is:
<combobox height="23" horizontalalignment="Left" margin="72,27,0,0" name="cmbTest" scrollviewer.cancontentscroll="True">
VerticalAlignment="Top" Width="120" >
<combobox.itemspanel>
<itemspaneltemplate>
<virtualizingstackpanel />
</itemspaneltemplate>
</combobox.itemspanel>
</combobox>
as you see i did add :
<combobox.itemspanel>
<itemspaneltemplate>
<virtualizingstackpanel />
</itemspaneltemplate>
</combobox.itemspanel>
now the performance problem is solved with this code,
after this i want to change the scroll behavior so i did set ScrollViewer.CanContentScroll="false" in order to change scroll behavior.
after this modification i did lose the performance ,
any one have idea to solve this , the combo item visualization be performed and kip the scroll behavior
thx for help