According to this topic you can embed MahApps.Metro.dll
and System.Windows.Interactivity.dll
into your project and bundle them into 1 exe.
Unfortunately this will cause an exception on App.Main();
in mentioned Program.cs.
System.Windows.Markup.XamlParseException in PresentationFramework.dll
Additional Information: Line number "8" and position "18" System.Windows.ResourceDictionary.Source
I looked up the demo-project only to find the exact same project-setup that i already had. Tried to catch the InnerException:
System.IO.FileNotFoundException: File or assembly "MahApps.Metro, Culture=neutral" not found
Dateiname: 'MahApps.Metro, Culture=neutral'
bei System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
bei System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
bei System.Reflection.Assembly.Load(AssemblyName assemblyRef)
bei System.Windows.Navigation.BaseUriHelper.GetLoadedAssembly(String assemblyName, String assemblyVersion, String assemblyKey)
bei MS.Internal.AppModel.ResourceContainer.GetResourceManagerWrapper(Uri uri, String& partName, Boolean& isContentFile)
bei MS.Internal.AppModel.ResourceContainer.GetPartCore(Uri uri)
bei System.IO.Packaging.Package.GetPart(Uri partUri)
bei System.IO.Packaging.PackWebResponse.CachedResponse.GetResponseStream()
bei System.IO.Packaging.PackWebResponse.get_ContentType()
bei MS.Internal.WpfWebRequestHelper.GetContentType(WebResponse response)
bei MS.Internal.WpfWebRequestHelper.GetResponseStream(WebRequest request, ContentType& contentType)
bei System.Windows.ResourceDictionary.set_Source(Uri value)
bei MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)
Just to make clear, i copied the 2 dlls form the demo project and pasted them into an additional extern "lib" folder, then added them to the intern DllsAsResource
folder as link and referenced them in my project.