<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Are there any tricks that will help me improve TreeView&#8217;s performance? &#8211; Part II</title>
	<atom:link href="http://bea.stollnitz.com/blog/?feed=rss2&#038;p=43" rel="self" type="application/rss+xml" />
	<link>http://bea.stollnitz.com/blog/?p=43</link>
	<description>on Silverlight and WPF</description>
	<lastBuildDate>Thu, 22 Jul 2010 20:56:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Bea</title>
		<link>http://bea.stollnitz.com/blog/?p=43&#038;cpage=1#comment-5857</link>
		<dc:creator>Bea</dc:creator>
		<pubDate>Wed, 31 Oct 2007 06:20:34 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=43#comment-5857</guid>
		<description>Hi Ivan,

Here are some thoughts on Menu:

- First of all, I haven&#039;t seen people use Menu to display large amounts of information. Is this the right control for what you&#039;re trying to do? What is your scenario? How many items and layers do you have?

- Yeah, I&#039;ve come across the same issue with debugging MenuItems as you mention. I opened the Menu, clicked on Snoop, and the Menu closed. I don&#039;t know of any other tool or way to solve this problem. I&#039;m not sure if there&#039;s anything that WPF can do, since this is the real behavior of Menu. I&#039;ll let Pete (the guy who wrote Snoop) know about this - maybe he can do something in Snoop to improve the experience.

- And last, replying to your question, I think it will be really hard for you to implement the third solution in my series with Menu (the one with full UI virtualization and discarding data on collapse). For TreeView it was quite easy because the layout of a TreeView is very similar to the layout of a ListBox. Menu, however, is very different, so I don&#039;t think it would be possible to leverage the full UI virtualization feature from ListBox. The second solution (the one that discards data on collapse) should be possible, by following similar steps. You may need to copy and change the default template for MenuItem instead of TreeViewItem, and you will have to find different events that will trigger when you attempt to open and close the menu. This will probably not be as straight forward as the TreeView sample, but it should be possible.

