Localization exception

3 posts, 1 answers
  1. Paulo
    Paulo avatar
    8 posts
    Member since:
    Oct 2007

    Posted 25 Oct 2011 Link to this post

    I just have put a RadBusyIndicator in my Window like this:

     <telerik:RadBusyIndicator IsBusy="{Binding IsWorking}" BusyContent="Loading..." />
    
    And in my App object I do (OnStartup event):
    
        StyleManager.ApplicationTheme = new MetroTheme();
                var findResource = FindResource("BaseColor");
                if (findResource != null)
                    MetroColors.PaletteInstance.AccentColor = (Color)findResource;
    When I run my application. So I get this error:

    System.Windows.Markup.XamlParseException occurred
      Message=Set property 'Telerik.Windows.Controls.LocalizationManager.ResourceKey' threw an exception.
      Source=PresentationFramework
      LineNumber=0
      LinePosition=0
      StackTrace:
           at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
           at System.Windows.ResourceDictionary.CreateObject(KeyRecord key)
           at System.Windows.ResourceDictionary.RealizeDeferContent(Object key, Object& value, Boolean& canCache)
           at System.Windows.ResourceDictionary.GetValueWithoutLock(Object key, Boolean& canCache)
           at System.Windows.ResourceDictionary.GetValue(Object key, Boolean& canCache)
           at System.Windows.ResourceDictionary.GetValueWithoutLock(Object key, Boolean& canCache)
           at System.Windows.ResourceDictionary.GetValue(Object key, Boolean& canCache)
           at System.Windows.ResourceDictionary.GetValueWithoutLock(Object key, Boolean& canCache)
           at System.Windows.ResourceDictionary.GetValue(Object key, Boolean& canCache)
           at System.Windows.SystemResources.LookupResourceInDictionary(ResourceDictionary dictionary, Object key, Boolean allowDeferredResourceReference, Boolean mustReturnDeferredResourceReference, Boolean& canCache)
           at System.Windows.SystemResources.FindDictionaryResource(Object key, Type typeKey, ResourceKey resourceKey, Boolean isTraceEnabled, Boolean allowDeferredResourceReference, Boolean mustReturnDeferredResourceReference, Boolean& canCache)
           at System.Windows.SystemResources.FindResourceInternal(Object key, Boolean allowDeferredResourceReference, Boolean mustReturnDeferredResourceReference)
           at System.Windows.StyleHelper.GetThemeStyle(FrameworkElement fe, FrameworkContentElement fce)
           at System.Windows.FrameworkElement.UpdateThemeStyleProperty()
           at System.Windows.FrameworkElement.OnInitialized(EventArgs e)
           at Telerik.Windows.Controls.RadBusyIndicator.OnInitialized(EventArgs e) in c:\TB\101\WPF_Scrum\Current_HotFix\Sources\Development\Core\Controls\BusyIndicator\RadBusyIndicator.cs:line 144
      InnerException: System.ArgumentException
           Message=Object of type 'System.Windows.Setter' cannot be converted to type 'System.Windows.DependencyObject'.
           Source=mscorlib
           StackTrace:
                at System.RuntimeType.TryChangeType(Object value, Binder binder, CultureInfo culture, Boolean needsSpecialCast)
                at System.RuntimeType.CheckValue(Object value, Binder binder, CultureInfo culture, BindingFlags invokeAttr)
                at System.Reflection.MethodBase.CheckArguments(Object[] parameters, Binder binder, BindingFlags invokeAttr, CultureInfo culture, Signature sig)
                at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
                at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
                at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
                at System.Xaml.Schema.XamlMemberInvoker.SetValueSafeCritical(Object instance, Object value)
                at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)
           InnerException:




  2. Answer
    Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 26 Oct 2011 Link to this post

    Hello Paulo,

    We successfully reproduced this at our side. It will be fixed for the next internal build.

    Your Telerik points are updated.

    Regards,
    Ivo
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Paulo
    Paulo avatar
    8 posts
    Member since:
    Oct 2007

    Posted 26 Oct 2011 Link to this post

    Thank you
Back to Top