I write C# WPF MVVM Prism 6 multimodule application in MS VS 2015. In my application I use your Telerik for WPF library that was updated in May 2016. In one of Prism modules I try to change one of the views from PrismUserControl(WPF) to telerik:RadWindow (as you have written in your instruction on: http://docs.telerik.com/devtools/wpf/controls/radwindow/how-to/use-radwindow-as-user-control). But when I create RadWindow according to abovementioned instruction then the following error has place: "XamlObjectWriterException: Setting of "System.Windows.ResourceDictionary.Source" property throws an exception".
StackTrace in MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value) in MS.Internal.Xaml.Runtime.PartialTrustTolerantRuntime.SetValue(Object obj, XamlMember property, Object value) in System.Xaml.XamlObjectWriter.Logic_ApplyPropertyValue(ObjectWriterContext ctx, XamlMember prop, Object value, Boolean onParent) in System.Xaml.XamlObjectWriter.Logic_DoAssignmentToParentProperty(ObjectWriterContext ctx) in System.Xaml.XamlObjectWriter.Logic_AssignProvidedValue(ObjectWriterContext ctx) in System.Xaml.XamlObjectWriter.WriteEndMember() in System.Xaml.XamlWriter.WriteNode(XamlReader reader) in System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter) in System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter) in System.Windows.SystemResources.ResourceDictionaries.LoadDictionary(Assembly assembly, String assemblyName, String resourceName, Boolean isTraceEnabled) in System.Windows.SystemResources.ResourceDictionaries.LoadGenericDictionary(Boolean isTraceEnabled) in System.Windows.SystemResources.FindDictionaryResource(Object key, Type typeKey, ResourceKey resourceKey, Boolean isTraceEnabled, Boolean allowDeferredResourceReference, Boolean mustReturnDeferredResourceReference, Boolean& canCache) in System.Windows.SystemResources.FindResourceInternal(Object key, Boolean allowDeferredResourceReference, Boolean mustReturnDeferredResourceReference) in System.Windows.StyleHelper.GetThemeStyle(FrameworkElement fe, FrameworkContentElement fce) in System.Windows.FrameworkElement.UpdateThemeStyleProperty() in System.Windows.FrameworkElement.OnInitialized(EventArgs e) in Telerik.Windows.Controls.RadWindow.OnInitialized(EventArgs e) in System.Windows.FrameworkElement.TryFireInitialized() in System.Windows.FrameworkElement.EndInit()InnerException Cannot locate resource 'themes\genericvista.xaml' IOException: Cannot locate resource 'themes\genericvista.xaml' StackTrace in MS.Internal.AppModel.ResourcePart.GetStreamCore(FileMode mode, FileAccess access) in System.IO.Packaging.PackagePart.GetStream(FileMode mode, FileAccess access) in System.IO.Packaging.PackWebResponse.CachedResponse.GetResponseStream() in System.IO.Packaging.PackWebResponse.GetResponseStream() in System.IO.Packaging.PackWebResponse.get_ContentType() in MS.Internal.WpfWebRequestHelper.GetContentType(WebResponse response) in MS.Internal.WpfWebRequestHelper.GetResponseStream(WebRequest request, ContentType& contentType) in System.Windows.ResourceDictionary.set_Source(Uri value) in System.Windows.Baml2006.WpfSharedBamlSchemaContext.<>c.<Create_BamlProperty_ResourceDictionary_Source>b__342_0(Object target, Object value) in System.Windows.Baml2006.WpfKnownMemberInvoker.SetValue(Object instance, Object value) in MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(XamlMember member, Object obj, Object value) in MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value).InnerException: NoMoreover. If I add in XAML, for example, telerik:RadButton or telerik:RadTreView then (in design-time) "Cannot locate resource 'themes\genericvista.xaml' error occurs.
Below I dusplay contents of App.XAML file from Shell project of my application solution:
<Application x:Class="FlowmeterConfigurator.App" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:local="clr-namespace:FlowmeterConfigurator" xmlns:views="clr-namespace:FlowmeterConfigurator.Views"> <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/System.Windows.xaml" /> <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.xaml" /> <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Navigation.xaml" /> <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Docking.xaml" /> </ResourceDictionary.MergedDictionaries> <Style TargetType="views:Shell" BasedOn="{StaticResource RadWindowStyle}" /> </ResourceDictionary> </Application.Resources></Application>What the reason of "Cannot locate resource 'themes\genericvista.xaml' error ? How to eliminate it? Please help.