Thanks for your comment,
Bea</description>
		<content:encoded><![CDATA[<p>Hi Ivan,</p>
<p>Here are some thoughts on Menu:</p>
<p>- First of all, I haven&#8217;t seen people use Menu to display large amounts of information. Is this the right control for what you&#8217;re trying to do? What is your scenario? How many items and layers do you have?</p>
<p>- Yeah, I&#8217;ve come across the same issue with debugging MenuItems as you mention. I opened the Menu, clicked on Snoop, and the Menu closed. I don&#8217;t know of any other tool or way to solve this problem. I&#8217;m not sure if there&#8217;s anything that WPF can do, since this is the real behavior of Menu. I&#8217;ll let Pete (the guy who wrote Snoop) know about this &#8211; maybe he can do something in Snoop to improve the experience.</p>
<p>- And last, replying to your question, I think it will be really hard for you to implement the third solution in my series with Menu (the one with full UI virtualization and discarding data on collapse). For TreeView it was quite easy because the layout of a TreeView is very similar to the layout of a ListBox. Menu, however, is very different, so I don&#8217;t think it would be possible to leverage the full UI virtualization feature from ListBox. The second solution (the one that discards data on collapse) should be possible, by following similar steps. You may need to copy and change the default template for MenuItem instead of TreeViewItem, and you will have to find different events that will trigger when you attempt to open and close the menu. This will probably not be as straight forward as the TreeView sample, but it should be possible.</p>
<p>Thanks for your comment,<br />
Bea</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan</title>
		<link>http://bea.stollnitz.com/blog/?p=43&#038;cpage=1#comment-2540</link>
		<dc:creator>Ivan</dc:creator>
		<pubDate>Tue, 16 Oct 2007 21:24:17 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=43#comment-2540</guid>
		<description>Hi Bea,

You have explained very well in your blog about TreeView (It is cool, thank you!). But how about the Menu... do I need to take some actions if I want to display large hierarchical information using Menu? My question probably seems evident for all, but I&#039;m not a WPF expert.

Also, I have found impossible to use Snoop for browsing internals of Menu... First, it seems like menu is not in the visual tree of window. Second, it is hard (or very inconvenient) to do something with Menu, because it is closed each time when i activate another window. Probably you could recommend some technique of using Snoop or some other tool.

Thanks,

Ivan</description>
		<content:encoded><![CDATA[<p>Hi Bea,</p>
<p>You have explained very well in your blog about TreeView (It is cool, thank you!). But how about the Menu&#8230; do I need to take some actions if I want to display large hierarchical information using Menu? My question probably seems evident for all, but I&#8217;m not a WPF expert.</p>
<p>Also, I have found impossible to use Snoop for browsing internals of Menu&#8230; First, it seems like menu is not in the visual tree of window. Second, it is hard (or very inconvenient) to do something with Menu, because it is closed each time when i activate another window. Probably you could recommend some technique of using Snoop or some other tool.</p>
<p>Thanks,</p>
<p>Ivan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bea</title>
		<link>http://bea.stollnitz.com/blog/?p=43&#038;cpage=1#comment-368</link>
		<dc:creator>Bea</dc:creator>
		<pubDate>Wed, 19 Sep 2007 00:22:36 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=43#comment-368</guid>
		<description>Hi Duncan,

I&#039;m not sure that I completely understand your scenario. If you start with an empty data entry form, submit the data, and your validation rules fail for null/empty string values, your controls should now be invalid. Validation should fire every time your data is submitted to the source. You can find &lt;a href=&quot;http://www.beacosta.com/BlogComments/33ValidationSample.zip&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; a simple project I put together hoping to repro the behavior you describe. I would like to understand your expectations better because we know we have some rough edges in validation, and the more concrete feedback we get about it, the easier it is for us to fix it. 

We already have an internal work item tracking adding support for validation on non-bound controls. The priority of that work will grealy depend on how much customers ask for it. I would personally love to see this feature get implemented!

Thanks,
Bea</description>
		<content:encoded><![CDATA[<p>Hi Duncan,</p>
<p>I&#8217;m not sure that I completely understand your scenario. If you start with an empty data entry form, submit the data, and your validation rules fail for null/empty string values, your controls should now be invalid. Validation should fire every time your data is submitted to the source. You can find <a href="http://www.beacosta.com/BlogComments/33ValidationSample.zip" rel="nofollow">here</a> a simple project I put together hoping to repro the behavior you describe. I would like to understand your expectations better because we know we have some rough edges in validation, and the more concrete feedback we get about it, the easier it is for us to fix it. </p>
<p>We already have an internal work item tracking adding support for validation on non-bound controls. The priority of that work will grealy depend on how much customers ask for it. I would personally love to see this feature get implemented!</p>
<p>Thanks,<br />
Bea</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Duncan Millard</title>
		<link>http://bea.stollnitz.com/blog/?p=43&#038;cpage=1#comment-320</link>
		<dc:creator>Duncan Millard</dc:creator>
		<pubDate>Thu, 13 Sep 2007 12:24:04 +0000</pubDate>
		<guid isPermaLink="false">http://bea.stollnitz.com/blog/?p=43#comment-320</guid>
		<description>Hi Beatriz,

My question isn&#039;t directly related to the post but instead is a problem with data validation that&#039;s been asked on the MSDN forums but as far as I know not resolved yet.

A good description is at: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2079199&amp;SiteID=1

The simple case is, I want to start with an empty data-entry form. Some fields are mandatory. If I simply submit my data, the controls will be considered valid, because there has been no update of the underlying data source and hence no validation rules fired.

It would be great to have a good solution to this - and preferably to take this further and be able to do validation on non-bound controls, rather like in ASP.NET. 

I hope this feedback is useful to the WPF team!

thanks,

Duncan Millard
http://geekswithblogs.net/dmillard</description>
		<content:encoded><![CDATA[<p>Hi Beatriz,</p>
<p>My question isn&#8217;t directly related to the post but instead is a problem with data validation that&#8217;s been asked on the MSDN forums but as far as I know not resolved yet.</p>
<p>A good description is at: <a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2079199&#038;SiteID=1" rel="nofollow">http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2079199&#038;SiteID=1</a></p>
<p>The simple case is, I want to start with an empty data-entry form. Some fields are mandatory. If I simply submit my data, the controls will be considered valid, because there has been no update of the underlying data source and hence no validation rules fired.</p>
<p>It would be great to have a good solution to this &#8211; and preferably to take this further and be able to do validation on non-bound controls, rather like in ASP.NET. </p>
<p>I hope this feedback is useful to the WPF team!</p>
<p>thanks,</p>
<p>Duncan Millard<br />
<a href="http://geekswithblogs.net/dmillard" rel="nofollow">http://geekswithblogs.net/dmillard</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
