MaterialDesignInXamlToolkit
MaterialDesignInXamlToolkit copied to clipboard
resource could not be resolved in WPF in VS2019
Version: MaterialDesignTheme 3.2 via Nuget VS2019: v16.8.2
I setup project following Getting Started. But the resources could not be resolved in designer, but it‘s ok when running.
And use VS2015 to open this VS2019 solution, the resources can be resolved in designer.
How to fix this? Thanks.


Hello,
same issue here.
A few follow up questions.
MaterialDesignIconButtonis an optional style, so you will need to explicitly reference the Buttons resource dictionary (example here). For more information on this see this wiki page.- What version of Visual Studio are you using? You can find this from the Help >> About Microsoft Visual Studio menu at the top.
- What version of .NET is your app targeting (.NET Framework, .NET Core 3.1, .NET 5)?
@Keboo
I followed Quick Start to setup.

VS2019 info:

Net framework info:

@Keboo In my tests, this issue is caused by x64 platform.
In VS2019, set platform to x64 will cause this issue and even set back to Any CPU or x86, it will not recover.
Clean and rebuild resolution will not work.

But in VS2015, set back to Any CPU, it works and resources could be resolved.
So when use VS2019, I must be very careful not to set platform to x64......
Is the issue solved ?