WPF: RibbonWindow

Jun 2 2019 6:51 AM
Hallo dear Team,
 
I followed the same instructions of the link:
 
https://www.c-sharpcorner.com/UploadFile/0b73e1/ribbon-control-in-wpf-4-5/
 
as first: I change the tags in XAML from Window to RibbonWindow
 
<RibbonWindow x:Class="WPFTextverarbeitung.MainWindow" /RibbonWindow>
 
as second: obviously I change in MainWindow.cs as it follows:
 
using System.Windows.Controls.Ribbon;
namespace WPFTextverarbeitung
{
public partial class MainWindow : RibbonWindow
{
public MainWindow()
{
InitializeComponent();
}
}
}
 
the MainWindow will show an error "Partial Declaration of MainWindow must not specify different base classes"
 
It's very strange since I change the tags in XAML and I set the new assembly using as you see above.
 
How shall I proceed?
 
I've still deleted the project and made a new one to try and check if the error away is but at the end I always get the same error message.
 
Thank you in advance for your help.
Best regards
Giovanni