<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Customizing a ToolTip</title><link>http://blogs.msdn.com/devdave/archive/2008/10/18/customizing-a-tooltip.aspx</link><description>(Special thanks to Andre Michaud and Mike Russell who showed me how to do this.) ToolTips are quite useful for for displaying helpful information when the user hovers over a control. The way that ToolTips are usually used is by setting the ToolTipService.ToolTip</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Customizing a Silverlight Control ToolTip</title><link>http://blogs.msdn.com/devdave/archive/2008/10/18/customizing-a-tooltip.aspx#9005493</link><pubDate>Sun, 19 Oct 2008 00:50:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9005493</guid><dc:creator>DotNetKicks.com</dc:creator><description>&lt;p&gt;You've been kicked (a good thing) - Trackback from DotNetKicks.com&lt;/p&gt;
</description></item><item><title>re: Customizing a ToolTip</title><link>http://blogs.msdn.com/devdave/archive/2008/10/18/customizing-a-tooltip.aspx#9005494</link><pubDate>Sun, 19 Oct 2008 00:50:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9005494</guid><dc:creator>wisemx</dc:creator><description>&lt;p&gt;Very cool, thanks for sharing. ;-)&lt;/p&gt;
</description></item><item><title>Silverlight Cream for October 18, 2008 -- #399</title><link>http://blogs.msdn.com/devdave/archive/2008/10/18/customizing-a-tooltip.aspx#9006073</link><pubDate>Sun, 19 Oct 2008 09:22:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9006073</guid><dc:creator>Community Blogs</dc:creator><description>&lt;p&gt;In this issue: Shawn Wildermuth, Laurence Moroney, Dave Relyea, Mike Taulty, Andy Beaulieu, Brad Abrams&lt;/p&gt;
</description></item><item><title>re: Customizing a ToolTip</title><link>http://blogs.msdn.com/devdave/archive/2008/10/18/customizing-a-tooltip.aspx#9006916</link><pubDate>Mon, 20 Oct 2008 09:59:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9006916</guid><dc:creator>JamieH</dc:creator><description>&lt;p&gt;How could you manipulate this custom tooltip template from code? &amp;nbsp;For example, say I want to generate tool-tips on the fly, but I want to apply a custom template (such as the yellow background with the info icon), how would you do that?&lt;/p&gt;
</description></item><item><title>re: Customizing a ToolTip</title><link>http://blogs.msdn.com/devdave/archive/2008/10/18/customizing-a-tooltip.aspx#9007584</link><pubDate>Mon, 20 Oct 2008 18:01:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9007584</guid><dc:creator>Dave Relyea</dc:creator><description>&lt;p&gt;JamieH, this does the same thing in code:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ToolTip tt = new ToolTip();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tt.Template = (ControlTemplate) Resources[&amp;quot;ToolTipTemplate&amp;quot;];&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tt.Content = new TextBlock() { &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FontFamily = new FontFamily(&amp;quot;Georgia&amp;quot;), &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FontSize = 14, Text = &amp;quot;This is a longer string of text.&amp;quot;, &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TextWrapping = TextWrapping.Wrap };&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ToolTipService.SetToolTip(textBox, tt);&lt;/p&gt;
</description></item><item><title>re: Customizing a ToolTip</title><link>http://blogs.msdn.com/devdave/archive/2008/10/18/customizing-a-tooltip.aspx#9340351</link><pubDate>Mon, 19 Jan 2009 20:01:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9340351</guid><dc:creator>zac@wetinkpro.com</dc:creator><description>&lt;p&gt;I'm getting the following two errors when I copy the last tool tip example XAML into Blend.&lt;/p&gt;
&lt;p&gt;What am I missing?&lt;/p&gt;
&lt;p&gt;ERROR 1: The member &amp;quot;Content&amp;quot; is not recognized or is not accessible.&lt;/p&gt;
&lt;p&gt;ERROR 2: The member &amp;quot;ContentTemplate&amp;quot; is not recognized or is not accessible.&lt;/p&gt;
&lt;p&gt;I'm sort of a noob and more of a designer rather than a developer so I just opened a new solution in Blend and pasted in the XAML. &amp;nbsp;Let me know what I'm missing. &amp;nbsp;THANKS!!&lt;/p&gt;
&lt;p&gt;-zac&lt;/p&gt;
</description></item><item><title>re: Customizing a ToolTip</title><link>http://blogs.msdn.com/devdave/archive/2008/10/18/customizing-a-tooltip.aspx#9460687</link><pubDate>Fri, 06 Mar 2009 00:12:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9460687</guid><dc:creator>rebelBodhi</dc:creator><description>&lt;p&gt;To clear up those 2 errors, you need to set the TargetType for the ControlTemplate, i.e.:&lt;/p&gt;
&lt;p&gt;&amp;lt;ControlTemplate x:Key=&amp;quot;ToolTipTemplate&amp;quot; TargetType=&amp;quot;ToolTip&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;(Got those errors too, thanks to &amp;lt;a href='&lt;a rel="nofollow" target="_new" href="http://www.emadibrahim.com/2008/03/14/silverlight-templatebinding-throwing-an-error/"&gt;http://www.emadibrahim.com/2008/03/14/silverlight-templatebinding-throwing-an-error/&lt;/a&gt;'&amp;gt;this post for the answer&amp;lt;/a&amp;gt;&lt;/p&gt;
</description></item></channel></rss>