<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-US"><title type="html">WPF Team Blog</title><subtitle type="html">The official blog of the WPF Team</subtitle><id>http://blogs.msdn.com/b/wpf/atom.aspx</id><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/wpf/" /><link rel="self" type="application/atom+xml" href="http://blogs.msdn.com/b/wpf/atom.aspx" /><generator uri="http://telligent.com" version="5.6.583.14036">Community Server</generator><updated>2010-07-28T15:00:54Z</updated><entry><title>How does WPF WebBrowser Control handle window.external.notify()?</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/wpf/archive/2011/05/27/how-does-wpf-webbrowser-control-handle-window-external-notify.aspx" /><link rel="enclosure" type="application/zip" length="332769" href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-10-16-91-21/WpfHostingWebOCHostingSL.zip" /><id>http://blogs.msdn.com/b/wpf/archive/2011/05/27/how-does-wpf-webbrowser-control-handle-window-external-notify.aspx</id><published>2011-05-27T15:55:00Z</published><updated>2011-05-27T15:55:00Z</updated><content type="html">&lt;p&gt;Every now and then we get some really good questions that make us think. &amp;nbsp;This was one of those questions. Here was the original &lt;a href="https://twitter.com/#!/robertmclaws/status/72477969666408448"&gt;Tweet&lt;/a&gt; that was sent our way.&lt;/p&gt;
&lt;p&gt;For those of you unfamiliar with the context of the question, it comes from a Silverlight point of view. The developer would like to see how the WPF WebBrowser handles the interop communication between a WebBrowser Control and WPF acting as the main container for the app. Silverlight handles the communications between the hosted content and the Silverlight control using the &lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.controls.webbrowser.scriptnotify(VS.95).aspx"&gt;&lt;span style="color: #0000ff;"&gt;WebBrowser.ScriptNotify&lt;/span&gt;&lt;/a&gt; event..&lt;/p&gt;
&lt;p&gt;The WPF WebBrowser control does something a little different. The WPF WebBrowser control uses the &lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.controls.webbrowser.objectforscripting.aspx"&gt;ObjectForScripting&lt;/a&gt; property. This property requires that the object have its &lt;a href="http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.comvisibleattribute.aspx"&gt;ComVisibleAttribute&lt;/a&gt; set to True and you are good to go. Here is an example&amp;hellip;&lt;/p&gt;
&lt;p&gt;In your Xaml:&lt;/p&gt;
&lt;pre class="scroll"&gt;&lt;code class="html"&gt;&amp;lt;WebBrowser x:Name=&amp;rdquo;HtmlHost&amp;rdquo; ObjectForScripting=&amp;rdquo;HtmlInteropClass&amp;rdquo; /&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In your code:&lt;/p&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt;[System.Runtime.InteropServices.ComVisibleAttribute(True)]&lt;br /&gt;
Public Class HtmlInteropClass&lt;br /&gt;
{&lt;br /&gt;
 Public void MyMethod(string SomeValue)&lt;br /&gt;
 {&lt;br /&gt;
  ((MainWindow)Application.Current.MainWindow).SomeTextBox.Text = SomeValue;&lt;br /&gt;
 }&lt;br /&gt;
}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In your JavaScript:&lt;/p&gt;
&lt;pre class="scroll"&gt;&lt;code class="js"&gt;&amp;lt;script type=&amp;rdquo;text/javaScript&amp;rdquo;&amp;gt;&lt;br /&gt;
 Function wpfAppMethod(inputValue) {&lt;br /&gt;
  Window.external.MyMethod(inputValue);&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;One thing to note from the sample code above&amp;hellip; Any ComVisibleAttribute that is set to True is available for use by window.external. This opens up many more opportunities to create better code that can fit your needs more precisely.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ve attached a sample project that will provide a good start. For more reading on the WPF WebBrowser Control, you can start &lt;a href="http://msdn.microsoft.com/en-us/library/cc491073.aspx"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you have any questions or comments, please let me know. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10169121" width="1" height="1"&gt;</content><author><name>TroyMartez</name><uri>http://blogs.msdn.com/TroyMartez/ProfileUrlRedirect.ashx</uri></author><category term="WPF" scheme="http://blogs.msdn.com/b/wpf/archive/tags/WPF/" /><category term="Rich Client" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Rich+Client/" /><category term="Control" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Control/" /><category term="WebBrowser" scheme="http://blogs.msdn.com/b/wpf/archive/tags/WebBrowser/" /></entry><entry><title>SystemColors Reference</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/wpf/archive/2010/11/30/systemcolors-reference.aspx" /><link rel="enclosure" type="application/x-zip-compressed" length="12771" href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-10-09-87-25/SystemColorsSwatch.zip" /><id>http://blogs.msdn.com/b/wpf/archive/2010/11/30/systemcolors-reference.aspx</id><published>2010-12-01T04:21:00Z</published><updated>2010-12-01T04:21:00Z</updated><content type="html">&lt;p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;span style="background: yellow; mso-highlight: yellow;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;WPF exposes a swatch of colors that comprise the current Windows system theme.&amp;nbsp; These are available in the &lt;/span&gt;&lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.systemcolors.aspx" style="FONT-FAMILY: "&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;SystemColors&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt; class as &lt;/span&gt;&lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.media.color.aspx" style="FONT-FAMILY: "&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Colors&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;, &lt;/span&gt;&lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.media.brush.aspx" style="FONT-FAMILY: "&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Brushes&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;, and corresponding &lt;/span&gt;&lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.resourcekey.aspx" style="FONT-FAMILY: "&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;ResourceKeys&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt; (for binding with dynamic notification of changes to these colors, e.g. if the user switches Windows themes).&amp;nbsp; This blog post contains a WPF tool to visually describe what Windows system colors are exposed through WPF and how these SystemColors members change as the Windows theme changes.&amp;nbsp; Screenshots from the tool are contained in the blog post.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="#PT1"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;SystemColors Swatch&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#PT2"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Reference Tables - SystemColors tables for different Windows themes&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#PT3"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;What are the Windows system colors?&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#PT4"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;SystemColors in WPF&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#PT5"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;Overriding SystemColors using ResourceKeys to skin WPF controls&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;a name="PT1"&gt;&lt;/a&gt;1.&amp;nbsp;&amp;nbsp; SystemColors Swatch&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;This graph is intended as a quick reference for control authors.&amp;nbsp; While creating the default Style and template&amp;nbsp;for a control, pick colors from this table that give the desired look across different OS themes.&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;a href="http://blogs.msdn.com/cfs-filesystemfile.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64-SystemColors+Reference/6266.swatch_5F00_Amalgam.png" title="swatch_Amalgam.png" style="FONT-FAMILY: "&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Here's a direct link&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt; you can bookmark and use as a quick reference.&amp;nbsp; (Note: Luna is deprecated and is&amp;nbsp;only available on XP)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="background: yellow; mso-highlight: yellow;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;o:p&gt;&lt;span style="background-color: #ffffff;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/700x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/2248.swatch_5F00_Amalgam.png" border="0" /&gt;&lt;span style="FONT-FAMILY: 'Times New Roman','serif'; COLOR: black; FONT-SIZE: 12pt; mso-fareast-font-family: 'Times New Roman'"&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="BACKGROUND: white; COLOR: black; FONT-SIZE: 12pt; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp; &lt;/p&gt;
&lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;
&lt;h3 class="MsoNormal"&gt;&lt;span style="BACKGROUND: white; COLOR: black; FONT-SIZE: 12pt; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;a name="PT2"&gt;&lt;/a&gt;2&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;.&amp;nbsp;&lt;span style="font-size: small;"&gt;&amp;nbsp; Reference Tables - SystemColors tables for different Windows themes&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: 'Times New Roman','serif'; COLOR: black; FONT-SIZE: 12pt; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div class="MsoNormal"&gt;&lt;span style="background: yellow; mso-highlight: yellow;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;o:p&gt;&lt;span style="background-color: #ffffff;"&gt;&lt;a href="http://blogs.msdn.com/cfs-filesystemfile.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64-SystemColors+Reference/5582.swatch_5F00_Aero.png" title="swatch_Aero.png"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Aero&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoNormal"&gt;&lt;span style="background: yellow; mso-highlight: yellow;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;o:p&gt;&lt;span style="background-color: #ffffff;"&gt;&lt;a href="http://blogs.msdn.com/cfs-filesystemfile.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64-SystemColors+Reference/5187.swatch_5F00_Classic.png" title="swatch_Classic.png"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Classic&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoNormal"&gt;&lt;span style="background: yellow; mso-highlight: yellow;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;o:p&gt;&lt;span style="background-color: #ffffff;"&gt;&lt;a href="http://blogs.msdn.com/cfs-filesystemfile.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64-SystemColors+Reference/3465.swatch_5F00_HC1.png" title="swatch_HC1.png"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;High Contrast #1&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoNormal"&gt;&lt;span style="background: yellow; mso-highlight: yellow;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;o:p&gt;&lt;span style="background-color: #ffffff;"&gt;&lt;a href="http://blogs.msdn.com/cfs-filesystemfile.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64-SystemColors+Reference/6102.swatch_5F00_HC2.png" title="swatch_HC2.png"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;High Contrast #2&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoNormal"&gt;&lt;span style="background: yellow; mso-highlight: yellow;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;o:p&gt;&lt;span style="background-color: #ffffff;"&gt;&lt;a href="http://blogs.msdn.com/cfs-filesystemfile.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64-SystemColors+Reference/5875.swatch_5F00_HCBlack.png" title="swatch_HCBlack.png"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;High Contrast Black&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoNormal"&gt;&lt;span style="background: yellow; mso-highlight: yellow;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;o:p&gt;&lt;span style="background-color: #ffffff;"&gt;&lt;a href="http://blogs.msdn.com/cfs-filesystemfile.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64-SystemColors+Reference/8524.swatch_5F00_HCWhite.png" title="swatch_HCWhite.png"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;High Contrast White&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoNormal"&gt;&lt;span style="background: yellow; mso-highlight: yellow;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;o:p&gt;&lt;span style="background-color: #ffffff;"&gt;&lt;a href="http://blogs.msdn.com/cfs-filesystemfile.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64-SystemColors+Reference/6545.swatch_5F00_LunaBlue.png" title="swatch_LunaBlue.png"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Luna Blue&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoNormal"&gt;&lt;span style="background: yellow; mso-highlight: yellow;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;o:p&gt;&lt;span style="background-color: #ffffff;"&gt;&lt;a href="http://blogs.msdn.com/cfs-filesystemfile.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64-SystemColors+Reference/4010.swatch_5F00_LunaGreen.png" title="swatch_LunaGreen.png"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Luna Olive Green&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoNormal"&gt;&lt;span style="background: yellow; mso-highlight: yellow;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;o:p&gt;&lt;span style="background-color: #ffffff;"&gt;&lt;a href="http://blogs.msdn.com/cfs-filesystemfile.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64-SystemColors+Reference/0131.swatch_5F00_LunaSilver.png" title="swatch_LunaSilver.png"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Luna Silver&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoNormal"&gt;&lt;span style="background: yellow; mso-highlight: yellow;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;o:p&gt;&lt;span style="background-color: #ffffff;"&gt;&lt;a href="http://blogs.msdn.com/cfs-filesystemfile.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64-SystemColors+Reference/4747.swatch_5F00_Royale.png" title="swatch_Royale.png"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Royale&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;span style="background: yellow; mso-highlight: yellow;"&gt;&lt;/span&gt;&lt;o:p&gt;&lt;span style="background-color: #ffff00;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;strong&gt;&lt;span style="font-size: medium;"&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64-SystemColors+Reference/3482.SystemColorsSwatch.zip"&gt;Here's the source&lt;/a&gt; &lt;/span&gt;&lt;/strong&gt;for the tool I used to create these tables, and it is also attached to the blog post.&amp;nbsp; Check it out!&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h3 class="MsoNormal"&gt;&lt;span style="COLOR: black; FONT-SIZE: 12pt; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri"&gt;&lt;a name="PT3"&gt;&lt;/a&gt;3&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;.&amp;nbsp;&amp;nbsp; What are the Windows system colors?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: black; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri;"&gt;Windows uses a set of colors to draw UI elements like highlight borders, text, shadows, control chrome, window frames, etc.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;These colors can be retrieved and set using Windows APIs like &lt;/span&gt;&lt;span style="color: black; mso-fareast-font-family: 'Times New Roman';"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms724371(VS.85).aspx"&gt;&lt;span style="color: blue;"&gt;GetSysColor&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="color: black; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri;"&gt;.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;WPF applications expose these colors through managed wrappers as we&amp;rsquo;ll see in the SystemColors class.&lt;/span&gt;&lt;span style="color: black; mso-fareast-font-family: 'Times New Roman';"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: black; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri;"&gt;Each Windows theme specifies the system colors differently.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;You can tweak the system colors yourself to create your own Windows theme, and WPF is able to pick up the colors the user has set in their theme so that WPF controls render to match the current theme.&lt;/span&gt;&lt;span style="color: black; mso-fareast-font-family: 'Times New Roman';"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: black; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri;"&gt;To personalize your system colors on Win7, bring up the Appearance and Personalization config either through Desktop or Control Panel:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="mso-no-proof: yes;"&gt;&lt;v:imagedata src="file:///C:\Users\pafinnig\AppData\Local\Temp\1\msohtmlclip1\01\clip_image002.png"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/v:imagedata&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;img height="406" width="360" src="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/3146.personalizeSystemColors1.png" border="0" /&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;C&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;lick on &amp;ldquo;Window Color&amp;rdquo; to customize the window glass color and other system colors:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="mso-no-proof: yes;"&gt;&lt;v:imagedata src="file:///C:\Users\pafinnig\AppData\Local\Temp\1\msohtmlclip1\01\clip_image004.png"&gt;&lt;/v:imagedata&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/8420.personalizeSystemColors2.png" border="0" /&gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;C&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;hoose &amp;ldquo;Advanced appearance settings&amp;hellip;&amp;rdquo;:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="mso-no-proof: yes;"&gt;&lt;v:imagedata src="file:///C:\Users\pafinnig\AppData\Local\Temp\1\msohtmlclip1\01\clip_image006.png"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/v:imagedata&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/0841.personalizeSystemColors3.png" border="0" /&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;H&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;ere you can configure the different system colors for Windows to use.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;The combo box allows you to select a UI element, and the color picker enables you to assign colors and other properties for it:&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="mso-no-proof: yes;"&gt;&lt;v:imagedata src="file:///C:\Users\pafinnig\AppData\Local\Temp\1\msohtmlclip1\01\clip_image008.png"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/v:imagedata&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/7608.personalizeSystemColors4.png" border="0" /&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;I&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;f you play around with these settings, you&amp;rsquo;ll see native Windows applications and WPF applications transform by picking up on the color settings.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;For example, if we change the black color for &amp;ldquo;3D Objects&amp;rdquo; to purple, then the foreground of certain UI elements picks this up:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="mso-no-proof: yes;"&gt;&lt;v:imagedata src="file:///C:\Users\pafinnig\AppData\Local\Temp\1\msohtmlclip1\01\clip_image009.png"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/v:imagedata&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/650x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/8750.windowsSystemColorsInAction.png" border="0" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;I&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;n general, don&amp;rsquo;t worry about specifics here, like which settings affect which controls.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;Just be aware that WPF controls bind to many of the colors and other parameters specified here.&amp;nbsp; (Note: While WPF apps dynamically assume the new system colors when the Windows theme changes, the same cannot be said for tweaking individual system colors.&amp;nbsp; If you are using a WPF app to calibrate changes to the Windows system colors, you should recycle the app between sets of changes.)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;span style="COLOR: black; FONT-SIZE: 12pt; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;h2 class="MsoNormal"&gt;&lt;span style="COLOR: black; FONT-SIZE: 12pt; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri"&gt;&lt;a name="PT4"&gt;&lt;/a&gt;4&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;.&amp;nbsp;&amp;nbsp; SystemColors in WPF&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: black; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri;"&gt;WPF exposes Windows system colors through the &lt;/span&gt;&lt;span style="color: black; mso-fareast-font-family: 'Times New Roman';"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.systemcolors.aspx"&gt;&lt;span style="color: blue;"&gt;SystemColors&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="color: black; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri;"&gt; class as static &lt;/span&gt;&lt;span style="color: black; mso-fareast-font-family: 'Times New Roman';"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.media.color.aspx"&gt;&lt;span style="color: blue;"&gt;Color&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="color: black; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri;"&gt;, &lt;/span&gt;&lt;span style="color: black; mso-fareast-font-family: 'Times New Roman';"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.media.brush.aspx"&gt;&lt;span style="color: blue;"&gt;Brush&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="color: black; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri;"&gt;, and &lt;/span&gt;&lt;span style="color: black; mso-fareast-font-family: 'Times New Roman';"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.resourcekey.aspx"&gt;&lt;span style="color: blue;"&gt;ResourceKey&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="color: black; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri;"&gt; properties.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;That is, for each unique system color exposed by WPF, there is a corresponding Color, ResourceKey for the Color, SolidColorBrush, and ResourceKey for the SolidColorBrush.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;If you don&amp;rsquo;t care about dynamic change notification, then in your XAML you can bind to the Brush directly:&lt;/span&gt;&lt;span style="color: black; mso-fareast-font-family: 'Times New Roman';"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="padding-left: 30px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;Button&lt;/span&gt;&lt;span style="color: red;"&gt; Background&lt;/span&gt;&lt;span style="color: blue;"&gt;="{&lt;/span&gt;&lt;span style="color: #a31515;"&gt;x&lt;/span&gt;&lt;span style="color: blue;"&gt;:&lt;/span&gt;&lt;span style="color: #a31515;"&gt;Static&lt;/span&gt;&lt;span style="color: red;"&gt; SystemColors&lt;/span&gt;&lt;span style="color: blue;"&gt;.DesktopBrush}" .../&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="COLOR: black; FONT-SIZE: 12pt; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri"&gt;&lt;o:p&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: black; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: black; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri;"&gt;However, control authors using SystemColors will likely want to bind to the resource keys instead so that they receive dynamic change notification.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;For example, if you are retemplating Button but wanted to basically match the look of a Windows button, you could bind a template element&amp;rsquo;s Background to SystemColors.ControlBrushKey using a &lt;/span&gt;&lt;span style="color: black; mso-fareast-font-family: 'Times New Roman';"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms748942.aspx"&gt;&lt;span style="color: blue;"&gt;DynamicResource&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="color: black; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri;"&gt; reference:&lt;/span&gt;&lt;span style="color: black; mso-fareast-font-family: 'Times New Roman';"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="padding-left: 30px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;ControlTemplate&lt;/span&gt;&lt;span style="color: red;"&gt; TargetType&lt;/span&gt;&lt;span style="color: blue;"&gt;="Button"&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="padding-left: 30px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;Grid&lt;/span&gt;&lt;span style="color: blue;"&gt; ...&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="padding-left: 30px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;Border&lt;/span&gt;&lt;span style="color: red;"&gt; Background&lt;/span&gt;&lt;span style="color: blue;"&gt;="{&lt;/span&gt;&lt;span style="color: #a31515;"&gt;DynamicResource&lt;/span&gt;&lt;span style="color: blue;"&gt; {&lt;/span&gt;&lt;span style="color: #a31515;"&gt;x&lt;/span&gt;&lt;span style="color: blue;"&gt;:&lt;/span&gt;&lt;span style="color: #a31515;"&gt;Static&lt;/span&gt;&lt;span style="color: red;"&gt; SystemColors&lt;/span&gt;&lt;span style="color: blue;"&gt;.ControlBrushKey}}" ...&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="padding-left: 30px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #a31515;"&gt;ContentPresenter&lt;/span&gt;&lt;span style="color: blue;"&gt; /&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="padding-left: 30px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515;"&gt;Border&lt;/span&gt;&lt;span style="color: blue;"&gt;&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="padding-left: 30px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515;"&gt;Grid&lt;/span&gt;&lt;span style="color: blue;"&gt;&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="padding-left: 30px;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: #a31515;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #a31515;"&gt;ControlTemplate&lt;/span&gt;&lt;span style="color: blue;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="COLOR: black; FONT-SIZE: 12pt; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri"&gt;&lt;o:p&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: black; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: black; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri;"&gt;By using the correct SystemColor (use the chart at the beginning of this blog post) in a control&amp;rsquo;s template, the control will appear more natural under the different Windows themes (and even under many custom themes).&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;That way, instead of having to craft different templates for the different Windows themes to pick up theme-specific color settings, you achieve a theme-specific look automatically.&lt;/span&gt;&lt;span style="color: black; mso-fareast-font-family: 'Times New Roman';"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;span style="font-family: Arial;"&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoListParagraph"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;span style="font-family: Times New Roman;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h3 class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Times New Roman','serif'; COLOR: black; FONT-SIZE: 12pt; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;a name="PT5"&gt;&lt;/a&gt;5&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;.&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Calibri;"&gt;&lt;span style="color: black; font-size: 12pt; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;Overriding SystemColors using ResourceKeys to skin WPF controls&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: black; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri;"&gt;We&amp;rsquo;ve mentioned that stock WPF controls bind to certain SystemColors in their templates to achieve a look that matches up nicely with the current Windows theme.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;In some cases you may want to change the way these stock controls look without having to retemplate them.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;Styles can get you pretty far and allow you to set properties like Background, BorderBrush, BorderThickness, Margin, Padding, Foreground, etc.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;Beyond that, you can use Triggers in Styles to set these properties differently for different control states.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;However, some developers have gone the route of overriding SystemColors to achieve the desired look for these elements.&lt;/span&gt;&lt;span style="color: black; mso-fareast-font-family: 'Times New Roman';"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: black; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: black; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri;"&gt;To override the system-supplied ControlDark color, for example, create a SolidColorBrush whose key is SystemColors.ControlDarkKey and place it in the target control&amp;rsquo;s ResourceDictionary (or a ResourceDictionary walked by that control during resource resolution).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: black; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; mso-fareast-font-family: 'Times New Roman';"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: black; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri;"&gt;Here we should state that a control requiring you to go down this road is poorly designed (including parts of the WPF stock controls).&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;Styles should be sufficient for basic reskinning and colorization.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;We don&amp;rsquo;t advise using this practice, and we are studying this problem so that we may provide a better mechanism.&lt;/span&gt;&lt;span style="color: black; mso-fareast-font-family: 'Times New Roman';"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: black; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: black; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri;"&gt;Further reading on this from Szymon Kobalczyk's blog:&lt;/span&gt;&lt;span style="color: black; mso-fareast-font-family: 'Times New Roman';"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: 'Times New Roman','serif'; COLOR: black; FONT-SIZE: 12pt; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;a href="http://geekswithblogs.net/kobush/archive/2007/03/25/109753.aspx"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;http://geekswithblogs.net/kobush/archive/2007/03/25/109753.aspx&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: black; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: black; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: black; mso-fareast-font-family: 'Times New Roman';"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: arial,helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="color: black; mso-ascii-font-family: Calibri; mso-fareast-font-family: 'Times New Roman'; mso-hansi-font-family: Calibri; mso-bidi-font-family: Calibri;"&gt;The sample code for this tool is attached.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;Happy skinning!&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10098725" width="1" height="1"&gt;</content><author><name>PatrickFinnigan</name><uri>http://blogs.msdn.com/PatrickFinnigan/ProfileUrlRedirect.ashx</uri></author><category term="WPF" scheme="http://blogs.msdn.com/b/wpf/archive/tags/WPF/" /><category term="Templating" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Templating/" /><category term="Skinning" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Skinning/" /><category term="SystemColors" scheme="http://blogs.msdn.com/b/wpf/archive/tags/SystemColors/" /><category term="Styles" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Styles/" /><category term="Controls" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Controls/" /><category term="Themes" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Themes/" /></entry><entry><title>Working Around RibbonWindow Dimensions Issues When Targeting .NET 3.5</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/wpf/archive/2010/10/29/working-around-ribbonwindow-dimensions-issues-when-targeting-net-3-5.aspx" /><link rel="enclosure" type="application/x-zip-compressed" length="12391" href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-10-08-32-74/RibbonWindowDimensionWorkarounds.zip" /><id>http://blogs.msdn.com/b/wpf/archive/2010/10/29/working-around-ribbonwindow-dimensions-issues-when-targeting-net-3-5.aspx</id><published>2010-10-29T21:34:00Z</published><updated>2010-10-29T21:34:00Z</updated><content type="html">&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;For those targeting .NET 3.5, you will notice that RibbonWindow&amp;rsquo;s Height, Width, Left, and Top properties are a little funky and can be misreported.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;This article explains why RibbonWindow on .NET 3.5 has these issues, how the issues manifest, and how to work around them.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;.NET 4.0 has no known issues with respect to RibbonWindow dimensions.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;Window dimensions are a fragile area and trying to fix this at the RibbonWindow level leads to side effects, so our recommendation is to target .NET 4.0 for Ribbon apps or else use the simple workarounds described in this article.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;h2 class="MsoNoSpacing" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: medium;"&gt;Why RibbonWindow reports dimensions inconsistently for .NET 3.5&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;RibbonWindow derives from Window.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;In .NET 3.5, there was an assumption that dimensions would be consistent for all native window instances of a given native style.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;This was fine for normal WPF Windows but is invalid for windows like RibbonWindow that use WindowChrome because these windows do not have the same margins between the client and non-client RECTs:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="mso-no-proof: yes;"&gt;&lt;v:shapetype coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f" id="_x0000_t75"&gt;&lt;v:stroke joinstyle="miter"&gt;&lt;/v:stroke&gt;&lt;v:formulas&gt;&lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @0 1 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum 0 0 @1"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @2 1 2"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @3 21600 pixelWidth"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @3 21600 pixelHeight"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @0 0 1"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @6 1 2"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @7 21600 pixelWidth"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @8 21600 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @7 21600 pixelHeight"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @10 21600 0"&gt;&lt;/v:f&gt;&lt;/v:formulas&gt;&lt;v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"&gt;&lt;/v:path&gt;&lt;o:lock v:ext="edit" aspectratio="t"&gt;&lt;/o:lock&gt;&lt;/v:shapetype&gt;&lt;v:imagedata src="file:///C:\Users\pafinnig\AppData\Local\Temp\1\msohtmlclip1\01\clip_image001.png"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/v:imagedata&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/707x449/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/0447.clientVersusWindowRect.png" border="0" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;Due to this assumption, RibbonWindow.Left/Height/Width/Height get reported incorrectly and have side effects when set programmatically:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;o:p&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/310x257/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/6064.dimensionDifferences.png" border="0" /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;In this screenshot, ActualWidth/ActualHeight/EffectiveLeft/EffectiveTop show the correct dimensions of the RibbonWindow.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;Width/Height/Left/Top are reported incorrectly.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;So where do these deltas in value come from?&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;Simple: they are the differences between the client RECT and the window RECT for a normal native window of a given native style (the gray shaded area in the first picture).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;These exact dimensions can be determined from &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.shell.systemparameters2.windownonclientframethickness.aspx"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;SystemParamaters2.WindowNonClientFrameThickness&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;In the screen capture, we are running under the &amp;ldquo;Classic&amp;rdquo; theme, which reports the &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.thickness.aspx"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Thickness&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt; 5, 29, 5, 5 (left, top, right, bottom) for WindowNonClientFrameThickness.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;RibbonWindow.Width is reported 10 pixels too large because it assumes it should add the system default 5 pixels for the left non-client edge and 5 pixels for the right non-client edge, when in reality RibbonWindow&amp;rsquo;s non-client frame has Thickness 0,0,0,0.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;If you look at the other dimensions here and then at SystemParameters2.WindowNonClientFrameThickness for the system defaults, it makes sense why these dimension parameters are reported the way they are for RibbonWindow on .NET 3.5.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;.NET 4.0 calls &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms633519(VS.85).aspx"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;GetWindowRect&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt; for the real HWND instead of some system default, and thus reports and sets Height/Width/Left/Top correctly.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;h2 class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;span style="font-size: medium;"&gt;Getting the effective RibbonWindow dimensions&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;/h2&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;For RibbonWindow on .NET 3.5, use ActualWidth and ActualHeight to read the width and height values of the RibbonWindow.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;These values come from &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.uielement.rendersize.aspx"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;UIElement.RenderSize&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;, so RibbonWindow&amp;rsquo;s abnormal lack of non-client frame does not matter.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;For reading left and top values, calculate the EffectiveLeft and EffectiveTop values.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;These were shipped as APIs in Ribbon RTM (July 2010), but have been removed from the Ribbon October 2010 update based on feedback.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;We want folks to eventually move to .NET 4.0 and beyond to take advantage of fixes for issues like this.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;For those still targeting .NET 3.5, it only takes a few lines of code to add EffectiveLeft and EffectiveTop properties to your window class.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;The attached sample project contains code for this, but in essence you just need to add WindowNonClientFrameThickness.Left to RibbonWindow.Left and add WindowNonClientFrameThickness.Top to RibbonWindow.Top when reporting Left and Top dimensions, respectively.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;h2 class="MsoNoSpacing"&gt;&lt;span style="font-size: medium;"&gt;&lt;span style="font-family: Calibri;"&gt;Setting RibbonWindow dimensions programmatically&lt;/span&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;To effectively set RibbonWindow dimensions, we need to use interop.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;If you try to set dimension properties directly then you will see weird side effects.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;For example, setting RibbonWindow.Width will make RibbonWindow.Height grow programmatically on .NET 3.5.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;As another manifestation, setting RibbonWindow.Left will shrink RibbonWindow.Top by a few pixels.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;Here again, the degree of transformation comes from SystemParameters2.WindowNonClientFrameThickness due to assumptions about the non-client frame.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;It&amp;rsquo;s actually quite easy to work around this, but we need to use a few lines of interop.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms633545(VS.85).aspx"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;SetWindowPos&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt; is the Win32 function we need to programmatically set both position and size of our RibbonWindow.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;When setting width or height, first set the properties directly and then call SetWindowPos with the resultant values:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; font-size: 8pt; mso-bidi-font-size: 9.5pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: green;"&gt;// set height to 400&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: blue;"&gt;this&lt;/span&gt;.Height = 400;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: #2b91af;"&gt;IntPtr&lt;/span&gt; hwnd = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;WindowInteropHelper&lt;/span&gt;(&lt;span style="color: blue;"&gt;this&lt;/span&gt;).Handle;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: #2b91af;"&gt;NativeMethods&lt;/span&gt;.SetWindowPos(hwnd, &lt;span style="color: #2b91af;"&gt;IntPtr&lt;/span&gt;.Zero, (&lt;span style="color: blue;"&gt;int&lt;/span&gt;)&lt;span style="color: blue;"&gt;this&lt;/span&gt;.EffectiveLeft, (&lt;span style="color: blue;"&gt;int&lt;/span&gt;)&lt;span style="color: blue;"&gt;this&lt;/span&gt;.EffectiveTop, (&lt;span style="color: blue;"&gt;int&lt;/span&gt;)&lt;span style="color: blue;"&gt;this&lt;/span&gt;.Width, (&lt;span style="color: blue;"&gt;int&lt;/span&gt;)&lt;span style="color: blue;"&gt;this&lt;/span&gt;.Height, &lt;span style="color: #2b91af;"&gt;SWP&lt;/span&gt;.NOZORDER | &lt;span style="color: #2b91af;"&gt;SWP&lt;/span&gt;.NOACTIVATE);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;When setting left or top, just call SetWindowPos directly:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: 8pt; mso-bidi-font-size: 11.0pt;"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: green;"&gt;// set left to 300&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #2b91af; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;IntPtr&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt; hwnd = &lt;span style="color: blue;"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af;"&gt;WindowInteropHelper&lt;/span&gt;(&lt;span style="color: blue;"&gt;this&lt;/span&gt;).Handle;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color: #2b91af;"&gt;NativeMethods&lt;/span&gt;.SetWindowPos(hwnd, &lt;span style="color: #2b91af;"&gt;IntPtr&lt;/span&gt;.Zero, 300, (&lt;span style="color: blue;"&gt;int&lt;/span&gt;)&lt;span style="color: blue;"&gt;this&lt;/span&gt;.EffectiveTop, (&lt;span style="color: blue;"&gt;int&lt;/span&gt;)Width, (&lt;span style="color: blue;"&gt;int&lt;/span&gt;)Height, &lt;span style="color: #2b91af;"&gt;SWP&lt;/span&gt;.NOZORDER | &lt;span style="color: #2b91af;"&gt;SWP&lt;/span&gt;.NOACTIVATE);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;Note that with these changes, RibbonWindow.Width and .Height are reported the same as .ActualWidth and .ActualHeight.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;This code (and some test code to drive it) is contained in the attached sample project.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10083274" width="1" height="1"&gt;</content><author><name>PatrickFinnigan</name><uri>http://blogs.msdn.com/PatrickFinnigan/ProfileUrlRedirect.ashx</uri></author><category term="WPF" scheme="http://blogs.msdn.com/b/wpf/archive/tags/WPF/" /><category term="Ribbon" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Ribbon/" /><category term="RibbonWindow" scheme="http://blogs.msdn.com/b/wpf/archive/tags/RibbonWindow/" /><category term="EffectiveLeft" scheme="http://blogs.msdn.com/b/wpf/archive/tags/EffectiveLeft/" /><category term="EffectiveTop" scheme="http://blogs.msdn.com/b/wpf/archive/tags/EffectiveTop/" /><category term="Width" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Width/" /><category term="Height" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Height/" /><category term="Dimensions" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Dimensions/" /></entry><entry><title>Enabling ClearType for Ribbon Applications</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/wpf/archive/2010/10/29/enabling-cleartype-for-ribbon-applications.aspx" /><link rel="enclosure" type="application/x-zip-compressed" length="10840" href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-10-08-31-77/RibbonClearTypeSamples.zip" /><id>http://blogs.msdn.com/b/wpf/archive/2010/10/29/enabling-cleartype-for-ribbon-applications.aspx</id><published>2010-10-29T18:51:00Z</published><updated>2010-10-29T18:51:00Z</updated><content type="html">&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;The Ribbon RTM release was built against .NET 3.5, but our&amp;nbsp;&lt;a href="http://blogs.msdn.com/b/wpf/archive/2010/10/21/update-microsoft-ribbon-for-wpf-october-2010.aspx" title="October 2010 release of Ribbon"&gt;October 2010 release of Ribbon&lt;/a&gt;&amp;nbsp;includes both .NET 3.5 and .NET 4.0 Ribbon DLLs.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;With the v4.0 Ribbon, we have enabled ClearType on all of the Ribbon controls using &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.media.renderoptions.cleartypehint.aspx"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;RenderOptions.ClearTypeHint&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;WPF applications using RibbonWindow must also opt-in to enable ClearType for all content below the Ribbon.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;This article describes ClearType technology and requirements and then specifies how a WPF Ribbon application enables ClearType.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;We refer to RibbonWindow and Ribbon applications specifically, but similar steps to enable ClearType apply for any WPF app that uses &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.shell.windowchrome.aspx"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;WindowChrome&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpFirst"&gt;&lt;span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;I.&lt;/span&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;What is ClearType and where is it available?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpMiddle"&gt;&lt;span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;II.&lt;/span&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;Why is it necessary to opt in to ClearType when using RibbonWindow in Aero theme?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpMiddle"&gt;&lt;span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;III.&lt;/span&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;How WPF Ribbon achieves ClearType&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpMiddle"&gt;&lt;span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;IV.&lt;/span&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;Example: Enable ClearType for body text of RibbonWindow&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpMiddle"&gt;&lt;span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;V.&lt;/span&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;IRTs and ClearTypeHint&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpMiddle"&gt;&lt;span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;VI.&lt;/span&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;Determining if text is rendering as ClearType&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpMiddle"&gt;&lt;span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;VII.&lt;/span&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;Conditional Compilation of ClearType for .NET 4.0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpMiddle"&gt;&lt;span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;VIII.&lt;/span&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;Sample Code &amp;amp; Related Links&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 class="MsoListParagraphCxSpMiddle"&gt;&lt;span style="font-size: medium;"&gt;&lt;span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"&gt;&lt;span style="mso-list: Ignore;"&gt;&lt;span style="font-size: xx-small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;h2 class="MsoListParagraphCxSpMiddle"&gt;&lt;span style="font-size: medium;"&gt;&lt;span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"&gt;&lt;span style="mso-list: Ignore;"&gt;I.&lt;span style="line-height: normal; font-variant: normal; font-style: normal; font-family: 'Times New Roman'; font-weight: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="text-decoration: underline;"&gt;What is ClearType and where is it available?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;ClearType is a subpixel anti-aliasing technique for improving text smoothness.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;Wikipedia has a nice overview of the technology &lt;/span&gt;&lt;a href="http://en.wikipedia.org/wiki/ClearType"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;here&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;WPF supports ClearType and extends ClearType in .NET 4 by allowing app developers to electively use ClearType on surfaces that are otherwise considered transparent and hence inappropriate for ClearType.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;Read more about WPF support for ClearType &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms749295.aspx"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;here&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;ClearType support in WPF has a couple requirements:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Calibri;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="text-decoration: underline;"&gt;Opaque&lt;b style="mso-bidi-font-weight: normal"&gt; &lt;/b&gt;surface&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div class="MsoNoSpacing"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;span style="font-size: small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;ClearType is incompatible with alpha blending, so text cannot render as ClearType on top of a transparent background.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;In .NET 4.0, ClearTypeHint allows developers to enable ClearType where it is otherwise disabled, though this could make text worse or cause rendering issues when used over a non-opaque background.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="text-decoration: underline;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;span style="font-size: small;"&gt;OS support&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div class="MsoNoSpacing"&gt;&lt;span style="text-decoration: underline;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;span style="font-size: small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;ClearType is available on all Windows OS&amp;rsquo;s where WPF runs, starting with Windows XP.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;However, ClearType is only enabled by default on Vista &amp;amp; later.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;So, Windows XP users must go through Control Panel to enable ClearType.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;More information is available in &lt;/span&gt;&lt;a href="http://windowsclient.net/wpf/white-papers/wpftextclarity.aspx"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;this white paper&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt; on WPF text clarity.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;Here is some text rendering as ClearType (shown at 800% magnification):&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;img height="256" width="575" src="http://blogs.msdn.com/resized-image.ashx/__size/749x323/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/5226.bodyTextClearType.png" border="0" /&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;Notice the red and the blue hues.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;These indicate the text is rendering on subpixel boundaries.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;Rendering this text on subpixel boundaries gives 3x higher horizontal resolution than rendering on pixel boundaries, although there is a chromatic cost &amp;ndash; some color is introduced to create the smoothing effect.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;This snapshot was taken at 800% magnification, and when I zoom out to normal resolution the red and blue hues are unnoticeable and you see smooth text.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri;"&gt;&lt;span style="font-size: medium;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;h2 class="MsoListParagraph"&gt;&lt;span style="font-size: medium;"&gt;&lt;span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"&gt;&lt;span style="mso-list: Ignore;"&gt;&lt;span style="font-family: Calibri;"&gt;II.&lt;/span&gt;&lt;span style="line-height: normal; font-variant: normal; font-style: normal; font-family: 'Times New Roman'; font-weight: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Calibri;"&gt;&lt;span style="text-decoration: underline;"&gt;Why is it necessary to opt in to ClearType when using RibbonWindow in Aero theme?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Normal WPF 4.0 Window will support ClearType by default, so you get it for free.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;However, if you are using RibbonWindow, you need to opt in using the &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.media.renderoptions.cleartypehint.aspx"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;RenderOptions.ClearTypeHint&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; attached property (System.Windows.Media namespace, PresentationCore.dll).&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;This is necessary because RibbonWindow extends glass into the client area using &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/aa969512(VS.85).aspx"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;DwmExtendFrameIntoClientArea&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;(RibbonWindow claims the entire native window as client area so that it can draw the &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/dd940502(VS.85).aspx"&gt;&lt;span style="COLOR: windowtext; TEXT-DECORATION: none; text-underline: none"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Quick Access Toolbar&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt; in what is normally non-client area.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;Therefore, RibbonWindow must extend glass into the client area to attain the appearance of a normal Aero window.)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;It is only necessary for RibbonWindow apps to set RenderOptions.ClearTypeHint for their Aero themes, but setting ClearTypeHint.Enabled for all themes shouldn&amp;rsquo;t hurt.&lt;/span&gt;&lt;/span&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;h2 class="MsoListParagraph"&gt;&lt;span style="font-size: medium;"&gt;&lt;span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"&gt;&lt;span style="mso-list: Ignore;"&gt;&lt;span style="font-family: Calibri;"&gt;III.&lt;/span&gt;&lt;span style="line-height: normal; font-variant: normal; font-style: normal; font-family: 'Times New Roman'; font-weight: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Calibri;"&gt;&lt;span style="text-decoration: underline;"&gt;How WPF Ribbon achieves ClearType&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;All of the WPF Ribbon controls render as ClearType as long as they are rendering against solid backgrounds (most controls are).&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;Examine this screenshot:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&amp;nbsp;&lt;img height="420" width="742" src="http://blogs.msdn.com/resized-image.ashx/__size/1162x676/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/5047.ribbonTextClearTypeVersusGrayscale.png" border="0" /&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="mso-no-proof: yes"&gt;&lt;v:imagedata src="file:///C:\Users\pafinnig\AppData\Local\Temp\1\msohtmlclip1\01\clip_image003.png"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/v:imagedata&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;Notice how the &amp;ldquo;Home&amp;rdquo; RibbonTab is rendering as ClearType with warm and cold hues, while the RibbonTitlePanel&amp;rsquo;s text is using grayscale anti-aliasing.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;This screenshot was taken on Win7 Aero, and the RibbonTitlePanel renders directly on glass, so it doesn&amp;rsquo;t support ClearType.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;The grayscale text is choppier, while ClearType offers a general improvement in text clarity.&amp;nbsp; The text sharpening provided by ClearType is a cumulative effect, so&amp;nbsp;the improvement in clarity becomes more evident at the document/app level.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;The &amp;ldquo;Home&amp;rdquo; tab has ClearType &amp;ldquo;because the v4.0 Template for RibbonTabHeader sets RenderOptions.ClearTypeHint=&amp;ldquo;Enabled&amp;rdquo; on its &amp;ldquo;InnerBorder&amp;rdquo; element.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;Other Ribbon controls set ClearTypeHint in their templates also, and the Ribbon sample apps (e.g. RibbonWindowSample.exe) set ClearTypeHint similarly in their XAML.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;h2 class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;span style="font-size: medium;"&gt;&lt;span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"&gt;&lt;span style="mso-list: Ignore;"&gt;&lt;span style="font-family: Calibri;"&gt;IV.&lt;/span&gt;&lt;span style="line-height: normal; font-variant: normal; font-style: normal; font-family: 'Times New Roman'; font-weight: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Calibri;"&gt;&lt;span style="text-decoration: underline;"&gt;Example: Enable ClearType for body text of RibbonWindow&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;While Ribbon is fully ClearType-enabled, an app using Ribbon must opt-in to ClearType for the Aero theme.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;To achieve this, we simply make sure RenderOptions.ClearTypeHint=&amp;ldquo;Enabled&amp;rdquo; is set wherever text is hosted.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;Examine the following XAML:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;ribbon&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;:&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;RibbonWindow&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: red; FONT-SIZE: 9.5pt"&gt; &lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;...&amp;gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Grid&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: red; FONT-SIZE: 9.5pt"&gt; x&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;:&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: red; FONT-SIZE: 9.5pt"&gt;Name&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;="LayoutRoot" ...&amp;gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;ribbon&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;:&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Ribbon&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: red; FONT-SIZE: 9.5pt"&gt; x&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;:&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: red; FONT-SIZE: 9.5pt"&gt;Name&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;="Ribbon" ... /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Border&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: red; FONT-SIZE: 9.5pt"&gt; Grid.Row&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;="1"&amp;gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;StackPanel&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;TextBlock&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: red; FONT-SIZE: 9.5pt"&gt; Text&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;="ClearType ENABLED."&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: red; FONT-SIZE: 9.5pt"&gt; &lt;b style="mso-bidi-font-weight: normal"&gt;RenderOptions.ClearTypeHint&lt;/b&gt;&lt;/span&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;="Enabled"&lt;/span&gt;&lt;/b&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;/&amp;gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;TextBlock&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: red; FONT-SIZE: 9.5pt"&gt; Text&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;="ClearType OFF."/&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;StackPanel&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Border&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Grid&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;ribbon&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;:&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;RibbonWindow&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;Running this on Win7 Aero produces the following text rendering:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="mso-no-proof: yes"&gt;&lt;v:imagedata src="file:///C:\Users\pafinnig\AppData\Local\Temp\1\msohtmlclip1\01\clip_image005.png"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/v:imagedata&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;img height="406" width="665" src="http://blogs.msdn.com/resized-image.ashx/__size/811x503/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/3005.clearTypeEnabledVsOff.png" border="0" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;Notice ClearType rendering in the top TextBlock, which opts in to ClearType.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;Besides the chromatic differences, from this screenshot it&amp;rsquo;s not immediately obvious what improvements ClearType brings to the table.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;Bear in mind that ClearType rendering creates an accumulative effect to improve general text crispness.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;Generally one should set RenderOptions.ClearTypeHint=&amp;ldquo;Enabled&amp;rdquo; at some root element, since the setting propagates down the visual tree unless another IRT (Intermediate Render Target, see next section) gets in the way.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;For example:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;ribbon&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;:&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;RibbonWindow&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: red; FONT-SIZE: 9.5pt"&gt; &lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;...&amp;gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Grid&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: red; FONT-SIZE: 9.5pt"&gt; &lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;...&amp;gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;ribbon&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;:&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Ribbon&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: red; FONT-SIZE: 9.5pt"&gt; &lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;.../&amp;gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Border&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: red; FONT-SIZE: 9.5pt"&gt; Grid.Row&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;="1"&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: red; FONT-SIZE: 9.5pt"&gt; &lt;b style="mso-bidi-font-weight: normal"&gt;RenderOptions.ClearTypeHint&lt;/b&gt;&lt;/span&gt;&lt;b style="mso-bidi-font-weight: normal"&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;="Enabled"&lt;/span&gt;&lt;/b&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;StackPanel&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;TextBlock&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;My app&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;TextBlock&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Button&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: red; FONT-SIZE: 9.5pt"&gt; Width&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;="Auto"&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: red; FONT-SIZE: 9.5pt"&gt; HorizontalAlignment&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;="Left"&amp;gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;body has&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Button&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Label&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;ClearType!&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Label&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;StackPanel&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Border&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;Grid&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt;&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; FONT-SIZE: 9.5pt"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;ribbon&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;:&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: #a31515; FONT-SIZE: 9.5pt"&gt;RibbonWindow&lt;/span&gt;&lt;span style="FONT-FAMILY: Consolas; COLOR: blue; FONT-SIZE: 9.5pt"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&amp;nbsp;&lt;img height="476" width="583" src="http://blogs.msdn.com/resized-image.ashx/__size/805x710/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/3531.appBodyHasClearType.png" border="0" /&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;Notice that we set ClearTypeHint=&amp;ldquo;Enabled&amp;rdquo; on the Border element &lt;b style="mso-bidi-font-weight: normal"&gt;below the Ribbon&lt;/b&gt; rather than on the parent Grid that contains everything.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;This was deliberate &amp;ndash; the Ribbon&amp;rsquo;s quick access toolbar and title draw over the transparent glass at the top of the window, and setting ClearTypeHint=&amp;ldquo;Enabled&amp;rdquo; for text over transparent backgrounds may cause rendering issues.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;h2 class="MsoListParagraph"&gt;&lt;span style="font-size: medium;"&gt;&lt;span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"&gt;&lt;span style="mso-list: Ignore;"&gt;&lt;span style="font-family: Calibri;"&gt;V.&lt;/span&gt;&lt;span style="line-height: normal; font-variant: normal; font-style: normal; font-family: 'Times New Roman'; font-weight: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Calibri;"&gt;&lt;span style="text-decoration: underline;"&gt;IRTs and ClearTypeHint&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;IRT stands for Intermediate Render Target.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;An IRT is a common WPF graphics term used to refer to a surface that a tree of WPF visuals render to.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;Every separate visual tree (e.g. contents of a Popup in WPF) renders to a separate IRT. In addition, applying a Clip/Opacity to a Visual causes a new IRT to be generated.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;ClearTypeHint, when set, propagates to the subtree under that Visual that renders to the same IRT.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;If a descendant node in this subtree has a Clip applied to it or causes a new IRT to be created for another reason, it no longer honors the ClearTypeHint settings.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;These settings will need to be redefined on a Visual within the scope of this new IRT.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;A common instance where this behavior manifests is in the case of a ScrollContentPresenter of a ScrollViewer.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;A ScrollContentPresenter inherently clips the contents that are beyond the viewport.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;By doing so, it causes its contents to be rendered to a separate IRT.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;Now consider a RichTextBox hosted in the content pane of a RibbonWindow.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;A RichTextBox&amp;rsquo;s built-in template uses a ScrollViewer that contains a ScrollContentPresenter.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;Thus to turn on ClearType for text rendered within this ScrollContentPresenter, we must do two things:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;Render an opaque Background within this ScrollContentPresenter.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;Set ClearTypeHint=&amp;ldquo;Enabled&amp;rdquo; within the scope of this ScrollContentPresenter.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;The attached sample code demonstrates such usage.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;Similar techniques have been implemented in the RibbonControlsLibrary to enable ClearType for the various subcomponents within the Ribbon.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;For further reference, &lt;/span&gt;&lt;a href="http://blogs.msdn.com/b/llobo/archive/2009/10/28/new-wpf-features-cleartypehint.aspx"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Lester Lobo&amp;rsquo;s blog&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt; discusses IRTs and when to use ClearTypeHint in WPF.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;h2 class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/h2&gt;
&lt;h2 class="MsoListParagraph"&gt;&lt;span style="font-size: medium;"&gt;&lt;span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"&gt;&lt;span style="mso-list: Ignore;"&gt;&lt;span style="font-family: Calibri;"&gt;VI.&lt;/span&gt;&lt;span style="line-height: normal; font-variant: normal; font-style: normal; font-family: 'Times New Roman'; font-weight: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Calibri;"&gt;&lt;span style="text-decoration: underline;"&gt;Determining if text is rendering as ClearType&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;As seen in this article&amp;rsquo;s screenshots, text rendering as ClearType has red and blue hues since glyphs cut across subpixel boundaries.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;It can be difficult to verify ClearType rendering at normal resolution, so we use a magnification technique to zoom in.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;Windows ships with a magnifier accessibility tool we can launch from the Start Menu:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/936x239/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/0020.typeMagnifierIntoStartMenu2.png" border="0" /&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;When you magnify 800%-1000%, you can readily see the ClearType effect.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;The magnifier&amp;rsquo;s Full screen mode works great on Aero but isn&amp;rsquo;t available on other themes, so I often use MSPaint to magnify screenshots on non-Aero themes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;h2 class="MsoListParagraph"&gt;&lt;span style="font-size: medium;"&gt;&lt;span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"&gt;&lt;span style="mso-list: Ignore;"&gt;&lt;span style="font-family: Calibri;"&gt;VII.&lt;/span&gt;&lt;span style="line-height: normal; font-variant: normal; font-style: normal; font-family: 'Times New Roman'; font-weight: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Calibri;"&gt;&lt;span style="text-decoration: underline;"&gt;Conditional Compilation of ClearType for .NET 4.0&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;ClearType is only available in .NET 4.0, but some WPF apps and custom controls may want to support both .NET 3.5 and 4.0, lighting up with ClearType on .NET 4.0.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;To support both platforms from a single codebase, some conditional compilation is required.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Ribbon itself requires conditional compilation.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;The &lt;/span&gt;&lt;a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=2bfc3187-74aa-4154-a670-76ef8bc2a0b4"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Microsoft Ribbon for WPF Source and Samples MSI&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt; includes a perl script that pushes XAML files for the Ribbon sample apps through the C preprocessor to create separate 3.5 and 4.0 XAML.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;The 4.0 XAML has ClearTypeHint specified in several control templates, and #ifdef directives in the XAML direct the conditional compilation.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="text-decoration: underline;"&gt;&lt;o:p&gt;&lt;span style="TEXT-DECORATION: none"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2 class="MsoNoSpacing"&gt;&lt;span style="font-size: medium;"&gt;&lt;span style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"&gt;&lt;span style="mso-list: Ignore;"&gt;&lt;span style="font-family: Calibri;"&gt;VIII.&lt;/span&gt;&lt;span style="line-height: normal; font-variant: normal; font-style: normal; font-family: 'Times New Roman'; font-weight: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Calibri;"&gt;&lt;span style="text-decoration: underline;"&gt;Sample Code &amp;amp; Related Links&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;p class="MsoNoSpacing"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;Sample Code for this article is attached.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div class="MsoNoSpacing"&gt;&lt;a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=2bfc3187-74aa-4154-a670-76ef8bc2a0b4"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Microsoft Ribbon for WPF&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri;"&gt;&lt;span style="font-size: small;"&gt; &amp;ndash; Download the WPF team&amp;rsquo;s Ribbon release, a managed Ribbon implementation.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-family: Calibri;"&gt;&lt;span style="font-size: small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;Downloading the Ribbon MSI is necessary to run this article's samples.&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;span style="font-size: small;"&gt;You can also download the Ribbon Source &amp;amp; Samples MSI from here.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10083177" width="1" height="1"&gt;</content><author><name>PatrickFinnigan</name><uri>http://blogs.msdn.com/PatrickFinnigan/ProfileUrlRedirect.ashx</uri></author><category term="WPF" scheme="http://blogs.msdn.com/b/wpf/archive/tags/WPF/" /><category term="Ribbon" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Ribbon/" /><category term="RibbonWindow" scheme="http://blogs.msdn.com/b/wpf/archive/tags/RibbonWindow/" /><category term="ClearType" scheme="http://blogs.msdn.com/b/wpf/archive/tags/ClearType/" /></entry><entry><title>Future of the WPF Ribbon</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/wpf/archive/2010/10/21/future-of-the-wpf-ribbon.aspx" /><id>http://blogs.msdn.com/b/wpf/archive/2010/10/21/future-of-the-wpf-ribbon.aspx</id><published>2010-10-21T18:05:00Z</published><updated>2010-10-21T18:05:00Z</updated><content type="html">&lt;p&gt;I&amp;rsquo;m sure many of you are wondering what the future of the WPF Ribbon will look like. The future is hard to predict and there are so many things that can change. But here is a short list of things we will be looking into for the future of the WPF Ribbon.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Virtualization &amp;ndash; We are looking at the virtualization pattern for WPF Ribbon as we think it will work well for developers that have many commands they would like to make available to their users. &lt;/li&gt;
&lt;li&gt;Improvements on Galleries &amp;ndash; We are also investigating improving the galleries we already have in the WPF Ribbon as well as looking at including galleries in the in ribbon and not just in drop down ribbon controls.&lt;/li&gt;
&lt;li&gt;And many other improvements suggestions from our customers, so keep the ideas coming.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;As to the future of the Ribbon as a control&amp;hellip; We are not 100% certain as nothing has been set in stone as of yet.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;I will say that our current thinking is that WPF Ribbon will follow the same path as the WPF DataGrid control.&lt;/p&gt;
&lt;p&gt;The WPF DataGrid was initially released as a standalone control separate from the .NET Framework. After its initial release, the WPF DataGrid was updated a couple of times with bug fixes and improvements to its functionality. Then, with our latest release, the WPF DataGrid was made part of the .NET Framework, where it lives today.&lt;/p&gt;
&lt;p&gt;The WPF Ribbon will probably follow the same path. Our initial release of the WPF Ribbon was back in July of this year. We are doing our first update to the WPF Ribbon this month, October. We will provide another update to the WPF Ribbon sometime next year. Then we anticipate making the WPF Ribbon part of the .NET Framework with our next major release.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;br /&gt;WPF Ribbon Team&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10079055" width="1" height="1"&gt;</content><author><name>TroyMartez</name><uri>http://blogs.msdn.com/TroyMartez/ProfileUrlRedirect.ashx</uri></author><category term="WPF" scheme="http://blogs.msdn.com/b/wpf/archive/tags/WPF/" /><category term="Ribbon" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Ribbon/" /></entry><entry><title>WPF Ribbon October 2010 Update Details</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/wpf/archive/2010/10/21/wpf-ribbon-october-2010-update-details.aspx" /><id>http://blogs.msdn.com/b/wpf/archive/2010/10/21/wpf-ribbon-october-2010-update-details.aspx</id><published>2010-10-21T18:04:00Z</published><updated>2010-10-21T18:04:00Z</updated><content type="html">&lt;p&gt;Here is the detailed list of the items that were fixed in the October 2010 update.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Ribbon Split Button is only half-highlighted when users mouse over the button &lt;/li&gt;
&lt;li&gt;Ribbon Title is bottom-aligned, should be centered&lt;/li&gt;
&lt;li&gt;Ribbon Quick Access Toolbar icons are clipped and top-aligned&lt;/li&gt;
&lt;li&gt;Ribbon Contextual Tab header text is getting truncated if too long&lt;/li&gt;
&lt;li&gt;Ribbon Gallery Item does not stretch to fit its Parent Panel&lt;/li&gt;
&lt;li&gt;Initial enabled state of Ribbon Split Menu Items can be incorrect if they have children&lt;/li&gt;
&lt;li&gt;Ribbon Split Menu Item with sub-items is disabled if CanExecute=false&lt;/li&gt;
&lt;li&gt;WPF Ribbon Dropdown does not close when CanAddToQuickAccessToolBarDirectly="False" was set at various level within the Ribbon&lt;/li&gt;
&lt;li&gt;InvalidOperationException may occur when switching themes and the WPF Ribbon is Minimized&lt;/li&gt;
&lt;li&gt;Ribbon Tab Header content may not appear when Ribbon starts out collapsed&lt;/li&gt;
&lt;li&gt;RibbonTab.TabHeaderLeft &amp;amp; RibbonTab.TabHeaderRight are incorrect when Ribbon starts out hosted in a Collapsed control&lt;/li&gt;
&lt;li&gt;Ribbon Tool Tip: Title and Footer Title gets clipped if the stringis too long&lt;/li&gt;
&lt;li&gt;Vertical and horizontal alignments for the standard Ribbon controls should be centered, they were not.&lt;/li&gt;
&lt;li&gt;After removing all items from the Quick Access Toolbar, phantom items remain visible&lt;/li&gt;
&lt;li&gt;Right clicking on the System icon will not place the Context Menu properly&lt;/li&gt;
&lt;li&gt;System Icon, Title and Quick Access Toolbar are not displayed correctly when Ribbon Windows is maximized&lt;/li&gt;
&lt;li&gt;A minimized Ribbon will render on top of the window when a Popup is opened.&lt;/li&gt;
&lt;li&gt;RibbonWindow.Icon does not pick appropriate small size icon from *.ico&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;Icon file.&lt;/li&gt;
&lt;li&gt;IndexOutofRange Exception would pop when removing a Tab from an Observable Collection.&lt;/li&gt;
&lt;li&gt;WPF Ribbon can use ClearType when targeting .NET Framework 4.0 control.&lt;/li&gt;
&lt;li&gt;WPF Ribbon Control Design-Time experience will work with Visual Studio 2010 Express versions.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you have any questions or you just want to send us some feedback on the changes we&amp;rsquo;ve made, let us know.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;br /&gt;WPF Ribbon Team&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10079054" width="1" height="1"&gt;</content><author><name>TroyMartez</name><uri>http://blogs.msdn.com/TroyMartez/ProfileUrlRedirect.ashx</uri></author><category term="WPF" scheme="http://blogs.msdn.com/b/wpf/archive/tags/WPF/" /><category term="Ribbon" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Ribbon/" /></entry><entry><title>UPDATE: Microsoft Ribbon for WPF October 2010</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/wpf/archive/2010/10/21/update-microsoft-ribbon-for-wpf-october-2010.aspx" /><id>http://blogs.msdn.com/b/wpf/archive/2010/10/21/update-microsoft-ribbon-for-wpf-october-2010.aspx</id><published>2010-10-21T18:01:00Z</published><updated>2010-10-21T18:01:00Z</updated><content type="html">&lt;p&gt;Here is the October 2010 update for the Microsoft Ribbon for WPF. This update contains the latest product changes and fixes for the WPF Ribbon. You can download the latest ribbon &lt;a target="_blank" href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=2bfc3187-74aa-4154-a670-76ef8bc2a0b4&amp;amp;displaylang=en" title="Microsoft Ribbon for WPF"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;We&amp;rsquo;ve made a few changes to the WPF Ribbon you might be interested in&amp;hellip;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Upon the installation of this latest update to the WPF Ribbon we install 2 copies. One that version that targets .NET Framework 3.5 SP1 and another that targets .NET Framework 4. This allows us to take greater advantage of some of the new features in .NET Framework 4.&lt;/li&gt;
&lt;li&gt;Our WPF Ribbon and its samples, which also target .NET Framework 4.0, can also take advantage of ClearType in WPF and provide a better text rendering experience for your WPF applications.&lt;/li&gt;
&lt;li&gt;Our WPF Ribbon will now work with Visual Studio 2010 Express versions.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In addition, we have also fixed quite a few bugs reported by the community of WPF Ribbon developers. Here are the highlights:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Stylistic Fixes: We have addressed a few style type changes that our customers have pointed out to us, including but not limited to: 
&lt;ul&gt;
&lt;li&gt;Ribbon Title is bottom-aligned when it should be centered&lt;/li&gt;
&lt;li&gt;Ribbon Gallery Item does not stretch to fit its Parent Panel&lt;/li&gt;
&lt;li&gt;Ribbon Split Button is only half-highlighted when users mouse over the button&lt;/li&gt;
&lt;li&gt;Ribbon Contextual Tab header text is getting truncated if too long&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Rendering Fixes: We have also addressed some issues with rendering of the Ribbon that customers have pointed out to us. Here are the highlights: 
&lt;ul&gt;
&lt;li&gt;After removing all items from the Quick Access Toolbar, phantom items remain visible&lt;/li&gt;
&lt;li&gt;A minimized Ribbon will render on top of the window when a Popup is opened&lt;/li&gt;
&lt;li&gt;Rendering artifacts observed when Ribbon is used in conjunction with interop components such as WindowsFormsHost &lt;/li&gt;
&lt;li&gt;System Icon, Title and Quick Access Toolbar are not displayed correctly when Ribbon Windows is maximized&lt;/li&gt;
&lt;li&gt;For a more detailed list of the fixes in this update, click &lt;a href="http://blogs.msdn.com/b/wpf/archive/2010/10/21/wpf-ribbon-october-2010-update-details.aspx" title="WPF Ribbon October 2010 Update Details"&gt;here&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Now that we&amp;rsquo;ve updated the WPF Ribbon, I&amp;rsquo;m sure that some of you are wondering what is next for the WPF Ribbon. To find out more, click &lt;a href="http://blogs.msdn.com/b/wpf/archive/2010/10/21/future-of-the-wpf-ribbon.aspx" title="Future of the WPF Ribbon"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;And finally, much of what drove our work for this update was feedback directly from our users, please keep that feedback coming. It is your feedback that will determine our work on the WPF Ribbon.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;WPF Ribbon Team&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10079053" width="1" height="1"&gt;</content><author><name>TroyMartez</name><uri>http://blogs.msdn.com/TroyMartez/ProfileUrlRedirect.ashx</uri></author><category term="WPF" scheme="http://blogs.msdn.com/b/wpf/archive/tags/WPF/" /><category term="Ribbon" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Ribbon/" /></entry><entry><title>Ribbon Browser Application without the title row</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/wpf/archive/2010/08/20/ribbon-browser-application-without-the-title-row.aspx" /><link rel="enclosure" type="application/x-zip-compressed" length="13240" href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-10-05-23-66/WpfRibbonBrowserApplication1.zip" /><id>http://blogs.msdn.com/b/wpf/archive/2010/08/20/ribbon-browser-application-without-the-title-row.aspx</id><published>2010-08-20T09:38:00Z</published><updated>2010-08-20T09:38:00Z</updated><content type="html">&lt;p&gt;We have received a query about being able to hide the title panel in a Ribbon Browser Application. As always this can be achieved by finding the appropriate element within the Ribbon template and manipulating its Visibility. The attached project demonstrates this approach. Here's the resultant UI.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/2376.Post11-_2D00_-RibbonBrowserApplicationWithoutTitlePanel.PNG" border="0" /&gt;&lt;/p&gt;
&lt;p&gt;However please note that with this UI, neither QAT nor Contextual Tab Headers&amp;nbsp;will&amp;nbsp;have a proper home. Also there&amp;nbsp;could be other&amp;nbsp;unknown side effects because this isn't an intentionally supported scenario.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10052366" width="1" height="1"&gt;</content><author><name>VarshaMahadevan</name><uri>http://blogs.msdn.com/VarshaMahadevan/ProfileUrlRedirect.ashx</uri></author><category term="WPF" scheme="http://blogs.msdn.com/b/wpf/archive/tags/WPF/" /><category term="Windows 7" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Windows+7/" /><category term="Ribbon" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Ribbon/" /></entry><entry><title>Images in Ribbon Sample</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/wpf/archive/2010/08/16/images-in-ribbon-sample.aspx" /><id>http://blogs.msdn.com/b/wpf/archive/2010/08/16/images-in-ribbon-sample.aspx</id><published>2010-08-17T05:49:00Z</published><updated>2010-08-17T05:49:00Z</updated><content type="html">&lt;p&gt;We have received some feedback about the blurriness of the images in the Ribbon sample that was published alongside the &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=2bfc3187-74aa-4154-a670-76ef8bc2a0b4&amp;amp;displaylang=en" title="Ribbon release"&gt;Ribbon release&lt;/a&gt;.&amp;nbsp;We would like to clarify that the sole purpose of this sample application is to showcase the API capabilities for the Ribbon Control Library. The images involved are purely incidental and were added to demonstrate the overall Ribbon layout.&amp;nbsp;To futher this&amp;nbsp;I would draw your attention to &lt;a href="http://www.asp.net/WebMatrix" title="Web Matrix"&gt;Web Matrix&lt;/a&gt;, a web development solution from Microsoft with a publicly available Beta. The UI for this app has been built using the Ribbon Control Library. Here are a few screen shots of this tool. This is more representative of real production apps that can be built using this library.&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration: underline;"&gt;Web Matrix&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/7776.Post10-_2D00_-WebMatrix-Screenshot.PNG" border="0" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration: underline;"&gt;Web Matrix -&amp;nbsp;Application Menu&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/2402.Post10-_2D00_-WebMatrix-ApplicationMenu.png" border="0" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10050857" width="1" height="1"&gt;</content><author><name>VarshaMahadevan</name><uri>http://blogs.msdn.com/VarshaMahadevan/ProfileUrlRedirect.ashx</uri></author><category term="WPF" scheme="http://blogs.msdn.com/b/wpf/archive/tags/WPF/" /><category term="Windows 7" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Windows+7/" /><category term="Ribbon" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Ribbon/" /></entry><entry><title>Picking the right resolution for RibbonWindow's Icon</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/wpf/archive/2010/08/16/picking-the-right-resolution-for-ribbonwindow-s-icon.aspx" /><link rel="enclosure" type="application/x-zip-compressed" length="10571" href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-10-05-06-92/WpfRibbonApplication6.zip" /><id>http://blogs.msdn.com/b/wpf/archive/2010/08/16/picking-the-right-resolution-for-ribbonwindow-s-icon.aspx</id><published>2010-08-16T20:47:00Z</published><updated>2010-08-16T20:47:00Z</updated><content type="html">&lt;p&gt;It has been reported that when using an icon file as RibbonWindow.Icon, the icon&amp;nbsp;is rendered blurry&amp;nbsp;due to bitmap scaling. The reason for this issue is the inherent behavior of WPF Image element to simply display the first decoded&amp;nbsp;bitmap frame&amp;nbsp;within an icon file instead of picking the best match in terms of resolution. This behavior isn't really manifested unless you use the RibbonWindow. This is because when using a RibbonWindow WPF Image element is rendering the Application icon&amp;nbsp;whereas for a&amp;nbsp;regular WPF Window it is the OS that renders the icon and picks the right resolution. Attached is a workaround app that demonstrates how to manually decode the icon file and pick an image of the right resolution to be rendered as the Application Icon. &lt;/p&gt;
&lt;pre class="scroll"&gt;&lt;code class="csharp"&gt;        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            Image icon = GetTemplateChild("PART_Icon") as Image;
            if (icon != null)
            {
                Size smallIconSize = SystemParameters2.Current.SmallIconSize;

                BitmapDecoder decoder = BitmapDecoder.Create(new Uri(Icon.ToString()), BitmapCreateOptions.None, BitmapCacheOption.OnLoad);
                foreach (BitmapFrame frame in decoder.Frames)
                {
                    if (frame.Width == smallIconSize.Width &amp;amp;&amp;amp;
                        frame.Height == smallIconSize.Height)
                    {
                        icon.Source = frame;
                        break;
                    }
                }
            }
        }&lt;/code&gt;&lt;/pre&gt;
