WPF:programmatically add RibbonBar from UserControl into a RibbonWindow RibbonTab
<p>I have a WPF Ribbon based application and a DLL.</p>

<p>In the application I uses a third party source (Syncfusion) to create my RibbonWindow.</p>

<p>The DLL is a WPF class library that consist of a UserControl which is a RibbonBar.</p>

<p>I would like to add that UserControl to my RibbonWindow.</p>

<p>I'm not sure how to do that programmatically.</p>

<p>MainWindow.xaml.cs</p>

<p>Dynamically loaded the UserControl from the DLL  </p>

<pre><code>        Assembly asm = Assembly.LoadFile( unitDllPath );
        Type typ = asm.GetType( "WX" + ".UserControl1", true, true );
        unitDll = Activator.CreateInstance( typ );
</code></pre>

<p>MainWindow.xaml</p>

<pre><code>  &lt;syncfusion:RibbonTab Name="Tab1" IsChecked="True" &gt;

  &lt;/syncfusion:RibbonTab&gt;
</code></pre>

<p>UserControl.xaml</p>

<pre><code>  &lt;syncfusion:RibbonBar Header="Select" Name="Bar1" &gt;&lt;/syncfusion:RibbonBar&gt;
</code></pre>

<p>UserControl.xaml.cs</p>

<pre><code>        public void MainWindow()
    {
        InitializeComponent();
    }
</code></pre>

<p>How can I get the RibbonBar from WX.UserControl (Bar1) into (Tab1)?</p>

<p>Thanks.</p>