<?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/b/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</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Customizing a ToolTip</title><link>http://blogs.msdn.com/b/devdave/archive/2008/10/18/customizing-a-tooltip.aspx#10405035</link><pubDate>Mon, 25 Mar 2013 10:15:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10405035</guid><dc:creator>aaa</dc:creator><description>&lt;p&gt;In Azure as IaaS (Infrastructure as a service) model, dedicated VMs are assigned to you with full control over O/S, updates etc. Generally used for application development, testing and IT operations.&lt;/p&gt;
&lt;p&gt;In Azure as PaaS(Platform as a service) model, Azure controls the VM instance and maintains the environment(O/S, updates etc.), while you are just concerned about your application.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10405035" width="1" height="1"&gt;</description></item><item><title>re: Customizing a ToolTip</title><link>http://blogs.msdn.com/b/devdave/archive/2008/10/18/customizing-a-tooltip.aspx#10230921</link><pubDate>Fri, 28 Oct 2011 07:18:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10230921</guid><dc:creator>Saravanan</dc:creator><description>&lt;p&gt;How to set Contorl&amp;#39;s Height / Width / Watermark as ToolTipService.ToolTip=&amp;quot;{}&amp;quot; ?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10230921" width="1" height="1"&gt;</description></item><item><title>re: Customizing a ToolTip</title><link>http://blogs.msdn.com/b/devdave/archive/2008/10/18/customizing-a-tooltip.aspx#10137608</link><pubDate>Mon, 07 Mar 2011 11:12:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10137608</guid><dc:creator>Marc Roussel</dc:creator><description>&lt;p&gt;Need help.&lt;/p&gt;
&lt;p&gt;I have a stack panel vertical which have a TextBlock and then another StackPanel horizontal with 2 TextBlock.&lt;/p&gt;
&lt;p&gt;the second textblock on the horizontal StackPanel is set to wrap but it doesn&amp;#39;t. &amp;nbsp;Here&amp;#39;s the entire code along with a screenshot that shows what it does. &amp;nbsp;How would you modify it so the Note Text wrap and make the ToolTip grow to show all the text because in 1024 X 768, the ToolTip needs to grow vertically if no space is available to show the Note Text&lt;/p&gt;
&lt;p&gt;StackPanel spContent = new StackPanel() { Orientation = System.Windows.Controls.Orientation.Vertical, VerticalAlignment = System.Windows.VerticalAlignment.Stretch };&lt;/p&gt;
&lt;p&gt;StackPanel spNote = new StackPanel() { Orientation = System.Windows.Controls.Orientation.Horizontal, VerticalAlignment = System.Windows.VerticalAlignment.Stretch };&lt;/p&gt;
&lt;p&gt;TextBlock tbHeaderNote = new TextBlock()&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;FontFamily = new FontFamily(&amp;quot;Courier New&amp;quot;),&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;FontSize = 14,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Margin = new Thickness() { Left = 4 },&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Foreground = new SolidColorBrush(Colors.White),&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;TextWrapping = System.Windows.TextWrapping.Wrap,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Text = &amp;quot;Note &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : &amp;quot; &lt;/p&gt;
&lt;p&gt;};&lt;/p&gt;
&lt;p&gt;TextBlock tbNote = new TextBlock()&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;FontFamily = new FontFamily(&amp;quot;Courier New&amp;quot;),&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;FontSize = 14,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Margin = new Thickness() { Left = 4 },&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Foreground = new SolidColorBrush(Colors.White),&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;TextWrapping = System.Windows.TextWrapping.Wrap, &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Text = ncs.U_Note + Environment.NewLine + Environment.NewLine + Environment.NewLine,&lt;/p&gt;
&lt;p&gt;};&lt;/p&gt;
&lt;p&gt;spNote.Children.Add(tbHeaderNote);&lt;/p&gt;
&lt;p&gt;spNote.Children.Add(tbNote);&lt;/p&gt;
&lt;p&gt;TextBlock tbInfo = new TextBlock()&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;FontFamily = new FontFamily(&amp;quot;Courier New&amp;quot;),&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;FontSize = 14,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Margin = new Thickness() { Left = 4 },&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Foreground = new SolidColorBrush(Colors.White),&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Text = &amp;quot;Interface Control Name : &amp;quot; + ncs.Name + Environment.NewLine +&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;Silverlight Property &amp;nbsp; : &amp;quot; + SLProperty + Environment.NewLine +&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;Step &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : &amp;quot; + ncs.U_ApprovalStepId.ToString() + Environment.NewLine +&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;SAP Form &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : &amp;quot; + SAPForm + Environment.NewLine +&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;SQL Table Field &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: &amp;quot; + SQLTableField + Environment.NewLine +&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;SDK Property &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : &amp;quot; + ncs.U_SAPProperty,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;TextWrapping = TextWrapping.NoWrap,&lt;/p&gt;
&lt;p&gt;};&lt;/p&gt;
&lt;p&gt;spContent.Children.Add(tbInfo);&lt;/p&gt;
&lt;p&gt;spContent.Children.Add(spNote);&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://pages.videotron.com/gear/tooltip.jpg"&gt;pages.videotron.com/.../tooltip.jpg&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10137608" width="1" height="1"&gt;</description></item><item><title>re: Customizing a ToolTip</title><link>http://blogs.msdn.com/b/devdave/archive/2008/10/18/customizing-a-tooltip.aspx#10137424</link><pubDate>Sun, 06 Mar 2011 19:15:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10137424</guid><dc:creator>Marc Roussel</dc:creator><description>&lt;p&gt;Oh I saw the MaxWidth on the border. &amp;nbsp;Removing it solved the problem.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10137424" width="1" height="1"&gt;</description></item><item><title>re: Customizing a ToolTip</title><link>http://blogs.msdn.com/b/devdave/archive/2008/10/18/customizing-a-tooltip.aspx#10137423</link><pubDate>Sun, 06 Mar 2011 19:12:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10137423</guid><dc:creator>Marc Roussel</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;How do you make it so your don&amp;#39;T Wrap the text and it&amp;#39;s larger as I have longer text and I don&amp;#39;T want to Wrap&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10137423" width="1" height="1"&gt;</description></item><item><title>re: Customizing a ToolTip</title><link>http://blogs.msdn.com/b/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;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9460687" width="1" height="1"&gt;</description></item><item><title>re: Customizing a ToolTip</title><link>http://blogs.msdn.com/b/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;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9340351" width="1" height="1"&gt;</description></item><item><title>re: Customizing a ToolTip</title><link>http://blogs.msdn.com/b/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 - MSFT</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;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9007584" width="1" height="1"&gt;</description></item><item><title>re: Customizing a ToolTip</title><link>http://blogs.msdn.com/b/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;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9006916" width="1" height="1"&gt;</description></item><item><title>Silverlight Cream for October 18, 2008 -- #399</title><link>http://blogs.msdn.com/b/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;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9006073" width="1" height="1"&gt;</description></item></channel></rss>