&lt;pre class="scroll"&gt;&lt;/pre&gt;
&lt;p&gt;Please notice that the Application icon shows a&amp;nbsp;red tint (which is the 16x16 icon), whereas the icon in the taskbar shows the yellow tint (which is the 32x32 icon).&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/1524.Post9-_2D00_-RibbonWindow-Icon-of-the-right-resolution.PNG" border="0" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10050692" width="1" height="1"&gt;</content><author><name>VarshaMahadevan</name><uri>http://blogs.msdn.com/VarshaMahadevan/ProfileUrlRedirect.ashx</uri></author><category term="WPF" scheme="http://blogs.msdn.com/b/wpf/archive/tags/WPF/" /><category term="Windows 7" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Windows+7/" /><category term="Ribbon" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Ribbon/" /></entry><entry><title>Visual improvements for RibbonQuickAccessToolBar</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/wpf/archive/2010/08/14/visual-improvements-for-ribbonquickaccesstoolbar.aspx" /><link rel="enclosure" type="application/x-zip-compressed" length="10587" href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-10-05-02-30/WpfRibbonApplication5.zip" /><id>http://blogs.msdn.com/b/wpf/archive/2010/08/14/visual-improvements-for-ribbonquickaccesstoolbar.aspx</id><published>2010-08-15T06:52:00Z</published><updated>2010-08-15T06:52:00Z</updated><content type="html">&lt;p&gt;Here are couple of scenarios that can be improved.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The contents of the QuickAccessToolBar&amp;nbsp;show far too low within the title area of the window.&lt;/li&gt;
&lt;li&gt;It is preferable that the left and right separators for a RibbonQuickAccessToolBar not show if this ToolBar is empty.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Find attached a workaround app&amp;nbsp;for the two cases outlined above.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The first scenario is mitigated by introducing some negative margin to position the contents of the QuickAccessToolBar higher within the title bar.&lt;/li&gt;
&lt;li&gt;The second scenario is mitigated by toggling the visiblity of the separators based upon the RibbonQuickAccessToolBar.HasItems property.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10050230" width="1" height="1"&gt;</content><author><name>VarshaMahadevan</name><uri>http://blogs.msdn.com/VarshaMahadevan/ProfileUrlRedirect.ashx</uri></author><category term="WPF" scheme="http://blogs.msdn.com/b/wpf/archive/tags/WPF/" /><category term="Windows 7" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Windows+7/" /><category term="Ribbon" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Ribbon/" /></entry><entry><title>WPF ZoomableCanvas with a million items (from Kael Rowan)</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/wpf/archive/2010/08/12/wpf-zoomablecanvas-with-a-million-items-from-kael-rowan.aspx" /><id>http://blogs.msdn.com/b/wpf/archive/2010/08/12/wpf-zoomablecanvas-with-a-million-items-from-kael-rowan.aspx</id><published>2010-08-12T14:01:43Z</published><updated>2010-08-12T14:01:43Z</updated><content type="html">&lt;p&gt;Kael Rowan just posted "&lt;a href="http://blogs.msdn.com/b/kaelr/archive/2010/08/11/zoomableapplication2-a-million-items.aspx" title="ZoomableApplication2: A million items"&gt;ZoomableApplication2: A million items&lt;/a&gt;", a post that should be very helpful to some WPF Application developers. We've definitely seen many applcations built that have a designer like surface (zoomable, pannable) with many boxes + lines. ZoomableCanvas shows some techniques to virtualize the data items and the uielements when they are not showing. Kael's &lt;a href="http://blogs.msdn.com/b/kaelr/archive/tags/zoomablecanvas/series of posts about ZoomableCanvas"&gt;series of posts about ZoomableCanvas&lt;/a&gt;&amp;nbsp;has been a great build up from nothing, to a ZoomableCanvas component, to using the ZoomableCanvas for a million items.&lt;/p&gt;
&lt;p&gt;Please go try out the app running in his &lt;a href="http://blogs.msdn.com/b/kaelr/archive/2010/08/11/zoomableapplication2-a-million-items.aspx"&gt;post's page&lt;/a&gt;, and learn if it would be useful for your application.&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;a href="http://blogs.msdn.com/b/kaelr/archive/2010/08/11/zoomableapplication2-a-million-items.aspx"&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/5315.zoomablecanvas.jpg" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks Kael!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10049360" width="1" height="1"&gt;</content><author><name>Rob Relyea</name><uri>http://blogs.msdn.com/Rob-Relyea/ProfileUrlRedirect.ashx</uri></author><category term="WPF" scheme="http://blogs.msdn.com/b/wpf/archive/tags/WPF/" /><category term="Control" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Control/" /></entry><entry><title>Preview: WPF 4 Unleashed - Why WPF, and What About Silverlight</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/wpf/archive/2010/08/09/preview-wpf-4-unleashed-why-wpf-and-what-about-silverlight.aspx" /><id>http://blogs.msdn.com/b/wpf/archive/2010/08/09/preview-wpf-4-unleashed-why-wpf-and-what-about-silverlight.aspx</id><published>2010-08-09T15:29:00Z</published><updated>2010-08-09T15:29:00Z</updated><content type="html">&lt;p&gt;&lt;base href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=NewPost&amp;amp;WeblogID=13864" /&gt;&lt;/base /&gt;
&lt;link rel="stylesheet" href="http://blogs.msdn.com/tiny_mce/themes/advanced/skins/default/content.css" /&gt;
&lt;link rel="stylesheet" href="http://blogs.msdn.com/tiny_mce/plugins/spellchecker/css/content.css" /&gt;
&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: georgia,palatino;"&gt;&lt;span style="font-size: small;"&gt;Hey WPFers, WPF4 Unleashed has been, 
well, unleashed! Get a preview of Chapter 1 @ &lt;a style="FONT-FAMILY: " href="http://bit.ly/cwGYbY"&gt;http://bit.ly/cwGYbY&lt;/a&gt;. Enjoy!&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: georgia,palatino;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style="border: 0pt solid #ffffff; width: 774px; height: 61px; cursor: default;" class="MsoTableGrid" border="0" cellpadding="0" cellspacing="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="MARGIN: 8px; FONT-FAMILY: Arial,Helvetica,sans-serif; COLOR: #000000; FONT-SIZE: 12px; CURSOR: text" valign="top" width="114"&gt;
&lt;p&gt;&lt;span style="font-family: georgia,palatino;"&gt;&lt;span style="font-size: small;"&gt;&lt;img style="BORDER-RIGHT-WIDTH: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" src="http://blogs.msdn.com/controlpanel/resized-image.ashx/__size/550x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/6052.tedhupic.png" width="75" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style="MARGIN: 8px; FONT-FAMILY: Arial,Helvetica,sans-serif; COLOR: #000000; FONT-SIZE: 12px; CURSOR: text" width="684"&gt;
&lt;p&gt;&lt;span style="font-family: georgia,palatino;"&gt;&lt;span style="font-size: small;"&gt;My name is Ted Hu, a Senior Program 
Manager for the WPF Team.&amp;nbsp; I love hearing from customers - please let me know 
what you think!&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;span style="font-family: georgia,palatino;"&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: georgia,palatino;"&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10047825" width="1" height="1"&gt;</content><author><name>TedHuAtMSFT</name><uri>http://blogs.msdn.com/TedHuAtMSFT/ProfileUrlRedirect.ashx</uri></author><category term="WPF 4" scheme="http://blogs.msdn.com/b/wpf/archive/tags/WPF+4/" /><category term="Unleashed" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Unleashed/" /></entry><entry><title>SystemMenu does not show correctly when Ribbon application is run against .Net 4.0.</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/wpf/archive/2010/08/06/systemmenu-does-not-show-correctly-when-ribbon-application-is-run-against-net-4-0.aspx" /><link rel="enclosure" type="application/x-zip-compressed" length="11023" href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-10-04-69-07/WpfRibbonApplication1.zip" /><id>http://blogs.msdn.com/b/wpf/archive/2010/08/06/systemmenu-does-not-show-correctly-when-ribbon-application-is-run-against-net-4-0.aspx</id><published>2010-08-06T07:23:05Z</published><updated>2010-08-06T07:23:05Z</updated><content type="html">&lt;p&gt;It has been reported that when using a Ribbon hosted in a RibbonWindow in an application targeting .Net 4.0, the SystemMenu does not show in the correct location. See screenshot below.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/6445.Post8-_2D00_-SystemMenu-shows-incorrectly.png" border="0" /&gt;&lt;/p&gt;
&lt;p&gt;Please note that this bug does not exist when targetting .Net 3.5. The workaround to this problem is in the attached sample. The essence of the workaround is to&amp;nbsp;override the execution of ShowSystemMenuCommand. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10046907" width="1" height="1"&gt;</content><author><name>VarshaMahadevan</name><uri>http://blogs.msdn.com/VarshaMahadevan/ProfileUrlRedirect.ashx</uri></author><category term="WPF" scheme="http://blogs.msdn.com/b/wpf/archive/tags/WPF/" /><category term="Windows 7" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Windows+7/" /><category term="Ribbon" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Ribbon/" /></entry><entry><title>How do I add Galleries to my Ribbon?</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/wpf/archive/2010/08/04/how-do-i-add-galleries-to-my-ribbon.aspx" /><link rel="enclosure" type="application/x-zip-compressed" length="69117" href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-10-04-58-58/WpfRibbonApplication_5F00_Word.zip" /><id>http://blogs.msdn.com/b/wpf/archive/2010/08/04/how-do-i-add-galleries-to-my-ribbon.aspx</id><published>2010-08-04T11:38:00Z</published><updated>2010-08-04T11:38:00Z</updated><content type="html">&lt;p class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbongallery.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonGallery&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; is a new metaphor introduced as part of the Ribbon UI. It is a control that visualizes a list of &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonGalleryItems&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; that are grouped into &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbongallerycategory.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonGalleryCategories&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;. &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbongallery.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonGallery&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; is typically used to visualize a set of related choices that are best expressed visually. Using the Ribbon Controls Library the &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbongallery.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonGallery&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; can be hosted within any of the following controls.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoListParagraphCxSpFirst" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1;"&gt;&lt;span style="font-family: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings;"&gt;&lt;span style="mso-list: Ignore;"&gt;&lt;span style="font-size: small;"&gt;&amp;sect;&lt;/span&gt;&lt;span style="font: 7pt 'Times New Roman';"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbonmenubutton.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonMenuButton&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1;"&gt;&lt;span style="font-family: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings;"&gt;&lt;span style="mso-list: Ignore;"&gt;&lt;span style="font-size: small;"&gt;&amp;sect;&lt;/span&gt;&lt;span style="font: 7pt 'Times New Roman';"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbonsplitbutton.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonSplitButton&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1;"&gt;&lt;span style="font-family: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings;"&gt;&lt;span style="mso-list: Ignore;"&gt;&lt;span style="font-size: small;"&gt;&amp;sect;&lt;/span&gt;&lt;span style="font: 7pt 'Times New Roman';"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribboncombobox.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonComboBox&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1;"&gt;&lt;span style="font-family: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings;"&gt;&lt;span style="mso-list: Ignore;"&gt;&lt;span style="font-size: small;"&gt;&amp;sect;&lt;/span&gt;&lt;span style="font: 7pt 'Times New Roman';"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbonmenuitem.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonMenuItem&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1;"&gt;&lt;span style="font-family: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings;"&gt;&lt;span style="mso-list: Ignore;"&gt;&lt;span style="font-size: small;"&gt;&amp;sect;&lt;/span&gt;&lt;span style="font: 7pt 'Times New Roman';"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbonsplitmenuitem.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonSplitMenuItem&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1;"&gt;&lt;span style="font-family: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings;"&gt;&lt;span style="mso-list: Ignore;"&gt;&lt;span style="font-size: small;"&gt;&amp;sect;&lt;/span&gt;&lt;span style="font: 7pt 'Times New Roman';"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbonapplicationmenuitem.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonApplicationMenuItem&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p class="MsoListParagraphCxSpLast" style="text-indent: -0.25in; margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1;"&gt;&lt;span style="font-family: Wingdings; mso-fareast-font-family: Wingdings; mso-bidi-font-family: Wingdings;"&gt;&lt;span style="mso-list: Ignore;"&gt;&lt;span style="font-size: small;"&gt;&amp;sect;&lt;/span&gt;&lt;span style="font: 7pt 'Times New Roman';"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbonapplicationsplitmenuitem.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonApplicationSplitMenuItem&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Apart from&amp;nbsp;being hosted in a drop-down control such as the ones listed above,&amp;nbsp;the other popular use is as a standalone InRibbonGallery control. This control is not supported in the current release of Ribbon Controls Library, but will likely be supported in the future. The &lt;i style="mso-bidi-font-style: normal;"&gt;Styles&lt;/i&gt; Group in Microsoft Word has an InRibbonGallery and a &lt;i style="mso-bidi-font-style: normal;"&gt;Change Styles&lt;/i&gt; &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbonmenubutton.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonMenuButton&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; hosting a variety of other Galleries. The attached sample demonstrates an implementation of this Group. &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/7384.Post7-_2D00_-RibbonGalleries.png" border="0" /&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="mso-no-proof: yes;"&gt;&lt;v:shapetype coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f" id="_x0000_t75"&gt;&lt;v:stroke joinstyle="miter"&gt;&lt;/v:stroke&gt;&lt;v:formulas&gt;&lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @0 1 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum 0 0 @1"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @2 1 2"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @3 21600 pixelWidth"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @3 21600 pixelHeight"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @0 0 1"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @6 1 2"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @7 21600 pixelWidth"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @8 21600 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @7 21600 pixelHeight"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @10 21600 0"&gt;&lt;/v:f&gt;&lt;/v:formulas&gt;&lt;v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"&gt;&lt;/v:path&gt;&lt;o:lock v:ext="edit" aspectratio="t"&gt;&lt;/o:lock&gt;&lt;/v:shapetype&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Notice the use of Galleries within each &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbonmenuitem.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonMenuItem&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; and the uses of &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.datatemplate.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;DataTemplates&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; and/or &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.hierarchicaldatatemplate.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;HierarchicalDataTemplates&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; to visualize the two levels in the hierarchy, &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbongallerycategory.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonGalleryCategory&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; and &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbongalleryitem.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonGalleryItem&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;. Also note the use of the &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbongallery.maxcolumncount.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;MaxColumnCount&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; property. The &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbongallery.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonGallery&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; control supports multi-column layout. The &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbongallery.mincolumncount.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;MinColumnCount&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; and &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbongallery.maxcolumncount.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;MaxColumnCount&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; properties allow an app author to specify the column range and thus when the Popup containing the &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbongallery.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonGallery&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; is resized, the contents are laid out to match these constraints. When the Popup is opened the Gallery is laid out to its &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbongallery.mincolumncount.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;MinColumnCount&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; dimensions. The resizablility of the parent control is specified using the &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbonmenubutton.canuserresizehorizontally.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;CanUserResizeHorizontally&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; and &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbonmenubutton.canuserresizevertically.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;CanUserResizeVertically&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; properties. And lastly the &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbongallerycategory.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonGalleryCategory&amp;rsquo;s&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbongallerycategory.headervisibility.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;HeaderVisibility&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; is configurable. For instance the &lt;i style="mso-bidi-font-style: normal;"&gt;Style Set&lt;/i&gt; Gallery does not show Category Header whereas the &lt;i style="mso-bidi-font-style: normal;"&gt;Colors&lt;/i&gt; and &lt;i style="mso-bidi-font-style: normal;"&gt;Fonts&lt;/i&gt; Galleries do.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/1261.Post7-_2D00_-RibbonGalleryCategory-_2D00_-HeaderVisibility.png" border="0" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10045858" width="1" height="1"&gt;</content><author><name>VarshaMahadevan</name><uri>http://blogs.msdn.com/VarshaMahadevan/ProfileUrlRedirect.ashx</uri></author><category term="WPF" scheme="http://blogs.msdn.com/b/wpf/archive/tags/WPF/" /><category term="Windows 7" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Windows+7/" /><category term="Ribbon" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Ribbon/" /></entry><entry><title>How can I add rich ToolTips to my Ribbon controls?</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/wpf/archive/2010/08/04/how-can-i-add-rich-tooltips-to-my-ribbon-controls.aspx" /><id>http://blogs.msdn.com/b/wpf/archive/2010/08/04/how-can-i-add-rich-tooltips-to-my-ribbon-controls.aspx</id><published>2010-08-04T11:14:00Z</published><updated>2010-08-04T11:14:00Z</updated><content type="html">&lt;p class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;There are six properties on each Ribbon control that enable creation of rich ToolTips such as the one shown below.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/0871.Post6-_2D00_-Rich-RibbonToolTips.png" border="0" /&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="mso-no-proof: yes;"&gt;&lt;v:shapetype coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f" id="_x0000_t75"&gt;&lt;v:stroke joinstyle="miter"&gt;&lt;/v:stroke&gt;&lt;v:formulas&gt;&lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @0 1 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum 0 0 @1"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @2 1 2"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @3 21600 pixelWidth"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @3 21600 pixelHeight"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @0 0 1"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @6 1 2"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @7 21600 pixelWidth"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @8 21600 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @7 21600 pixelHeight"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @10 21600 0"&gt;&lt;/v:f&gt;&lt;/v:formulas&gt;&lt;v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"&gt;&lt;/v:path&gt;&lt;o:lock v:ext="edit" aspectratio="t"&gt;&lt;/o:lock&gt;&lt;/v:shapetype&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpFirst" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribboncontrolservice.tooltiptitle.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;ToolTipTitle&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribboncontrolservice.tooltipdescription.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;ToolTipDescription&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribboncontrolservice.tooltipimagesource.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;ToolTipImageSource&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribboncontrolservice.tooltipfootertitle.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;ToolTipFooterTitle&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribboncontrolservice.tooltipfooterdescription.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;ToolTIpFooterDescription&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpLast" style="text-indent: -0.25in; margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribboncontrolservice.tooltipfooterimagesource.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;ToolTIpFooterImageSource&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;The use of any of these&amp;nbsp;six properties causes a &lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbontooltip.aspx" title="RibbonToolTip"&gt;RibbonToolTip&lt;/a&gt; instance to be created and used as the &lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.frameworkelement.tooltip(VS.85).aspx" title="ToolTip"&gt;ToolTip &lt;/a&gt;for the Ribbon control. It is always possible to override this behavior by explicitly creating a ToolTip. However note that&amp;nbsp;a &lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbontooltip.aspx" title="RibbonToolTip"&gt;RibbonToolTip&lt;/a&gt; in addition to providing a rich template also provides the&amp;nbsp;service&amp;nbsp;of correctly positioning iself below the Ribbon instead of the default position next to the mouse cursor. So it is highly recommended to use a &lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbontooltip.aspx" title="RibbonToolTip"&gt;RibbonToolTip&lt;/a&gt; instance, even if you wanted to create a custom one.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Read &lt;a href="http://blogs.msdn.com/b/wpf/archive/2010/08/04/how-do-i-add-galleries-to-my-ribbon.aspx" title="next post"&gt;next post&lt;/a&gt; to learn about adding RibbonGallery to your Ribbon app.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10045849" width="1" height="1"&gt;</content><author><name>VarshaMahadevan</name><uri>http://blogs.msdn.com/VarshaMahadevan/ProfileUrlRedirect.ashx</uri></author><category term="WPF" scheme="http://blogs.msdn.com/b/wpf/archive/tags/WPF/" /><category term="Windows 7" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Windows+7/" /><category term="Ribbon" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Ribbon/" /></entry><entry><title>Why should I use a RibbonWindow?</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/wpf/archive/2010/08/04/why-should-i-use-a-ribbonwindow.aspx" /><id>http://blogs.msdn.com/b/wpf/archive/2010/08/04/why-should-i-use-a-ribbonwindow.aspx</id><published>2010-08-04T10:52:00Z</published><updated>2010-08-04T10:52:00Z</updated><content type="html">&lt;p class="MsoNormal"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbonwindow.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonWindow&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; is a subclass of the regular WPF &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.window.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;Window&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; that provides additional services to be able to integrate Ribbon components with the Window Chrome. To demonstrate this use the sample application from the &lt;a href="http://blogs.msdn.com/b/wpf/archive/2010/08/04/bind-my-ribbon-ui-to-my-data-model.aspx" title="previous post"&gt;previous post&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/5557.Post5-_2D00_-AddToQuickAccessToolBar.png" border="0" /&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpFirst" style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Right-click the &lt;i style="mso-bidi-font-style: normal"&gt;Format Painter&lt;/i&gt; button within the &lt;i style="mso-bidi-font-style: normal"&gt;Clipboard&lt;/i&gt; Group&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpMiddle" style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Choose &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribboncommands.addtoquickaccesstoolbarcommand.aspx"&gt;&lt;i style="mso-bidi-font-style: normal"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;Add to QuickAccessToolBar&lt;/span&gt;&lt;/i&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; option&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpLast" style="TEXT-INDENT: -0.25in; MARGIN: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Notice that the Button shows in the title row for the Window. &lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="mso-no-proof: yes"&gt;&lt;v:shapetype coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f" id="_x0000_t75"&gt;&lt;v:stroke joinstyle="miter"&gt;&lt;/v:stroke&gt;&lt;v:formulas&gt;&lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @0 1 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum 0 0 @1"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @2 1 2"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @3 21600 pixelWidth"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @3 21600 pixelHeight"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @0 0 1"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @6 1 2"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @7 21600 pixelWidth"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @8 21600 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @7 21600 pixelHeight"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @10 21600 0"&gt;&lt;/v:f&gt;&lt;/v:formulas&gt;&lt;v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"&gt;&lt;/v:path&gt;&lt;o:lock v:ext="edit" aspectratio="t"&gt;&lt;/o:lock&gt;&lt;/v:shapetype&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/3731.Post5-_2D00_-RibbonWindow-containing-Ribbon.png" border="0" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;This was made possible by the use of &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbonwindow.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonWindow&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;. Under the covers, &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbonwindow.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonWindow&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; uses the &lt;/span&gt;&lt;a href="http://code.msdn.microsoft.com/chrome"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;Chrome&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; library to achieve this. However, it isn&amp;rsquo;t mandatory to use a &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbonwindow.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonWindow&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; to host the Ribbon UI. If a regular WPF &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.window.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;Window&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; is used instead all of the same functionality is available barring the integration with the Window Chrome. So the same Ribbon UI would appear as below.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/0081.Post5-_2D00_-Window-containing-Ribbon.png" border="0" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Read &lt;a href="http://blogs.msdn.com/b/wpf/archive/2010/08/04/how-can-i-add-rich-tooltips-to-my-ribbon-controls.aspx" title="next post"&gt;next post &lt;/a&gt;to learn about rich RibbonToolTips.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10045847" width="1" height="1"&gt;</content><author><name>VarshaMahadevan</name><uri>http://blogs.msdn.com/VarshaMahadevan/ProfileUrlRedirect.ashx</uri></author><category term="WPF" scheme="http://blogs.msdn.com/b/wpf/archive/tags/WPF/" /><category term="Windows 7" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Windows+7/" /><category term="Ribbon" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Ribbon/" /></entry><entry><title>Bind my Ribbon UI to my data model</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/wpf/archive/2010/08/04/bind-my-ribbon-ui-to-my-data-model.aspx" /><link rel="enclosure" type="application/x-zip-compressed" length="49236" href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-10-04-58-36/WpfRibbonApplication_5F00_Word.zip" /><id>http://blogs.msdn.com/b/wpf/archive/2010/08/04/bind-my-ribbon-ui-to-my-data-model.aspx</id><published>2010-08-04T10:26:00Z</published><updated>2010-08-04T10:26:00Z</updated><content type="html">&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;The recommended way to bind the Ribbon UI to a data model is to encapsulate the command and the state associated with each control into a data object that is used as the &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.frameworkelement.datacontext.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;DataContext&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; for that control. You can then apply an implicit &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.style.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;Style&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; to the control that binds individual properties on it to corresponding properties of the data object. Please look at the attached sample that emulates the &lt;i style="mso-bidi-font-style: normal;"&gt;Clipboard&lt;/i&gt; group in Microsoft Word. &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="mso-no-proof: yes;"&gt;&lt;v:shapetype coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f" id="_x0000_t75"&gt;&lt;v:stroke joinstyle="miter"&gt;&lt;/v:stroke&gt;&lt;v:formulas&gt;&lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @0 1 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum 0 0 @1"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @2 1 2"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @3 21600 pixelWidth"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @3 21600 pixelHeight"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @0 0 1"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @6 1 2"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @7 21600 pixelWidth"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @8 21600 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @7 21600 pixelHeight"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @10 21600 0"&gt;&lt;/v:f&gt;&lt;/v:formulas&gt;&lt;v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"&gt;&lt;/v:path&gt;&lt;o:lock v:ext="edit" aspectratio="t"&gt;&lt;/o:lock&gt;&lt;/v:shapetype&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/2656.Post4-_2D00_-Word-Clipboard-Group.png" border="0" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;The XAML markup for this group ends up being very succinct. Notice that the primary operation here is just to set the &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.frameworkelement.datacontext.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;DataContext&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; on each control.&lt;/span&gt;&lt;/p&gt;
&lt;div style="padding-bottom: 1pt; padding-left: 4pt; padding-right: 4pt; padding-top: 1pt; mso-element: para-border-div; mso-border-alt: solid windowtext .5pt; border: windowtext 1pt solid;"&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;ribbon&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Ribbon&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; x&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;Name&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="Ribbon"&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;ribbon&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;RibbonTab&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Header&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="Home"&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; KeyTip&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="H" &amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;ribbon&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;RibbonGroup&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; x&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;Name&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="Clipboard"&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; DataContext&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;x&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Static&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; data&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;WordModel&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;.Clipboard}"&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;ribbon&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;RibbonSplitButton&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; DataContext&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;x&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Static&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; data&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;WordModel&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;.Paste}"&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;ribbon&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;RibbonMenuItem&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; DataContext&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;x&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Static&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; data&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;WordModel&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;.Paste}" /&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;ribbon&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;RibbonMenuItem&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; DataContext&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;x&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Static&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; data&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;WordModel&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;.PasteSpecial}" /&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;ribbon&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;RibbonMenuItem&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; DataContext&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;x&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Static&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; data&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;WordModel&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;.PasteAsHyperlink}" /&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;ribbon&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;RibbonSplitButton&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;ribbon&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;RibbonButton&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; DataContext&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;x&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Static&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; data&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;WordModel&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;.Cut}" /&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;ribbon&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;RibbonButton&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; DataContext&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;x&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Static&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; data&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;WordModel&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;.Copy}" /&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;ribbon&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;RibbonButton&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; DataContext&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;x&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Static&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; data&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;WordModel&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;.FormatPainter}" /&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;ribbon&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;RibbonGroup&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;ribbon&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;RibbonTab&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;ribbon&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Ribbon&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;The implicit &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.style.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;Styles&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; for these controls are specified in a &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.resourcedictionary.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;ResourceDictionary&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; along the ancestor lookup path.&lt;/span&gt;&lt;/p&gt;
&lt;div style="mso-element: para-border-div; mso-border-alt: solid windowtext .5pt; border: windowtext 1pt solid; padding: 1pt;"&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-tab-count: 1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Grid&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; x&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;Name&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="LayoutRoot"&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Grid.Resources&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: green; font-size: 8pt;"&gt;&amp;lt;!-- RibbonControl --&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Style&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; x&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;Key&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="RibbonControlStyle"&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Setter&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Property&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="ribbon:RibbonControlService.Label"&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Value&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Binding&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Label&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}" /&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Setter&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Property&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="ribbon:RibbonControlService.LargeImageSource"&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Value&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Binding&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; LargeImage&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}" /&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Setter&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Property&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="ribbon:RibbonControlService.SmallImageSource"&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Value&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Binding&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; SmallImage&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}" /&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Setter&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Property&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="ribbon:RibbonControlService.ToolTipTitle"&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Value&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Binding&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; ToolTipTitle&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}" /&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Setter&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Property&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="ribbon:RibbonControlService.ToolTipDescription"&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Value&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Binding&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; ToolTipDescription&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}" /&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Setter&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Property&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="ribbon:RibbonControlService.ToolTipImageSource"&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Value&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Binding&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; ToolTipImage&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}" /&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Setter&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Property&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="ribbon:RibbonControlService.ToolTipFooterTitle"&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Value&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Binding&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; ToolTipFooterTitle&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}" /&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Setter&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Property&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="ribbon:RibbonControlService.ToolTipFooterDescription"&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Value&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Binding&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; ToolTipFooterDescription&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}" /&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Setter&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Property&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="ribbon:RibbonControlService.ToolTipFooterImageSource"&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Value&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Binding&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; ToolTipFooterImage&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}" /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;...&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Style&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: green; font-size: 8pt;"&gt;&amp;lt;!-- RibbonButton --&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Style&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; TargetType&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;x&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Type&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; ribbon&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;RibbonButton&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}"&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;BasedOn&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;StaticResource&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; RibbonControlStyle&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}"&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Setter&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Property&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="Command"&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Value&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Binding&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Command&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}" /&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Style&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: green; font-size: 8pt;"&gt;&amp;lt;!-- RibbonToggleButton --&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Style&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; TargetType&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;x&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Type&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; ribbon&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;RibbonToggleButton&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}"&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;BasedOn&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;StaticResource&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; RibbonControlStyle&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}"&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Setter&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Property&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="Command"&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Value&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Binding&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Command&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}" /&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Setter&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Property&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="IsChecked"&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Value&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Binding&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; IsChecked&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}" /&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Style&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;...&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Grid.Resources&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Grid&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; font-size: 9.5pt;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;This pattern of factoring the visuals and the data helps maintain clean lines of separation between the &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/magazine/dd419663.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;View and the Model&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;. It also helps scenarios such as moving tasks back and forth between the &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbonquickaccesstoolbar.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonQuickAccessToolBar&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; and the main &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbon.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;Ribbon&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;, where the same data is visualized multiple different places.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Read &lt;a href="http://blogs.msdn.com/b/wpf/archive/2010/08/04/why-should-i-use-a-ribbonwindow.aspx" title="next post"&gt;next post&lt;/a&gt; for learn what using a RibbonWindow buys you.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10045836" width="1" height="1"&gt;</content><author><name>VarshaMahadevan</name><uri>http://blogs.msdn.com/VarshaMahadevan/ProfileUrlRedirect.ashx</uri></author><category term="WPF" scheme="http://blogs.msdn.com/b/wpf/archive/tags/WPF/" /><category term="Windows 7" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Windows+7/" /><category term="Ribbon" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Ribbon/" /></entry><entry><title>Add more content to my Simple Ribbon Application</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/wpf/archive/2010/08/04/add-more-content-to-my-simple-ribbon-application.aspx" /><id>http://blogs.msdn.com/b/wpf/archive/2010/08/04/add-more-content-to-my-simple-ribbon-application.aspx</id><published>2010-08-04T09:45:00Z</published><updated>2010-08-04T09:45:00Z</updated><content type="html">&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;To add more content to the&amp;nbsp;Simple Ribbon Application that we created in the &lt;a href="http://blogs.msdn.com/b/wpf/archive/2010/08/03/building-a-simple-ribbon-application-in-wpf.aspx" title="previous post"&gt;previous post&lt;/a&gt;, you can drag-drop variety of elements from the VS toolbox onto the Ribbon.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/6622.WPF-Ribbon-elements-in-the-VS-Toolbox.PNG" border="0" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpFirst" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l2 level1 lfo1;"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Drag &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbongroup.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonGroup&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; to the &lt;i style="mso-bidi-font-style: normal;"&gt;Home&lt;/i&gt; Tab and name it &lt;i style="mso-bidi-font-style: normal;"&gt;Group2&lt;/i&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpLast" style="text-indent: -0.25in; margin: 0in 0in 10pt 0.5in; mso-list: l2 level1 lfo1;"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Drag three &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribboncheckbox.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonCheckBox&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; controls to &lt;i style="mso-bidi-font-style: normal;"&gt;Group2&lt;/i&gt; and set the &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribboncontrolservice.smallimagesource.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;SmallImageSource&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; property on each using the property inspector.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="mso-no-proof: yes;"&gt;&lt;v:shapetype coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f" id="_x0000_t75"&gt;&lt;v:stroke joinstyle="miter"&gt;&lt;/v:stroke&gt;&lt;v:formulas&gt;&lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @0 1 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum 0 0 @1"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @2 1 2"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @3 21600 pixelWidth"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @3 21600 pixelHeight"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @0 0 1"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @6 1 2"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @7 21600 pixelWidth"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @8 21600 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @7 21600 pixelHeight"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @10 21600 0"&gt;&lt;/v:f&gt;&lt;/v:formulas&gt;&lt;v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"&gt;&lt;/v:path&gt;&lt;o:lock v:ext="edit" aspectratio="t"&gt;&lt;/o:lock&gt;&lt;/v:shapetype&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/0486.Post3-_2D00_-Simple-Ribbon-Application-with-RibbonCheckBoxes.png" border="0" /&gt;&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;The resultant XAML is as follows.&lt;/span&gt;&lt;/p&gt;
&lt;span style="font-family: Calibri; font-size: small;"&gt;
&lt;div style="mso-element: para-border-div; mso-border-alt: solid windowtext .5pt; border: windowtext 1pt solid; padding: 1pt;"&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-tab-count: 1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Grid&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; x&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;Name&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="LayoutRoot"&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Grid.Resources&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: green; font-size: 8pt;"&gt;&amp;lt;!-- RibbonControl --&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Style&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; x&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;Key&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="RibbonControlStyle"&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Setter&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Property&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="ribbon:RibbonControlService.Label"&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Value&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Binding&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Label&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}" /&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Setter&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Property&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="ribbon:RibbonControlService.LargeImageSource"&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Value&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Binding&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; LargeImage&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}" /&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Setter&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Property&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="ribbon:RibbonControlService.SmallImageSource"&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Value&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Binding&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; SmallImage&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}" /&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Setter&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Property&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="ribbon:RibbonControlService.ToolTipTitle"&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Value&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Binding&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; ToolTipTitle&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}" /&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Setter&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Property&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="ribbon:RibbonControlService.ToolTipDescription"&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Value&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Binding&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; ToolTipDescription&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}" /&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Setter&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Property&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="ribbon:RibbonControlService.ToolTipImageSource"&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Value&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Binding&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; ToolTipImage&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}" /&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Setter&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Property&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="ribbon:RibbonControlService.ToolTipFooterTitle"&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Value&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Binding&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; ToolTipFooterTitle&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}" /&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Setter&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Property&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="ribbon:RibbonControlService.ToolTipFooterDescription"&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Value&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Binding&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; ToolTipFooterDescription&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}" /&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Setter&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Property&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="ribbon:RibbonControlService.ToolTipFooterImageSource"&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Value&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Binding&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; ToolTipFooterImage&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}" /&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;...&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Style&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: green; font-size: 8pt;"&gt;&amp;lt;!-- RibbonButton --&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Style&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; TargetType&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;x&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Type&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; ribbon&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;RibbonButton&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}"&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;BasedOn&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;StaticResource&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; RibbonControlStyle&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}"&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Setter&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Property&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="Command"&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Value&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Binding&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Command&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}" /&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Style&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: green; font-size: 8pt;"&gt;&amp;lt;!-- RibbonToggleButton --&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Style&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; TargetType&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;x&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Type&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; ribbon&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;:&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;RibbonToggleButton&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}"&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;BasedOn&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;StaticResource&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; RibbonControlStyle&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}"&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Setter&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Property&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="Command"&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Value&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Binding&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Command&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}" /&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Setter&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Property&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="IsChecked"&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; Value&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;="{&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Binding&lt;/span&gt;&lt;span style="font-family: Consolas; color: red; font-size: 8pt;"&gt; IsChecked&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;}" /&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Style&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;...&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Grid.Resources&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-family: Consolas; color: #a31515; font-size: 8pt;"&gt;Grid&lt;/span&gt;&lt;span style="font-family: Consolas; color: blue; font-size: 8pt;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: 8pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/span&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;As you may have already noted, the main &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbon.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;Ribbon&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; control is similar to a TabControl and contains &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbontab.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonTabs&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;, which contain &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbongroup.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonGroups&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;, which in turn contain a variety of different Ribbon controls. (This is not an exhaustive list.)&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpFirst" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l3 level1 lfo2;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbonbutton.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonButton&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l3 level1 lfo2;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbontogglebutton.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonToggleButton&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l3 level1 lfo2;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbonradiobutton.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonRadioButton&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l3 level1 lfo2;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribboncheckbox.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonCheckBox&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l3 level1 lfo2;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbontextbox.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonTextBox&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l3 level1 lfo2;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbonmenubutton.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonMenuButton&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l3 level1 lfo2;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribbonsplitbutton.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonSplitButton&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpLast" style="text-indent: -0.25in; margin: 0in 0in 10pt 0.5in; mso-list: l3 level1 lfo2;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribboncombobox.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;RibbonComboBox&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;It is important to note that there are primarily three properties that constitute the &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/bb613548.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;content model&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; for these controls. &lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpFirst" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo3;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribboncontrolservice.label.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;Label&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo3;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribboncontrolservice.smallimagesource.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;SmallImageSource&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpLast" style="text-indent: -0.25in; margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo3;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribboncontrolservice.largeimagesource.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;LargeImageSource&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;These three properties enable a control to exist in a variety of different size variants. The three popular size variants are&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpFirst"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Large&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="MsoListParagraphCxSpMiddle" style="padding-left: 30px;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribboncontrolservice.largeimagesource.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;LargeImageSource&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; and &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribboncontrolservice.label.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;Label&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; are visible&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoListParagraphCxSpMiddle" style="padding-left: 30px;"&gt;&lt;span style="mso-no-proof: yes;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoListParagraphCxSpMiddle" style="padding-left: 30px;"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/1614.Post3-_2D00_-LargeButton.png" border="0" /&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpMiddle"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Medium&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="MsoListParagraphCxSpMiddle" style="padding-left: 30px;"&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribboncontrolservice.smallimagesource.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;SmallImageSource&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; and &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribboncontrolservice.label.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;Label&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; are visible&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoListParagraphCxSpMiddle" style="padding-left: 30px;"&gt;&lt;span style="mso-no-proof: yes;"&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/0412.Post3-_2D00_-MediumButton.png" border="0" /&gt;&lt;v:shape o:spid="_x0000_i1026" type="#_x0000_t75" id="Picture_x0020_5" style="width: 61.5pt; height: 17.25pt; visibility: visible; mso-wrap-style: square;"&gt;&lt;v:imagedata src="file:///C:\Users\varsham\AppData\Local\Temp\2\msohtmlclip1\01\clip_image005.emz"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoListParagraphCxSpMiddle"&gt;&lt;o:p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpMiddle"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Small&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="MsoListParagraphCxSpMiddle" style="padding-left: 30px;"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Only the &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/microsoft.windows.controls.ribbon.ribboncontrolservice.smallimagesource.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;SmallImageSource&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt; is visible&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoListParagraphCxSpLast" style="padding-left: 30px;"&gt;&lt;span style="mso-no-proof: yes;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="padding-left: 30px;"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/5287.Post3-_2D00_-SmallButton.png" border="0" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;These size variants for each control are pertinent to the &lt;/span&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ff701790.aspx"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;resizing behavior of the Ribbon&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;Read &lt;a href="http://blogs.msdn.com/b/wpf/archive/2010/08/04/bind-my-ribbon-ui-to-my-data-model.aspx" title="next post"&gt;next post&lt;/a&gt; to learn to bind your Ribbon UI to a data model.&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10045821" width="1" height="1"&gt;</content><author><name>VarshaMahadevan</name><uri>http://blogs.msdn.com/VarshaMahadevan/ProfileUrlRedirect.ashx</uri></author><category term="WPF" scheme="http://blogs.msdn.com/b/wpf/archive/tags/WPF/" /><category term="Windows 7" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Windows+7/" /><category term="Ribbon" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Ribbon/" /></entry><entry><title>Building a Simple Ribbon Application in WPF</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/wpf/archive/2010/08/03/building-a-simple-ribbon-application-in-wpf.aspx" /><link rel="enclosure" type="application/x-zip-compressed" length="9853" href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-10-04-54-69/WpfRibbonApplication1.zip" /><id>http://blogs.msdn.com/b/wpf/archive/2010/08/03/building-a-simple-ribbon-application-in-wpf.aspx</id><published>2010-08-03T17:16:00Z</published><updated>2010-08-03T17:16:00Z</updated><content type="html">&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;The simplest way to get started is to use the &lt;i style="mso-bidi-font-style: normal;"&gt;WPF Ribbon Application&lt;/i&gt; project template.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpFirst"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Install &lt;/span&gt;&lt;a href="http://go.microsoft.com/fwlink/?LinkID=186896"&gt;&lt;span style="font-family: Calibri; color: #0000ff; font-size: small;"&gt;VS 2010&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpMiddle"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Install &lt;/span&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=2bfc3187-74aa-4154-a670-76ef8bc2a0b4&amp;amp;displaylang=en"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Microsoft Ribbon for WPF&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpMiddle"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Launch VS 2010&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpLast"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Add New Project &amp;ndash; WPF Ribbon Application&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/2318.Simple-WPF-Ribbon-Application-UI-built-using-the-Project-Template.PNG" border="0" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;If you are not able to run VS 2010 then use the following steps.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpFirst"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Install &lt;/span&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=2bfc3187-74aa-4154-a670-76ef8bc2a0b4&amp;amp;displaylang=en"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Microsoft Ribbon for WPF&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div class="MsoListParagraphCxSpMiddle"&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Launch the attached project using VS 2008&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Fixup the references to RibbonControlsLibrary.dll and Microsoft.Windows.Shell.dll&amp;nbsp;to point to their&amp;nbsp;install location under the program files path.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Build and run the project&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: Calibri; font-size: small;"&gt;Read &lt;a href="http://blogs.msdn.com/b/wpf/archive/2010/08/04/add-more-content-to-my-simple-ribbon-application.aspx" title="next post"&gt;next post&lt;/a&gt; to learn to add more content to this simple Ribbon application.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10045469" width="1" height="1"&gt;</content><author><name>VarshaMahadevan</name><uri>http://blogs.msdn.com/VarshaMahadevan/ProfileUrlRedirect.ashx</uri></author><category term="WPF" scheme="http://blogs.msdn.com/b/wpf/archive/tags/WPF/" /><category term="Windows 7" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Windows+7/" /><category term="Ribbon" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Ribbon/" /></entry><entry><title>Introducing Microsoft Ribbon for WPF</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/wpf/archive/2010/08/03/introducing-microsoft-ribbon-for-wpf.aspx" /><id>http://blogs.msdn.com/b/wpf/archive/2010/08/03/introducing-microsoft-ribbon-for-wpf.aspx</id><published>2010-08-03T13:27:00Z</published><updated>2010-08-03T13:27:00Z</updated><content type="html">&lt;p&gt;They say that a picture speaks a thousand words. So here are some to whet your appetite. Read &lt;a href="http://blogs.msdn.com/b/wpf/archive/2010/08/03/building-a-simple-ribbon-application-in-wpf.aspx" title="next post"&gt;next post &lt;/a&gt;to get started using the WPF Ribbon. Pete Brown's &lt;a href="http://10rem.net/blog/2010/08/02/announcing-microsoft-ribbon-for-wpf-rtw" title="blog post about the WPF Ribbon "&gt;blog post about the WPF Ribbon &lt;/a&gt;makes an interesting read as well.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;WPF Ribbon Application VS 2010 Project Template&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/5327.WPF-Ribbon-Application-VS-2010-Project-Template.PNG" border="0" /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;WPF Ribbon Application Blend 4 Project Template&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/5466.WPF-Ribbon-Application-Blend-4-Project-Template.PNG" border="0" /&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Simple WPF Ribbon Application UI built using the Project Template&lt;/strong&gt;&lt;/p&gt;
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/0434.Simple-WPF-Ribbon-Application-UI-built-using-the-Project-Template.PNG" border="0" /&gt;&lt;br /&gt;&amp;nbsp;&lt;/strong&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;WPF Ribbon Window Item Template&lt;/strong&gt;&lt;/p&gt;
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/6354.WPF-Ribbon-Window-Item-Template.PNG" border="0" /&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;WPF Ribbon elements in the VS Toolbox&lt;/strong&gt;&lt;/p&gt;
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/0564.WPF-Ribbon-elements-in-the-VS-Toolbox.PNG" border="0" /&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit Ribbon element properties in VS Property Editor&lt;/strong&gt;&lt;/p&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;strong&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/1732.Edit-Ribbon-element-properties-in-VS-Property-Editor.PNG" border="0" /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Office Word like UI using WPF Ribbon&lt;/strong&gt;&lt;/p&gt;
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/2474.Office-Word-like-UI-using-WPF-Ribbon.PNG" border="0" /&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Office Word like UI in a WPF Browser Application&lt;/strong&gt;&lt;/p&gt;
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/8814.Office-Word-like-UI-in-a-WPF-Browser-Application.PNG" border="0" /&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;RibbonApplicationMenu in a WPF Ribbon&lt;/strong&gt;&lt;/p&gt;
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/1643.RibbonApplicationMenu-in-a-WPF-Ribbon.png" border="0" /&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;RibbonQuickAccessToolbar in a WPF Ribbon&lt;/strong&gt;&lt;/p&gt;
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/4442.RibbonQuickAccessToolbar-in-a-WPF-Ribbon.png" border="0" /&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;RibbonContextualTabGroups in a WPF Ribbon&lt;/strong&gt;&lt;/p&gt;
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/2061.RibbonContextualTabGroups-in-a-WPF-Ribbon.PNG" border="0" /&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;RibbonMenuButtons containing RibbonMenuItems&lt;/strong&gt;&lt;/p&gt;
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/1104.RibbonMenuButtons-containing-RibbonMenuItems.png" border="0" /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;RibbonMenuItem containing RibbonGallery and RibbonMenuItems&lt;/strong&gt;&lt;/p&gt;
&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/4382.RibbonMenuItem-containing-RibbonGallery-and-RibbonMenuItems.png" border="0" /&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;RibbonSplitButton containing RibbonGallery and RibbonMenuItems&lt;/strong&gt;&lt;/p&gt;
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/7220.RibbonSplitButton-containing-RibbonGallery-and-RibbonMenuItems.png" border="0" /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;RibbonComboBox containing a RibbonGallery and previewing changes&lt;/strong&gt;&lt;/p&gt;
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/7206.RibbonComboBox-containing-a-RibbonGallery-and-previewing-changes.png" border="0" /&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;RibbonGallery with filtering&lt;/strong&gt;&lt;/p&gt;
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/7043.RibbonGallery-with-filtering.png" border="0" /&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;RibbonGallery with hover zoom&lt;/strong&gt;&lt;/p&gt;
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/2570.RibbonGallery-with-hover-zoom.png" border="0" /&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;RibbonGallery with resizing&lt;/strong&gt;&lt;/p&gt;
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/3326.RibbonGallery-with-resizing.png" border="0" /&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;RibbonTabs with scrolling&lt;/strong&gt;&lt;/p&gt;
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/1754.RibbonTabs-with-scrolling.PNG" border="0" /&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;RibbonGroups with scrolling&lt;/strong&gt;&lt;/p&gt;
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/7183.RibbonGroups-with-scrolling.PNG" border="0" /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Minimized Ribbon&lt;/strong&gt;&lt;/p&gt;
&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/1663.Minimized-Ribbon.PNG" border="0" /&gt;&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Collapsed Ribbon&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/2084.Collapsed-Ribbon.PNG" border="0" /&gt;&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Rich RibbonToolTips&lt;/strong&gt;&lt;/p&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/5531.Rich-RibbonToolTips.png" border="0" /&gt;&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;KeyTips&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/5344.KeyTips.png" border="0" /&gt;&lt;/p&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;WPF Ribbon under High Contrast settings&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;strong&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/3513.WPF-Ribbon-under-High-Contrast-settings.png" border="0" /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;WPF Ribbon under Right-to-Left settings&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;strong&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/6557.WPF-Ribbon-under-Right_2D00_to_2D00_Left-settings.png" border="0" /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Colorized WPF Ribbon&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;strong&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/3021.Colorized-WPF-Ribbon.PNG" border="0" /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;WPF Ribbon UI Automation Tree&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="http://blogs.msdn.com/resized-image.ashx/__size/800x0/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64/7802.Ribbon-UI-Automation-Tree.png" border="0" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Read &lt;a href="http://blogs.msdn.com/b/wpf/archive/2010/08/03/building-a-simple-ribbon-application-in-wpf.aspx" title="next post"&gt;next post &lt;/a&gt;to get started using the WPF Ribbon.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10045359" width="1" height="1"&gt;</content><author><name>VarshaMahadevan</name><uri>http://blogs.msdn.com/VarshaMahadevan/ProfileUrlRedirect.ashx</uri></author><category term="WPF" scheme="http://blogs.msdn.com/b/wpf/archive/tags/WPF/" /><category term="Windows 7" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Windows+7/" /><category term="Ribbon" scheme="http://blogs.msdn.com/b/wpf/archive/tags/Ribbon/" /></entry><entry><title>Microsoft XAML Toolkit CTP - July 2010</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/wpf/archive/2010/07/28/microsoft-xaml-toolkit-ctp-july-2010.aspx" /><id>http://blogs.msdn.com/b/wpf/archive/2010/07/28/microsoft-xaml-toolkit-ctp-july-2010.aspx</id><published>2010-07-28T22:12:32Z</published><updated>2010-07-28T22:12:32Z</updated><content type="html">&lt;p class="ExternalClassBD99F42D679044419C6200CE282B9758"&gt;We have just released the Second CTP of the XAML Tool Kit.&lt;/p&gt;  &lt;p&gt;There is still some work to do before the XAML Toolkit is at full release quality, so this is still labeled as a CTP. However, we are confident that it is stable, usable, and suitable for the majority of usage scenarios and can be used, at your discretion, in production apps (in accordance with the updated licensing terms).    &lt;br /&gt;There have been lots of issues fixed and&amp;#160; improvements to the XAML Toolkit since the November 2009 CTP and we intend to further improve it from customer feedback on this release. We invite you to try it out and &lt;a href="http://code.msdn.microsoft.com/XAML/Thread/List.aspx"&gt;let us know&lt;/a&gt; what you think! &lt;/p&gt;  &lt;p class="ExternalClassBD99F42D679044419C6200CE282B9758"&gt;The XAML Toolkit &lt;a href="http://code.msdn.microsoft.com/XAML"&gt;&lt;strong&gt;&lt;u&gt;bits are available here&lt;/u&gt;&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;  &lt;h3&gt;Overview&lt;/h3&gt;  &lt;h5 class="ExternalClassBD99F42D679044419C6200CE282B9758"&gt;Features of the XAML Toolkit&lt;/h5&gt;  &lt;div class="ExternalClassBD99F42D679044419C6200CE282B9758"&gt;   &lt;ul&gt;     &lt;li&gt;&lt;a href="http://blogs.msdn.com/b/wpf/archive/2010/07/28/microsoft-xaml-toolkit-ctp-july-2010-xaml-dom.aspx"&gt;XamlDom&lt;/a&gt; – A XAML DOM that is LINQ friendly.&amp;#160; Enables easy static analysis. &lt;/li&gt;      &lt;li&gt;&lt;a href="http://blogs.msdn.com/b/wpf/archive/2010/07/28/microsoft-xaml-toolkit-ctp-july-2010-fxcop-integration.aspx"&gt;XAML FxCop integration&lt;/a&gt; – You can run FxCop rules that analyze your XAML against rules. &lt;/li&gt;      &lt;li&gt;&lt;a href="http://blogs.msdn.com/b/wpf/archive/2010/07/28/microsoft-xaml-toolkit-ctp-july-2010-fxcop-rule-authoring.aspx"&gt;XAML FxCop rule authoring&lt;/a&gt; - A BaseXamlRule implementation that allows you to write custom FxCop rules that target XAML.&amp;#160; We’re also shipping a couple of simple ones including a ValidationRule that will validate your XAML. &lt;/li&gt;      &lt;li&gt;&lt;a href="http://blogs.msdn.com/b/wpf/archive/2010/07/28/microsoft-xaml-toolkit-ctp-july-2010-silverlight-features.aspx"&gt;SilverlightSchemaContext&lt;/a&gt; – A XamlSchemaContext that allows System.Xaml to parse Silverlight XAML for tools use. &lt;/li&gt;   &lt;/ul&gt; &lt;/div&gt;  &lt;h5&gt;What’s New in the XAML Toolkit CTP – July 2010&lt;/h5&gt;  &lt;ul&gt;   &lt;li&gt;The UISchemaContext has been removed. &lt;/li&gt;    &lt;li&gt;The SilverlightSchemaContext now supports Silverlight Version 3.0, 4.0 and Phone 7. &lt;/li&gt;    &lt;li&gt;A &lt;a href="http://blogs.msdn.com/b/wpf/archive/2010/07/28/microsoft-xaml-toolkit-ctp-july-2010-silverlight-features.aspx"&gt;SilverlightAssemblyHelper&lt;/a&gt; static class has been added to help with loading the correct Silverlight schema version. &lt;/li&gt;    &lt;li&gt;License terms permit usage in live operating environments (with some restrictions) and distribution of the toolkit binaries. Please see the &lt;a href="http://code.msdn.microsoft.com/XAML/Project/License.aspx"&gt;Microsoft XAML Toolkit License Terms&lt;/a&gt; for full details. &lt;/li&gt; &lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10043607" width="1" height="1"&gt;</content><author><name>brianchapman</name><uri>http://blogs.msdn.com/brianchapman/ProfileUrlRedirect.ashx</uri></author></entry><entry><title>Microsoft XAML Toolkit CTP – July 2010: FxCop Integration</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/wpf/archive/2010/07/28/microsoft-xaml-toolkit-ctp-july-2010-fxcop-integration.aspx" /><id>http://blogs.msdn.com/b/wpf/archive/2010/07/28/microsoft-xaml-toolkit-ctp-july-2010-fxcop-integration.aspx</id><published>2010-07-28T22:11:14Z</published><updated>2010-07-28T22:11:14Z</updated><content type="html">&lt;div class="ExternalClass2EDBB931E9344A8196F7F23101A5A2F0"&gt;   &lt;p&gt;This post describes the FxCop Integration feature of the XAML Toolkit CTP – July 2010, announced &lt;a href="http://blogs.msdn.com/b/wpf/archive/2010/07/28/microsoft-xaml-toolkit-ctp-july-2010.aspx"&gt;here&lt;/a&gt; and downloadable &lt;a href="http://code.msdn.com/xaml"&gt;here&lt;/a&gt;.&amp;#160; It borrows heavily from &lt;a href="http://michaelshim.com/blog/2009/11/23/running-fxcop-rules-against-silverlight-xaml/"&gt;Mike Shim’s earlier post on XAML FxCop&lt;/a&gt;.&lt;/p&gt;    &lt;p&gt;The tool kit’s integration with FxCop has been tested against FxCop version 1.36 but that version of FxCop is a .Net 3 application and must be configured to run in .Net 4 in order to use the XAML FxCop rules.&lt;/p&gt;    &lt;p&gt;To configure FxCop 1.36 to run on .Net 4.0 you need to add the following XML to your FxCop.exe.config file:&lt;/p&gt;    &lt;div id="codeSnippetWrapper"&gt;     &lt;div style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px" id="codeSnippet"&gt;       &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum1"&gt;   1:&lt;/span&gt; &lt;span style="color: #0000ff"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000"&gt;startup&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;

      &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum2"&gt;   2:&lt;/span&gt;   &lt;span style="color: #0000ff"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: #800000"&gt;supportedRuntime&lt;/span&gt; &lt;span style="color: #ff0000"&gt;version&lt;/span&gt;&lt;span style="color: #0000ff"&gt;=&amp;quot;v4.0.30319&amp;quot;&lt;/span&gt;&lt;span style="color: #0000ff"&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;

      &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum3"&gt;   3:&lt;/span&gt; &lt;span style="color: #0000ff"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: #800000"&gt;startup&lt;/span&gt;&lt;span style="color: #0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
    &lt;/div&gt;
