{"id":3187,"date":"2020-04-03T14:57:16","date_gmt":"2020-04-03T12:57:16","guid":{"rendered":"http:\/\/www.capri-soft.de\/blog\/?p=3187"},"modified":"2020-04-06T11:00:06","modified_gmt":"2020-04-06T09:00:06","slug":"visual-studio-2013-net-wpf-where-do-i-get-can-i-find-the-wpf-ribbon-control","status":"publish","type":"post","link":"https:\/\/www.capri-soft.de\/blog\/?p=3187","title":{"rendered":"Visual Studio 2013 .NET WPF : Where do i get \/ can i find the WPF Ribbon Control?"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Problem<\/h2>\n\n\n\n<p>According to the .NET documentation the Ribbon Control should be available since WPF 4.5, what means is available since .NET Framework 4.5 . But you can not find it? Are you even thinking about the download of the Ribbon control for older versions? Not necessary, please see the following points&#8230;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Approach<\/h2>\n\n\n\n<p>We have to find out the right moment when it is generally possible to use the Ribbon control.<br><br>The following table shows, that the first version of WPF (3.0) was released with the .NET Framework 3.0. As you can see the version number of WPF is maintained synchron with the version number of the .NET framework.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th>WPF Version<\/th><th>Release (YYYY-MM)<\/th><th>.NET Version<\/th><th>Visual Studio Version<\/th><th>Major Features<\/th><\/tr><tr><td>3.0<\/td><td>2006-11<\/td><td>3.0<\/td><td>N\/A<\/td><td>Initial Release.<br>WPF development can be done with VS 2005 (released in Nov 2005) too with few additions as described&nbsp;<a href=\"http:\/\/blogs.msdn.com\/b\/tims\/archive\/2006\/12\/20\/building-a-perfect-wpf-developer-workstation.aspx\">here<\/a>.<\/td><\/tr><tr><td>3.5<\/td><td>2007-11<\/td><td>3.5<\/td><td>VS 2008<\/td><td>Changes and improvements in:<br>Application model, data binding, controls, documents, annotations, and 3-D UI elements.<\/td><\/tr><tr><td>3.5 SP1<\/td><td>2008-08<\/td><td>3.5 SP1<\/td><td>N\/A<\/td><td>Native splash screen support, New WebBrowser control, DirectX pixel shader support.<br>Faster startup time and improved performance for Bitmap effects.<\/td><\/tr><tr><td>4.0<\/td><td>2010-04<\/td><td>4.0<\/td><td>VS 2010<\/td><td>New controls: Calendar, DataGrid, and DatePicker.<br>Multi-Touch and Manipulation<\/td><\/tr><tr><td>4.5<\/td><td>2012-08<\/td><td>4.5<\/td><td>VS 2012<\/td><td>New Ribbon control<br>New INotifyDataErrorInfo interface<\/td><\/tr><tr><td>4.5.1<\/td><td>2013-10<\/td><td>4.5.1<\/td><td>VS 2013<\/td><td>No Major Change<\/td><\/tr><tr><td>4.5.2<\/td><td>2014-05<\/td><td>4.5.2<\/td><td>N\/A<\/td><td>No Major Change<\/td><\/tr><tr><td>4.6<\/td><td>2015-07<\/td><td>4.6<\/td><td>VS 2015<\/td><td>Transparent child window support<br>HDPI and Touch improvements<\/td><\/tr><\/tbody><\/table><figcaption>Which WPF Version is included in which version of the .NET Framework?<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Solution<\/h2>\n\n\n\n<p>When you have installed at least .NET Framework 4.5 you can Add the Reference &#8222;System.Windows.Control.Ribbon&#8220; as follows:<\/p>\n\n\n\n<p>1.) Expand the tree in in your Solution Explorer of you WPF application<\/p>\n\n\n\n<p>2.) Right-click the &#8222;Add References&#8220; entry and choose &#8222;Add Reference&#8220;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"401\" height=\"266\" data-attachment-id=\"3188\" data-permalink=\"https:\/\/www.capri-soft.de\/blog\/?attachment_id=3188\" data-orig-file=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/04\/image-1.png?fit=401%2C266&amp;ssl=1\" data-orig-size=\"401,266\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/04\/image-1.png?fit=401%2C266&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/04\/image-1.png?resize=401%2C266&#038;ssl=1\" alt=\"\" class=\"wp-image-3188\" srcset=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/04\/image-1.png?w=401&amp;ssl=1 401w, https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/04\/image-1.png?resize=300%2C199&amp;ssl=1 300w\" sizes=\"auto, (max-width: 401px) 100vw, 401px\" \/><figcaption>In the Solution Explorer of your WPF Application right-click the References entry and choose &#8222;Add Reference&#8220;<\/figcaption><\/figure><\/div>\n\n\n\n<p>3.)  In the following dialog search for &#8222;Ribbon&#8220; in the search field on the upper right<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"474\" height=\"326\" data-attachment-id=\"3189\" data-permalink=\"https:\/\/www.capri-soft.de\/blog\/?attachment_id=3189\" data-orig-file=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/04\/image-2.png?fit=800%2C550&amp;ssl=1\" data-orig-size=\"800,550\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-2\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/04\/image-2.png?fit=474%2C326&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/04\/image-2.png?resize=474%2C326&#038;ssl=1\" alt=\"\" class=\"wp-image-3189\" srcset=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/04\/image-2.png?w=800&amp;ssl=1 800w, https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/04\/image-2.png?resize=300%2C206&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/04\/image-2.png?resize=768%2C528&amp;ssl=1 768w\" sizes=\"auto, (max-width: 474px) 100vw, 474px\" \/><figcaption>Search for Ribbon in the Dialog that appears by using the textbox on the upper right corner<\/figcaption><\/figure>\n\n\n\n<p>4.) After that you should be able to add the reference by using the checkbox<\/p>\n\n\n\n<p>5.) In your XAML Code you are now able to use the &lt;Ribbon\/&gt; Tag<\/p>\n\n\n\n<p>Optional: 6.) If you want to use a RibbonWindow instead of a WPF Window which allows you to have the Quick Access Controls at the top of the window, you have to do the declaration in the head of MainWindow.xaml as follows:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&lt;ribbon:RibbonWindow x:Class=&quot;WPFTutorial.MainWindow&quot;\n        xmlns=&quot;http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\/presentation&quot;\n        xmlns:x=&quot;http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml&quot;\n        xmlns:ribbon=&quot;clr-namespace:System.Windows.Controls.Ribbon;assembly=System.Windows.Controls.Ribbon&quot;\n        Title=&quot;WPF Layoutmanager&quot; Height=&quot;399&quot; Width=&quot;763&quot;&gt;\n    &lt;DockPanel LastChildFill=&quot;True&quot;&gt;\n        &lt;Ribbon DockPanel.Dock=&quot;Top&quot; &gt;\n        &lt;\/Ribbon&gt;\n         &lt;!-- Put the last Child here --&gt;\n    &lt;\/DockPanel&gt;\n&lt;\/ribbon:RibbonWindow&gt;\n<\/pre><\/div>\n\n\n<p>Additionally you have to change the base class name in the code behind window and add the using System.Windows.Controls.Ribbon : <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing System.Threading.Tasks;\nusing System.Windows;\nusing System.Windows.Controls;\nusing System.Windows.Controls.Ribbon;\nusing System.Windows.Data;\nusing System.Windows.Documents;\nusing System.Windows.Input;\nusing System.Windows.Media;\nusing System.Windows.Media.Imaging;\nusing System.Windows.Navigation;\nusing System.Windows.Shapes;\n\nnamespace WPFTutorial\n{\n    \/\/\/ &lt;summary&gt;\n    \/\/\/ Interaction logic for MainWindow.xaml\n    \/\/\/ &lt;\/summary&gt;\n    public partial class MainWindow : RibbonWindow\n    {\n        public MainWindow()\n        {\n            InitializeComponent();\n        }\n\n        private void Button_Click(object sender, RoutedEventArgs e)\n        {\n            MessageBox.Show(&quot;Test&quot;);\n        }\n    }\n}\n\n<\/pre><\/div><iframe src=\"http:\/\/www.facebook.com\/plugins\/like.php?href=https%3A%2F%2Fwww.capri-soft.de%2Fblog%2F%3Fp%3D3187&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light\" scrolling=\"no\" frameborder=\"0\" allowTransparency=\"true\" style=\"border:none; overflow:hidden; width:450px;margin-top:5px;\"><\/iframe>","protected":false},"excerpt":{"rendered":"<p>Problem According to the .NET documentation the Ribbon Control should be available since WPF 4.5, what means is available since .NET Framework 4.5 . But you can not find it? Are you even thinking about the download of the Ribbon control for older versions? Not necessary, please see the following points&#8230; Approach We have to &hellip; <a href=\"https:\/\/www.capri-soft.de\/blog\/?p=3187\" class=\"more-link\"><span class=\"screen-reader-text\">Visual Studio 2013 .NET WPF : Where do i get \/ can i find the WPF Ribbon Control?<\/span> weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[114],"tags":[],"class_list":["post-3187","post","type-post","status-publish","format-standard","hentry","category-wpf-windows-presentation-foundation"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4yGeN-Pp","jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3187"}],"version-history":[{"count":6,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3187\/revisions"}],"predecessor-version":[{"id":3198,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3187\/revisions\/3198"}],"wp:attachment":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}