title: WPF apps .Core 3.0 and microsoft ribbon control library 4.0
body: <p>Hello I tried to build an application using the WPF,.Netcore 3.0 and microsoft  ribbon control library 4.0 and it's failed.</p>
  
  <p>I need help or an example on the web.
  I did look at <a href="https://github.com/microsoft/WPF-Samples" rel="nofollow noreferrer">Microsoft WPF-Sample</a> on GitHub but did not find a ribbon sample working on .netcore 3.0</p>
  
  <p>MainWindow.Xaml</p>
  
  <pre><code>&lt;Window x:Class="WpfDoNetcore3.MainWindow"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
          xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
          xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
          xmlns:local="clr-namespace:WpfDoNetcore3"
          mc:Ignorable="d"
          x:Name="RibbonWindow"
          Title="MainWindow" Height="450" Width="800"&gt;
  
      &lt;Grid x:Name="LayoutRoot"&gt;
          &lt;Grid.RowDefinitions&gt;
              &lt;RowDefinition Height="Auto"/&gt;
              &lt;RowDefinition Height="*"/&gt;
          &lt;/Grid.RowDefinitions&gt;
  
          &lt;ribbon:Ribbon x:Name="Ribbon" Title="Ribbon Title"&gt;
              &lt;ribbon:Ribbon.HelpPaneContent&gt;
                  &lt;ribbon:RibbonButton SmallImageSource="Images\Smallicon.png" /&gt;
              &lt;/ribbon:Ribbon.HelpPaneContent&gt;
              &lt;ribbon:Ribbon.QuickAccessToolBar&gt;
                  &lt;ribbon:RibbonQuickAccessToolBar &gt;
                      &lt;ribbon:RibbonButton x:Name="QATButton1" 
                                           SmallImageSource="Images\Smallicon.png" /&gt;
                      &lt;ribbon:RibbonButton x:Name="QATButton2" 
                                           SmallImageSource="Images\Smallicon.png" /&gt;
                  &lt;/ribbon:RibbonQuickAccessToolBar&gt;
              &lt;/ribbon:Ribbon.QuickAccessToolBar&gt;
              &lt;ribbon:Ribbon.ApplicationMenu&gt;
                  &lt;ribbon:RibbonApplicationMenu SmallImageSource="Images\Smallicon.png"&gt;
                      &lt;ribbon:RibbonApplicationMenuItem Header="Hello _Ribbon"
                                                        x:Name="MenuItem1"
                                                        ImageSource="Images\Largeicon.png"/&gt;
                  &lt;/ribbon:RibbonApplicationMenu&gt;
              &lt;/ribbon:Ribbon.ApplicationMenu&gt;
              &lt;ribbon:RibbonTab x:Name="HomeTab" 
                                Header="Home"&gt;
                  &lt;ribbon:RibbonGroup x:Name="Group1" 
                                      Header="Group1"&gt;
                      &lt;ribbon:RibbonButton x:Name="Button1"
                                           LargeImageSource="Images\Largeicon.png"
                                           Label="Button1" /&gt;
                      &lt;ribbon:RibbonButton x:Name="Button2"
                                           SmallImageSource="Images\Smallicon.png"
                                           Label="Button2" /&gt;
                      &lt;ribbon:RibbonButton x:Name="Button3"
                                           SmallImageSource="Images\Smallicon.png"
                                           Label="Button3" /&gt;
                      &lt;ribbon:RibbonButton x:Name="Button4"
                                           SmallImageSource="Images\Smallicon.png"
                                           Label="Button4" /&gt;
                  &lt;/ribbon:RibbonGroup&gt;
              &lt;/ribbon:RibbonTab&gt;
          &lt;/ribbon:Ribbon&gt;
      &lt;/Grid&gt;
  
  &lt;/Window&gt;
  </code></pre>
  
  <p>Mainwindow.cs</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using System.Windows;
  using System.Windows.Controls;
  using System.Windows.Data;
  using System.Windows.Documents;
  using System.Windows.Input;
  using System.Windows.Media;
  using System.Windows.Media.Imaging;
  using System.Windows.Navigation;
  using System.Windows.Shapes;
  using System.Windows.Controls.Ribbon;
  
  namespace WpfDoNetcore3
  {
      /// &lt;summary&gt;
      /// Interaction logic for MainWindow.xaml
      /// &lt;/summary&gt;
      public partial class MainWindow : Window
      {
          public MainWindow()
          {
  
  
              InitializeComponent();
          }
      }
  }
  </code></pre>
  
  <p>Ref: <a href="https://github.com/JeanMarcFlamand/WPF-Ribbon-dotnet-core-3.0-sample" rel="nofollow noreferrer">Github project</a></p>