XAML designer crashes. Complains about 'InvertedBooleanToVisibilityConverter'

6 posts, 0 answers
  1. Kristoffer
    Kristoffer avatar
    158 posts
    Member since:
    Dec 2012

    Posted 07 Jan 2013 Link to this post

    I have some Telerik controls in my XAML. When I load the designer, it throws an exception:

    System.Exception
    Cannot find resource named 'InvertedBooleanToVisibilityConverter'. Resource names are case sensitive.
       at System.Windows.StaticResourceExtension.ProvideValueInternal(IServiceProvider serviceProvider, Boolean allowDeferredReference)
       at System.Windows.StaticResourceExtension.ProvideValue(IServiceProvider serviceProvider)
       at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)


    I have referenced Telerik.Windows.Controls.dll. Not sure what's causing this as "InvertedBooleanToVisibilityConverter" cannot be found in my source code, but it is indeed present in your WPF examples...

    Also, I do have this in my app.xaml:

    <Application.Resources>
            <ResourceDictionary>
                <ResourceDictionary.MergedDictionaries>
                    <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/System.Windows.xaml"/>
                    <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.xaml"/>
                    <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Chart.xaml"/>
                    <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Data.xaml"/>
                    <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Diagrams.xaml"/>
                    <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Diagrams.Extensions.xaml"/>
                    <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Docking.xaml"/>
                    <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.GridView.xaml"/>
                    <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Input.xaml"/>
                    <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Navigation.xaml"/>
                </ResourceDictionary.MergedDictionaries>
            </ResourceDictionary>
        </Application.Resources>

  2. Yoan
    Admin
    Yoan avatar
    1066 posts

    Posted 10 Jan 2013 Link to this post

    Hello Kristoffer,

     
    As it turns out, I was not able to reproduce the problem you described. I have prepared a sample project that you can find attached. May I ask you to test it at your end and let me know if you are able to reproduce the problem?

    Furthermore, please try to delete the folders - Obj and Bin from your project's location and then try to clean and rebuild the project.

    Please let me know how this works.


    Greetings,
    Yoan
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Trevor
    Trevor avatar
    6 posts
    Member since:
    Feb 2012

    Posted 20 Feb 2013 Link to this post

    I am having the exact same issue as the user above.   The DateTimePicker was working perfectly fine and then just started to throw the following exception while being rendered:

    Cannot find resource named 'InvertedBooleanToVisibilityConverter'. Resource
    names are case sensitive.


    The only thing that changed in my dev environment is that I installed the ASP.NET and Web Tools 2012.2 Update.   The stack trace of the exception is as follows:

       at
    System.Windows.StaticResourceExtension.ProvideValue(IServiceProvider
    serviceProvider)<BR>   at
    MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me,
    IServiceProvider serviceProvider)
  5. Yoan
    Admin
    Yoan avatar
    1066 posts

    Posted 22 Feb 2013 Link to this post

    Hello Trevor,

    Can you please try our current official version and let me know how it works for you?

    All the best,
    Yoan
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Trevor
    Trevor avatar
    6 posts
    Member since:
    Feb 2012

    Posted 23 Feb 2013 Link to this post

    I upgraded to the Q1 2013 release and now the same error is being reported by the ScheduleView!   

    Here is the cause of the error:

    <

     

     

    local:InvertedBooleanConverter x:Key="InvertedBooleanConverter" />

  7. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 25 Feb 2013 Link to this post

    Hello Trevor,

    The InvertedBooleanConverter that was in the ScheduleView namespace is an obsolete converter and it has been replaced.

    Could you try to rename the namespace of the converter to the telerik namespace and let is know if the issue persists?

    Greetings,
    Vladi
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
UI for WPF is Visual Studio 2017 Ready