title: WPF - Replacement of Ribbon
body: <p>I have a WPF UI with <a href="https://docs.microsoft.com/en-us/dotnet/api/system.windows.controls.ribbon.ribbon?view=netframework-4.5" rel="nofollow noreferrer">Ribbon Class</a> in it. I recently have to switch my UI to old framework .net 3.5 and it seems that Ribbon was introduced in .net 4.5.</p>
  
  <p>How do I switch and get rid of ribbon control ?</p>
  
  <p>What is the best suitable path so that not much source code have to be replaced??</p>
  
  <p>My current code is like below:</p>
  
  <pre><code>&lt;RibbonToggleButton x:Name="_ribbon1" Grid.Row="0" Grid.Column="0"&gt;
      &lt;RibbonToggleButton.IsChecked&gt;
          &lt;MultiBinding Converter="{StaticResource boolCopyPaster}"&gt;
              &lt;Binding ElementName="_copy" Path="IsSelected"&gt;&lt;/Binding&gt;
              &lt;Binding ElementName="_paste" Path="IsSelected"&gt;&lt;/Binding&gt;
          &lt;/MultiBinding&gt;
      &lt;/RibbonToggleButton.IsChecked&gt;
  &lt;/RibbonToggleButton&gt;
  
  &lt;RibbonMenuButton x:Name="_selectorMenu" Grid.Row="0" Grid.Column="1"&gt;
      &lt;RibbonGallery x:Name="_selector" Width="200"&gt;
          &lt;RibbonGalleryCategory Header="Selectors"&gt;
              &lt;RibbonGalleryItem x:Name="_item1"&gt;
                  &lt;Line Y1="7" Y2="7" X2="25" Stroke="Black"&gt;&lt;/Line&gt;
              &lt;/RibbonGalleryItem&gt;
          &lt;/RibbonGalleryCategory&gt;
      &lt;/RibbonGalleryCategory&gt;
  &lt;/RibbonMenuButton&gt;
  </code></pre>