This is a migrated thread and some comments may be shown as answers.

XAML designer crashes. Complains about 'InvertedBooleanToVisibilityConverter'

5 Answers 186 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kristoffer
Top achievements
Rank 1
Kristoffer asked on 07 Jan 2013, 09:36 AM

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>

5 Answers, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 10 Jan 2013, 09:01 AM
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.

0
Trevor
Top achievements
Rank 1
answered on 20 Feb 2013, 10:28 AM
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)
0
Yoan
Telerik team
answered on 22 Feb 2013, 03:21 PM
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.

0
Trevor
Top achievements
Rank 1
answered on 23 Feb 2013, 04:07 PM
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" />

0
Vladi
Telerik team
answered on 25 Feb 2013, 09:03 AM
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.

Tags
General Discussions
Asked by
Kristoffer
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Trevor
Top achievements
Rank 1
Vladi
Telerik team
Share this question
or