roubachof / Sharpnado.MaterialFrame

A modern MAUI (and XF) Frame component supporting blur, acrylic, dark mode. Implemented with RealtimeBlurView on Android (custom blurview) and UIVisualEffectView on iOS.
MIT License
505 stars 29 forks source link

Error XFC0000: Cannot resolve type "sharpnado:MaterialFrame" #13

Closed roubachof closed 2 weeks ago

roubachof commented 4 years ago

If you end up with this error, it means you forgot to call the Sharpnado.MaterialFrame.Initializer.Initialize() in your App.xaml.cs. Have a look here: https://github.com/roubachof/Sharpnado.MaterialFrame#initialization

anversoft commented 3 years ago

EDIT: If you are using a dependency injection framework like Prism just insert a function anywhere in the module that calls the initialize method.

private static void DummyInitializer() => Sharpnado.MaterialFrame.Initializer.Initialize(true, false);

This happens because in the order of compilation of dependencies in a Prism project the Initialize function is called last and consequently the XFC0000 error is generated.

louisoftokyo commented 3 years ago

I'm getting this issue, but neither of the above fixes are working.