XmlDataProvider - Speed issues

This is a cross post from the Avalon forum. Thought I would post it here also to see if anyone has any ideas.

Original post


I have a ComboBox whose ItemsSource is a very large XML document, the XML defines over a hundred different nodes that will be options for the ComboBox. When I run the application there is a noticable delay each time the popup of the ComboBox is opened.

-Is the XML document being parsed each time the popup is opened? I have it defined as a StaticResource.

- Is this a known issue that will be cleared up in future WPF builds?

- With this many ComboBox options is there a better way to define them than an XML document?

- I have the XML defined in the resources of my Application object. When I open the .xaml file Visual Studio runs through the entire file and the IDE becomes unresponsive. Is there any way to have VS not parse the XML each time?


Another thing that I have noticed is that with a large set of options in a ComboBox control there is an empty entry at the very end of the popup list. Looks to be a cosmetic thing since the empty option can not be selected, but thought I would bring it up.

Sample code:http://www.savefile.com/files.php?fid=9271993

[1457 byte] By [WPFMonkey] at [2008-2-7]
# 1

The Avalon forum is probably your best bet for getting these questions answered

mark

MarkBoulter at 2007-9-9 > top of Msdn Tech,Visual Studio Orcas,WPF Designer (Cider)...

Visual Studio Orcas

Site Classified