MetroWindow XMLParse Exception

Jul 25, 2013 at 5:25 AM
I'm simply trying to create a MetroWindow inside of a barebones WPF application that VS spit out for me. My code for MainWindow.xaml is below:
<Fluent:MetroWindow x:Class="VizWiz.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Fluent="clr-namespace:Fluent;assembly=Fluent"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        
    </Grid>
</Fluent:MetroWindow>
I've included the Fluent DLL and here's my MainWindow.cs:
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Fluent;

namespace VizWiz
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Fluent.MetroWindow
    {
        public MainWindow()
        {
            InitializeComponent();
        }
    }
}
When I go to run the code I get an error saying: "XMLParseException was Unhandled, System.Windows.Markup.StaticResourceHolder' threw an exception".

Any help would be appreciated. I've used the old RibbonWindow control in a previous project, and am very excited to see an update to the style. Thanks!
Jul 25, 2013 at 7:51 AM
maybe
    <Application.Resources>
        <ResourceDictionary Source="/Fluent;Component/Themes/Metro/White.xaml" />
    </Application.Resources>
in App.xaml?
Developer
Jul 25, 2013 at 7:46 PM
Merging the ResourceDictionary in App.xaml is a MUST.
Marked as answer by batzen on 6/28/2014 at 2:14 AM
Jul 27, 2013 at 8:34 PM
Yup! That was the fix, paffnutii! Thanks everyone!