MaterialDesignInXAML / MaterialDesignInXamlToolkit

Google's Material Design in XAML & WPF, for C# & VB.Net.
http://materialdesigninxaml.net
MIT License
15.17k stars 3.43k forks source link

Flyout error #1712

Closed mey1k closed 4 years ago

mey1k commented 4 years ago

When I use this code

I got a ArgumentNullException message. why??
soi013 commented 4 years ago

In my environment, the problem is not happen.

Did you add MahApps Compatibility ResourceDictionary in App.xaml?

<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.MahApps;component/Themes/MaterialDesignTheme.MahApps.Defaults.xaml"/>

More information is needed.

Keboo commented 4 years ago

@mey1k can you provide the versions of these NuGet packages that you are using?

mey1k commented 4 years ago

@Keboo @soi013 Thank you for your comments!

I solves this problem. I got a hint from your comments(dependencies).

Initially I installed it, ignoring the dependencies of the packages. Since then, the dependency was set, but the error continued to occur. So, I created a new project and after all the dependencies were set, it worked.