Alternately, the toolkit provides a replacement FxCop.exe.config.&lt;/div&gt;

  &lt;h5&gt;Using FxCop&lt;/h5&gt;

  &lt;div&gt;Start FxCop and add the XAML rules.&lt;/div&gt;

  &lt;div&gt;&amp;#160;&lt;/div&gt;

  &lt;div&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64-metablogapi/5342.AddFxCopRule_5F00_16872981.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="AddFxCopRule" border="0" alt="AddFxCopRule" src="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64-metablogapi/7418.AddFxCopRule_5F00_thumb_5F00_3FCE4BB2.png" width="641" height="485" /&gt;&lt;/a&gt; &lt;/div&gt;

  &lt;p&gt;Go to the folder where you installed the XAML Toolkit (typically C:\Program Files\Microsoft XAML Toolkit\) and add Microsoft.Xaml.Tools.FxCop.dll&lt;/p&gt;

  &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64-metablogapi/2727.XamlToolsFxCopdll_5F00_429400A5.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="XamlToolsFxCopdll" border="0" alt="XamlToolsFxCopdll" src="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64-metablogapi/4300.XamlToolsFxCopdll_5F00_thumb_5F00_01F1B436.png" width="604" height="484" /&gt;&lt;/a&gt; &lt;/p&gt;

  &lt;p&gt;&lt;/p&gt;

  &lt;p&gt;You should see all the XAML rules added to the Rules section.&lt;/p&gt;

  &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64-metablogapi/4774.XamlRules_5F00_666CB232.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="XamlRules" border="0" alt="XamlRules" src="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64-metablogapi/0160.XamlRules_5F00_thumb_5F00_7AF201B0.png" width="640" height="484" /&gt;&lt;/a&gt; &lt;/p&gt;

  &lt;p&gt;Go back to “Project” –&amp;gt; “Add Targets” and add your Silverlight or WPF or Workflow assemblies that have XAML resources.&lt;/p&gt;

  &lt;h5&gt;Prompts for Dependent Assemblies&lt;/h5&gt;

  &lt;p&gt;Silverlight - You should no longer get a popup asking you to find System.Windows.dll when you run the rules (with “Analyze”).&amp;#160; When loading Silverlight targets you will be still be prompted to supply the path to the correct mscorlib.dll for your version of Silverlight.&amp;#160; The path to the Silverlight mscorlib.dll should be in the reference assemblies of the Silverlight Visual Studio project used to build the target assembly.&amp;#160; Typically found at: &lt;u&gt;C:\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight&lt;/u&gt;.&lt;/p&gt;

  &lt;p&gt;WPF – You will get prompted for the path to PresentationFramework.dll when Analyzing WPF XAML assemblies. Again, the best answer is the path found in the project file of solution that created the assembly, typically found at: &lt;u&gt;C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0&lt;/u&gt;.&lt;/p&gt;

  &lt;p&gt;64bit – Remember, on 64 bit machines the above paths are modified to: &lt;u&gt;C:\Program Files &lt;strong&gt;(x86)&lt;/strong&gt;\Reference Assemblies&lt;/u&gt;.&lt;/p&gt;

  &lt;h5&gt;Analyze&lt;/h5&gt;

  &lt;p&gt;If everything goes smoothly, you can now press “Analyze” and you see the rules run.&amp;#160;&amp;#160; And there will be some output like:&lt;/p&gt;

  &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64-metablogapi/0676.FinalRules_5F00_2C7D6F46.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="FinalRules" border="0" alt="FinalRules" src="http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-38-64-metablogapi/3716.FinalRules_5F00_thumb_5F00_450D0C96.png" width="640" height="484" /&gt;&lt;/a&gt; &lt;/p&gt;

  &lt;p&gt;&lt;/p&gt;

  &lt;p&gt;&lt;/p&gt;

  &lt;p&gt;&lt;/p&gt;

  &lt;p&gt;&lt;/p&gt;

  &lt;p&gt;You should be able to do similar things for adding your own custom rules to FxCop as well.&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10043605" width="1" height="1"&gt;</content><author><name>brianchapman</name><uri>http://blogs.msdn.com/brianchapman/ProfileUrlRedirect.ashx</uri></author></entry><entry><title>Microsoft XAML Toolkit CTP – July 2010: XAML DOM</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/wpf/archive/2010/07/28/microsoft-xaml-toolkit-ctp-july-2010-xaml-dom.aspx" /><id>http://blogs.msdn.com/b/wpf/archive/2010/07/28/microsoft-xaml-toolkit-ctp-july-2010-xaml-dom.aspx</id><published>2010-07-28T22:04:02Z</published><updated>2010-07-28T22:04:02Z</updated><content type="html">&lt;div class="ExternalClass557B1723EDD648F5886351DCD9976D42"&gt;   &lt;h1&gt;&lt;/h1&gt;    &lt;p&gt;This post describes the XAML DOM feature of the XAML Toolkit CTP – July 2010, announced &lt;a href="http://blogs.msdn.com/b/wpf/archive/2010/07/28/microsoft-xaml-toolkit-ctp-july-2010.aspx"&gt;here&lt;/a&gt; and downloadable &lt;a href="http://code.msdn.com/xaml"&gt;here&lt;/a&gt;.&amp;#160; It borrows heavily from &lt;a href="http://michaelshim.com/blog/2009/11/19/xaml-toolkit-ctp/"&gt;Mike Shim’s post announcing the first CTP&lt;/a&gt;.&lt;/p&gt;    &lt;p&gt;Here’s a simple example of reading a XAML document and writing out all the types used:&lt;/p&gt;    &lt;div id="codeSnippetWrapper"&gt;     &lt;div style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px" id="codeSnippet"&gt;       &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum1"&gt;   1:&lt;/span&gt; XamlDomObject rootObject = XamlDomServices.Load(&lt;span style="color: #006080"&gt;&amp;quot;Window1.xaml&amp;quot;&lt;/span&gt;);&lt;/pre&gt;

      &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum2"&gt;   2:&lt;/span&gt;&amp;#160; &lt;/pre&gt;

      &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum3"&gt;   3:&lt;/span&gt; &lt;span style="color: #0000ff"&gt;foreach&lt;/span&gt; (XamlDomObject domObject &lt;span style="color: #0000ff"&gt;in&lt;/span&gt; rootObject.DescendantsAndSelf())&lt;/pre&gt;

      &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum4"&gt;   4:&lt;/span&gt; {&lt;/pre&gt;

      &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum5"&gt;   5:&lt;/span&gt;   Console.WriteLine(domObject.Type);&lt;/pre&gt;

      &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum6"&gt;   6:&lt;/span&gt; }&lt;/pre&gt;
    &lt;/div&gt;
  &lt;/div&gt;

  &lt;p&gt;By calling XamlDomServices.Load, we get a XamlDomObject for the root object in the XAML document.&amp;#160; From there, we can call DescendantsAndSelf (similar to XML XElement) on the root object which returns an IEnumerable&amp;lt;XamlDomObject&amp;gt;.&lt;/p&gt;

  &lt;p&gt;Here’s another example.&amp;#160; Imagine you want to set Background on every Control in your document that doesn’t already have one:&lt;/p&gt;

  &lt;div id="codeSnippetWrapper"&gt;
    &lt;div style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px" id="codeSnippet"&gt;
      &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum1"&gt;   1:&lt;/span&gt; XamlDomObject rootObject = XamlDomServices.Load(&lt;span style="color: #006080"&gt;&amp;quot;Window1.xaml&amp;quot;&lt;/span&gt;);&lt;/pre&gt;

      &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum2"&gt;   2:&lt;/span&gt; &lt;span style="color: #0000ff"&gt;foreach&lt;/span&gt; (XamlDomObject objectNode &lt;span style="color: #0000ff"&gt;in&lt;/span&gt;&lt;/pre&gt;

      &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum3"&gt;   3:&lt;/span&gt;         from control &lt;span style="color: #0000ff"&gt;in&lt;/span&gt; rootObject.DescendantsAndSelf(&lt;span style="color: #0000ff"&gt;typeof&lt;/span&gt;(Control))&lt;/pre&gt;

      &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum4"&gt;   4:&lt;/span&gt;         &lt;span style="color: #0000ff"&gt;where&lt;/span&gt; !control.HasMember(&lt;span style="color: #006080"&gt;&amp;quot;Background&amp;quot;&lt;/span&gt;)&lt;/pre&gt;

      &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum5"&gt;   5:&lt;/span&gt;         select control)&lt;/pre&gt;

      &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum6"&gt;   6:&lt;/span&gt; {&lt;/pre&gt;

      &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum7"&gt;   7:&lt;/span&gt;   objectNode.SetMemberValue(&lt;span style="color: #006080"&gt;&amp;quot;Background&amp;quot;&lt;/span&gt;, &lt;span style="color: #006080"&gt;&amp;quot;Red&amp;quot;&lt;/span&gt;);&lt;/pre&gt;

      &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum8"&gt;   8:&lt;/span&gt; }&lt;/pre&gt;

      &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum9"&gt;   9:&lt;/span&gt; XamlDomServices.Save(rootObject, &lt;span style="color: #006080"&gt;&amp;quot;NewFile.xaml&amp;quot;&lt;/span&gt;);&lt;/pre&gt;
    &lt;/div&gt;
  &lt;/div&gt;

  &lt;p&gt;The call to DescendantsAndSelf this time is passed typeof(Control).&amp;#160; This will limit it to return only things that are assignable to Control.&amp;#160; We are leveraging LINQ to easily restrict the returned XamlDomObjects to only the ones without a “Background” member.&amp;#160; We then set the background property to Red with SetMemberValue(&amp;quot;Background&amp;quot;, &amp;quot;Red&amp;quot;).&amp;#160; Finally, we call XamlDomServices.Save to save the file back out to XAML.&amp;#160; This is a pretty simple example of a transformation but we can do much more complex transformations with our XamlDom.&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10043604" width="1" height="1"&gt;</content><author><name>brianchapman</name><uri>http://blogs.msdn.com/brianchapman/ProfileUrlRedirect.ashx</uri></author></entry><entry><title>Microsoft XAML Toolkit CTP – July 2010: FxCop Rule Authoring</title><link rel="alternate" type="text/html" href="http://blogs.msdn.com/b/wpf/archive/2010/07/28/microsoft-xaml-toolkit-ctp-july-2010-fxcop-rule-authoring.aspx" /><id>http://blogs.msdn.com/b/wpf/archive/2010/07/28/microsoft-xaml-toolkit-ctp-july-2010-fxcop-rule-authoring.aspx</id><published>2010-07-28T22:00:54Z</published><updated>2010-07-28T22:00:54Z</updated><content type="html">&lt;p&gt;The XAML toolkit, announced &lt;a href="http://blogs.msdn.com/b/wpf/archive/2010/07/28/microsoft-xaml-toolkit-ctp-july-2010.aspx"&gt;here&lt;/a&gt; and downloadable &lt;a href="http://code.msdn.com/xaml"&gt;here&lt;/a&gt;, provides a number of FxCop rules for analyzing your XAML.&amp;#160; This post describes how the XAML Toolkit also helps you write FxCop rules.&amp;#160; &lt;/p&gt;  &lt;h3&gt;Writing an FxCop Rule&lt;/h3&gt;  &lt;p&gt;There are resources on the net describing how to write an FxCop rule.&amp;#160; You can read the &lt;a href="http://msdn.microsoft.com/en-us/magazine/cc188721.aspx"&gt;original MSDN article here&lt;/a&gt; or a newer posting on the &lt;a href="http://blogs.msdn.com/b/codeanalysis/archive/2010/03/26/how-to-write-custom-static-code-analysis-rules-and-integrate-them-into-visual-studio-2010.aspx"&gt;FxCop team blog here&lt;/a&gt;.&amp;#160; The difference here is that the XAML Toolkit has already sub-classed the BaseIntrospectionRule with the BaseXamlRule.&lt;/p&gt;  &lt;p&gt;BaseXamlRule implements the Check(Resource resource) method.&amp;#160; This method will:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Find the XAML/BAML resource &lt;/li&gt;    &lt;li&gt;Determine the resource’s type (Silverlight, WPF, other), &lt;/li&gt;    &lt;li&gt;Load the proper Schema Context &lt;/li&gt;    &lt;li&gt;Load the XAML or BAML content into a XAML DOM &lt;/li&gt;    &lt;li&gt;Calls a new abstract method CheckXaml() &lt;/li&gt; &lt;/ul&gt;  &lt;div&gt;   &lt;div style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px" id="codeSnippet"&gt;     &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum1"&gt;   1:&lt;/span&gt; public abstract void CheckXaml(XamlDomObject rootObjectNode,&lt;/pre&gt;
