<?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: Creating a highlighting text block for Silverlight 3, revisited</title>
	<atom:link href="http://www.jeff.wilcox.name/2009/08/sl3-highlighting-text-block/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jeff.wilcox.name/2009/08/sl3-highlighting-text-block/</link>
	<description>Silverlight, rich client apps and web development</description>
	<lastBuildDate>Thu, 18 Mar 2010 13:08:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: slyi</title>
		<link>http://www.jeff.wilcox.name/2009/08/sl3-highlighting-text-block/comment-page-1/#comment-1738</link>
		<dc:creator>slyi</dc:creator>
		<pubDate>Sun, 25 Oct 2009 19:01:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeff.wilcox.name/2009/08/sl3-highlighting-text-block/#comment-1738</guid>
		<description>Thanks for this i created a syntax hightlighter based on this and delay sample control http://blogs.msdn.com/delay/archive/2008/06/19/text-from-a-slightly-different-perspective-verticaltextblock-control-sample-for-silverlight-2.aspx http://forums.silverlight.net/forums/t/138293.aspx</description>
		<content:encoded><![CDATA[<p>Thanks for this i created a syntax hightlighter based on this and delay sample control <a href="http://blogs.msdn.com/delay/archive/2008/06/19/text-from-a-slightly-different-perspective-verticaltextblock-control-sample-for-silverlight-2.aspx" rel="nofollow">http://blogs.msdn.com/delay/archive/2008/06/19/text-from-a-slightly-different-perspective-verticaltextblock-control-sample-for-silverlight-2.aspx</a> <a href="http://forums.silverlight.net/forums/t/138293.aspx" rel="nofollow">http://forums.silverlight.net/forums/t/138293.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Håkan</title>
		<link>http://www.jeff.wilcox.name/2009/08/sl3-highlighting-text-block/comment-page-1/#comment-1732</link>
		<dc:creator>Håkan</dc:creator>
		<pubDate>Thu, 22 Oct 2009 08:17:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeff.wilcox.name/2009/08/sl3-highlighting-text-block/#comment-1732</guid>
		<description>I too, have the same problem as Gerard and not only when scrolling.
Sometimes items that does not match the text is displayed in the list, but when moving down to it with the arrow key and select it, it will be something else.
So it seems that the filtered list is correct but it displays the wrong values in the DataTemplate that uses the HighligtingTextBox.
If I remove the highlighting from my DataTemplate it works fine.</description>
		<content:encoded><![CDATA[<p>I too, have the same problem as Gerard and not only when scrolling.<br />
Sometimes items that does not match the text is displayed in the list, but when moving down to it with the arrow key and select it, it will be something else.<br />
So it seems that the filtered list is correct but it displays the wrong values in the DataTemplate that uses the HighligtingTextBox.<br />
If I remove the highlighting from my DataTemplate it works fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamel</title>
		<link>http://www.jeff.wilcox.name/2009/08/sl3-highlighting-text-block/comment-page-1/#comment-1603</link>
		<dc:creator>Jamel</dc:creator>
		<pubDate>Thu, 10 Sep 2009 19:43:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeff.wilcox.name/2009/08/sl3-highlighting-text-block/#comment-1603</guid>
		<description>I have a larger list that requires me to scroll when I do the data bound to the HighlightTextBlock is out of sync with the data in the regular textblock.  I tried Gerards suggestion of changing the class to extend form ContentControl and instantiating the TextBlock and add it to Content but this did not work.  Any suggestions would be greatful</description>
		<content:encoded><![CDATA[<p>I have a larger list that requires me to scroll when I do the data bound to the HighlightTextBlock is out of sync with the data in the regular textblock.  I tried Gerards suggestion of changing the class to extend form ContentControl and instantiating the TextBlock and add it to Content but this did not work.  Any suggestions would be greatful</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerard</title>
		<link>http://www.jeff.wilcox.name/2009/08/sl3-highlighting-text-block/comment-page-1/#comment-1579</link>
		<dc:creator>Gerard</dc:creator>
		<pubDate>Mon, 31 Aug 2009 18:23:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeff.wilcox.name/2009/08/sl3-highlighting-text-block/#comment-1579</guid>
		<description>I modified the class to extend ContentControl instead of Control and modified the constructor to instantiate the TextBlock and add it to the Content.

That corrected the issue.  Robby Ingebretsen&#039;s TextBloc blog helped.

http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight</description>
		<content:encoded><![CDATA[<p>I modified the class to extend ContentControl instead of Control and modified the constructor to instantiate the TextBlock and add it to the Content.</p>
<p>That corrected the issue.  Robby Ingebretsen&#8217;s TextBloc blog helped.</p>
<p><a href="http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight" rel="nofollow">http://blog.nerdplusart.com/archives/texttrimming-textblock-for-silverlight</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerard</title>
		<link>http://www.jeff.wilcox.name/2009/08/sl3-highlighting-text-block/comment-page-1/#comment-1578</link>
		<dc:creator>Gerard</dc:creator>
		<pubDate>Mon, 31 Aug 2009 15:41:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeff.wilcox.name/2009/08/sl3-highlighting-text-block/#comment-1578</guid>
		<description>Simple test to reproduce the HighlightingTextBlock paint/draw issue.  In a ListBox, add items bound to entities with a DataTemplate.  In the DataTemplate bind a TextBlock and a HighlightingTextBlock to the same entity field.  Make sure there are enough entities to scroll.  Drag the scroll bar up and down fast.  Notice how the TextBlock and the HighlightingTextBlock display different values.

Any helpful insight would be appreciated.</description>
		<content:encoded><![CDATA[<p>Simple test to reproduce the HighlightingTextBlock paint/draw issue.  In a ListBox, add items bound to entities with a DataTemplate.  In the DataTemplate bind a TextBlock and a HighlightingTextBlock to the same entity field.  Make sure there are enough entities to scroll.  Drag the scroll bar up and down fast.  Notice how the TextBlock and the HighlightingTextBlock display different values.</p>
<p>Any helpful insight would be appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerard</title>
		<link>http://www.jeff.wilcox.name/2009/08/sl3-highlighting-text-block/comment-page-1/#comment-1576</link>
		<dc:creator>Gerard</dc:creator>
		<pubDate>Thu, 27 Aug 2009 21:31:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeff.wilcox.name/2009/08/sl3-highlighting-text-block/#comment-1576</guid>
		<description>When I drag the AutoCompleteBox scrollbar up and down, the HighlightingTextBlock in the DataTemplate continues to change to other entities in the list.  The TextBlock is always bound to the correct entity.  The HighlightingTextBlock seems to do this as it redraws.  The initial, visible portion of the list, before scrolling, matches the entities.  No matter how I scroll, the HighlightingTextBox starts to display text from other entities in the list.</description>
		<content:encoded><![CDATA[<p>When I drag the AutoCompleteBox scrollbar up and down, the HighlightingTextBlock in the DataTemplate continues to change to other entities in the list.  The TextBlock is always bound to the correct entity.  The HighlightingTextBlock seems to do this as it redraws.  The initial, visible portion of the list, before scrolling, matches the entities.  No matter how I scroll, the HighlightingTextBox starts to display text from other entities in the list.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Wilcox</title>
		<link>http://www.jeff.wilcox.name/2009/08/sl3-highlighting-text-block/comment-page-1/#comment-1575</link>
		<dc:creator>Jeff Wilcox</dc:creator>
		<pubDate>Thu, 27 Aug 2009 20:10:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeff.wilcox.name/2009/08/sl3-highlighting-text-block/#comment-1575</guid>
		<description>@Gerard,
interesting - Silverlight only has one UI thread. Any more info on the issue you are seeing?</description>
		<content:encoded><![CDATA[<p>@Gerard,<br />
interesting &#8211; Silverlight only has one UI thread. Any more info on the issue you are seeing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerard</title>
		<link>http://www.jeff.wilcox.name/2009/08/sl3-highlighting-text-block/comment-page-1/#comment-1574</link>
		<dc:creator>Gerard</dc:creator>
		<pubDate>Thu, 27 Aug 2009 20:00:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeff.wilcox.name/2009/08/sl3-highlighting-text-block/#comment-1574</guid>
		<description>Looks like there may be a problem with threading concurrency at private static void OnTextPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)

My AutoCompleteBox has a DataTemplate with a stackpanel holding a TextBlock and HighlightingTextBlock both bound to the same field of my entity.  The TextBlock is always precisely correct as I can see and I arrow throught the results.  The HighlightingTextBlock begins show text from later fields that do not accurately represent the current entity.</description>
		<content:encoded><![CDATA[<p>Looks like there may be a problem with threading concurrency at private static void OnTextPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)</p>
<p>My AutoCompleteBox has a DataTemplate with a stackpanel holding a TextBlock and HighlightingTextBlock both bound to the same field of my entity.  The TextBlock is always precisely correct as I can see and I arrow throught the results.  The HighlightingTextBlock begins show text from later fields that do not accurately represent the current entity.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Wilcox</title>
		<link>http://www.jeff.wilcox.name/2009/08/sl3-highlighting-text-block/comment-page-1/#comment-1565</link>
		<dc:creator>Jeff Wilcox</dc:creator>
		<pubDate>Wed, 26 Aug 2009 23:08:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeff.wilcox.name/2009/08/sl3-highlighting-text-block/#comment-1565</guid>
		<description>@Morten,
Definitely. This control was originally for a &quot;proof-of-concept&quot; implementation - it&#039;s just back from the dead for this post :-)</description>
		<content:encoded><![CDATA[<p>@Morten,<br />
Definitely. This control was originally for a &#8220;proof-of-concept&#8221; implementation &#8211; it&#8217;s just back from the dead for this post <img src='http://www.jeff.wilcox.name/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Morten</title>
		<link>http://www.jeff.wilcox.name/2009/08/sl3-highlighting-text-block/comment-page-1/#comment-1564</link>
		<dc:creator>Morten</dc:creator>
		<pubDate>Wed, 26 Aug 2009 22:45:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.jeff.wilcox.name/2009/08/sl3-highlighting-text-block/#comment-1564</guid>
		<description>Wouldn&#039;t it make more sense to make this a behavior you attach to the textblock instead? It would make the code simpler, and you can just throw it on existing textblocks instead of having to change them out with other controls. You could also make it a TargetedTriggerAction and use the textchanged event to trigger the action. This would make it more flexible on what triggers the highlight (ie. highlight on mouseenter on another UIElement etc)</description>
		<content:encoded><![CDATA[<p>Wouldn&#8217;t it make more sense to make this a behavior you attach to the textblock instead? It would make the code simpler, and you can just throw it on existing textblocks instead of having to change them out with other controls. You could also make it a TargetedTriggerAction and use the textchanged event to trigger the action. This would make it more flexible on what triggers the highlight (ie. highlight on mouseenter on another UIElement etc)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
