Тема MetroDark сказала мне добавить это в мой App.xaml, я сделал это, но затем он дает мне эту ошибку
To apply the Infragistics WPF MetroDark theme to your WPF application, paste the following code into your App.xaml
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Themes/MetroDark/MetroDark.MSControls.Core.Implicit.xaml" />
<ResourceDictionary Source="Themes/MetroDark/MetroDark.MSControls.Toolkit.Implicit.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
, но когда я запускаю его, я получаю это исключение времени выполнения
System.IO.IOException: Cannot locate resource 'themes/metrodark/metrodark.mscontrols.core.implicit.xaml'.
at at MS.Internal.AppModel.ResourcePart.GetStreamCore(FileMode mode, FileAccess access)
at at System.IO.Packaging.PackagePart.GetStream(FileMode mode, FileAccess access)
at at System.IO.Packaging.PackWebResponse.CachedResponse.GetResponseStream()
at at System.IO.Packaging.PackWebResponse.GetResponseStream()
at at System.IO.Packaging.PackWebResponse.get_ContentType()
at at MS.Internal.WpfWebRequestHelper.GetContentType(WebResponse response)
at at MS.Internal.WpfWebRequestHelper.GetResponseStream(WebRequest request, ContentType& contentType)
at at System.Windows.ResourceDictionary.set_Source(Uri value)
at at System.Windows.Baml2006.WpfSharedBamlSchemaContext.<>c.<Create_BamlProperty_ResourceDictionary_Source>b__342_0(Object target, Object value)
at at System.Windows.Baml2006.WpfKnownMemberInvoker.SetValue(Object instance, Object value)
at at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(XamlMember member, Object obj, Object value)
at at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)
Я не понимаю, когда использую Visual Studio
Я пытался использовать http://msdn.microsoft.com/en-us/library/aa970069(v=vs.110).aspx и все остальные вещи, которые я нашел в Интернете.
Я получаю эту ошибкукогда я попробовал упаковать Ури
System.Windows.Markup.XamlParseException: 'Set property 'System.Windows.ResourceDictionary.Source' threw an exception.' Line number '9' and line position '18'. ---> System.IO.FileNotFoundException:
at at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at at System.Windows.Navigation.BaseUriHelper.GetLoadedAssembly(String assemblyName, String assemblyVersion, String assemblyKey)
at at MS.Internal.AppModel.ResourceContainer.GetResourceManagerWrapper(Uri uri, String& partName, Boolean& isContentFile)
at at MS.Internal.AppModel.ResourceContainer.GetPartCore(Uri uri)
at at System.IO.Packaging.Package.GetPartHelper(Uri partUri)
at at System.IO.Packaging.Package.GetPart(Uri partUri)
at at System.IO.Packaging.PackWebResponse.CachedResponse.GetResponseStream()
at at System.IO.Packaging.PackWebResponse.GetResponseStream()
at at System.IO.Packaging.PackWebResponse.get_ContentType()
at at MS.Internal.WpfWebRequestHelper.GetContentType(WebResponse response)
at at MS.Internal.WpfWebRequestHelper.GetResponseStream(WebRequest request, ContentType& contentType)
at at System.Windows.ResourceDictionary.set_Source(Uri value)
at at System.Windows.Baml2006.WpfSharedBamlSchemaContext.<>c.<Create_BamlProperty_ResourceDictionary_Source>b__342_0(Object target, Object value)
at at System.Windows.Baml2006.WpfKnownMemberInvoker.SetValue(Object instance, Object value)
at at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(XamlMember member, Object obj, Object value)
at at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)
--- End of inner exception stack trace ---
at at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
at at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
at at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
at at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
at at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at FalconReaper.App.InitializeComponent() in C:\Users\josha\Desktop\c#\FalconReaper\app.xaml:1
at at FalconReaper.App.Main()
, я попытался изменить действие сборки, но это не изменилось.