&lt;!--crlf--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum2"&gt;   2:&lt;/span&gt;                                XamlSchemaContext schemaContext,&lt;/pre&gt;
&lt;!--crlf--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum3"&gt;   3:&lt;/span&gt;                                string resourceName);&lt;/pre&gt;
&lt;!--crlf--&gt;&lt;/!--crlf--&gt;&lt;/!--crlf--&gt;&lt;/!--crlf--&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;div&gt;&amp;#160;&lt;/div&gt;

&lt;div&gt;To implement a XAML FxCop rule you implement the CheckXaml() method, and not the Check() method.&lt;/div&gt;

&lt;h3&gt;Restricting rules&lt;/h3&gt;

&lt;div&gt;Not all XAML rules apply to all flavors of XAML.&amp;#160; For example you might write a rule that should only run with Silverlight XAML.&amp;#160; For this purpose the BaseXamlRule has a virtual method IsRuleValidForXamlFlavor().&lt;/div&gt;

&lt;div&gt;&amp;#160;&lt;/div&gt;

&lt;div id="codeSnippetWrapper"&gt;
  &lt;div style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px" id="codeSnippet"&gt;
    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum1"&gt;   1:&lt;/span&gt; internal virtual bool IsRuleValidForXamlFlavor(ResourceType xamlFlavor)&lt;/pre&gt;
