ghost1372/HandyControls

Could not load type...

iverdiver opened this issue · 2 comments

Describe the bug

I've added the HandyControls with and 's' at the end, version 3.4.4 to my Project.
It works fine if I use the "old method when adding the code to App.xaml:

<Application.Resources>

<ResourceDictionary.MergedDictionaries>


</ResourceDictionary.MergedDictionaries>

</Application.Resources>

But if I use the either the "new" method for both HandyControl and HandyControls:
<Application.Resources>

<ResourceDictionary.MergedDictionaries>
hc:ThemeResources/
hc:Theme/
</ResourceDictionary.MergedDictionaries>

</Application.Resources>

<Application.Resources>

<ResourceDictionary.MergedDictionaries>
<hc:Theme Name="HandyTheme"/>
</ResourceDictionary.MergedDictionaries>

</Application.Resources>

It does not work.

I want to change some of the theme colors so I'm using the unofficial version (again -> 3.4.4), but I get the following error;

image

For some reason it states that it can't load the type from version 3.4.0.0!
It seems like a bug to me, but I could be wrong.
Any help appreciated

Steps to reproduce the bug

Add nuget packet HandyControls 3.4.4

Add to App.xaml

<Application.Resources>

<ResourceDictionary.MergedDictionaries>
hc:ThemeResources/
hc:Theme/
</ResourceDictionary.MergedDictionaries>

</Application.Resources>

Expected behavior

No response

Screenshots

No response

NuGet package version

None

IDE

Visual Studio 2022

Framework type

.Net 6.0

Windows version

Windows 11 (22000)

Additional context

No response

AIUbi commented

Try to delete bin,obj directories, and then rebuild also check dependencies and update them manually.

Thanks for the reply @AIUbi.
I had a dependency on another project that used HandyControls 3.4.0.
Using 3.4.4 in that project solved the issue.
Thank you very much.