{"id":2780,"date":"2015-01-13T22:30:51","date_gmt":"2015-01-13T22:30:51","guid":{"rendered":"http:\/\/putridparrot.com\/blog\/?p=2780"},"modified":"2015-01-13T22:30:51","modified_gmt":"2015-01-13T22:30:51","slug":"creating-custom-tooltips-in-wpf","status":"publish","type":"post","link":"https:\/\/putridparrot.com\/blog\/creating-custom-tooltips-in-wpf\/","title":{"rendered":"Creating custom tooltips in WPF"},"content":{"rendered":"<p>I needed to display a tooltip and wanted it to look a little fancier than the standard one. <\/p>\n<p>First off, here&#8217;s how we might create a standard tooltip<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;StackPanel Orientation=&quot;Horizontal&quot; ToolTip=&quot;{Binding ItemName}&quot;&gt;\r\n&lt;\/StackPanel&gt;\r\n<\/pre>\n<p>Ofcourse we can also expand a ToolTip to allow us to define more interesting content than just the string, like this<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;StackPanel Orientation=&quot;Horizontal&quot;&gt;\r\n   &lt;StackPanel.ToolTip&gt;\r\n      &lt;ToolTip&gt;\r\n         &lt;!-- UI Elements and Bindings --&gt;\r\n      &lt;\/ToolTip&gt;\r\n   &lt;\/StackPanel.ToolTip&gt;\r\n&lt;\/StackPanel&gt;\r\n<\/pre>\n<p>That&#8217;s all there is to it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I needed to display a tooltip and wanted it to look a little fancier than the standard one. First off, here&#8217;s how we might create a standard tooltip &lt;StackPanel Orientation=&quot;Horizontal&quot; ToolTip=&quot;{Binding ItemName}&quot;&gt; &lt;\/StackPanel&gt; Ofcourse we can also expand a ToolTip to allow us to define more interesting content than just the string, like this &lt;StackPanel [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[13],"tags":[],"class_list":["post-2780","post","type-post","status-publish","format-standard","hentry","category-wpf"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/2780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/comments?post=2780"}],"version-history":[{"count":6,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/2780\/revisions"}],"predecessor-version":[{"id":2789,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/2780\/revisions\/2789"}],"wp:attachment":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/media?parent=2780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/categories?post=2780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/tags?post=2780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}