&lt;!--crlf--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum2"&gt;   2:&lt;/span&gt; {&lt;/pre&gt;
&lt;!--crlf--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum3"&gt;   3:&lt;/span&gt;     return true;&lt;/pre&gt;
&lt;!--crlf--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum4"&gt;   4:&lt;/span&gt; }&lt;/pre&gt;
&lt;!--crlf--&gt;&lt;/!--crlf--&gt;&lt;/!--crlf--&gt;&lt;/!--crlf--&gt;&lt;/!--crlf--&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;div&gt;The values of ResourceType are:&lt;/div&gt;

&lt;div id="codeSnippetWrapper"&gt;
  &lt;div style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px" id="codeSnippet"&gt;
    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum1"&gt;   1:&lt;/span&gt; internal enum ResourceType&lt;/pre&gt;
&lt;!--crlf--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum2"&gt;   2:&lt;/span&gt; {&lt;/pre&gt;
&lt;!--crlf--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum3"&gt;   3:&lt;/span&gt;     SimpleXAML,&lt;/pre&gt;
&lt;!--crlf--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum4"&gt;   4:&lt;/span&gt;     Workflow,&lt;/pre&gt;
&lt;!--crlf--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum5"&gt;   5:&lt;/span&gt;     WPF,&lt;/pre&gt;
&lt;!--crlf--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum6"&gt;   6:&lt;/span&gt;     Silverlight&lt;/pre&gt;
&lt;!--crlf--&gt;

    &lt;pre style="border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"&gt;&lt;span style="color: #606060" id="lnum7"&gt;   7:&lt;/span&gt; }&lt;/pre&gt;
&lt;!--crlf--&gt;&lt;/!--crlf--&gt;&lt;/!--crlf--&gt;&lt;/!--crlf--&gt;&lt;/!--crlf--&gt;&lt;/!--crlf--&gt;&lt;/!--crlf--&gt;&lt;/!--crlf--&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;div&gt;You don’t need to implement this method in every XAML rule.&amp;#160; The base implementation returns “true”.&amp;#160; But if you need to exclude your rule from some flavors of XAML you can do it here.&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10043602" width="1" height="1"&gt;</content><author><name>brianchapman</name><uri>http://blogs.msdn.com/brianchapman/ProfileUrlRedirect.ashx</uri></author></entry></feed>