You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am noticing that the expander animation is much slower when using it as part of a class library versus an independent application. Not sure why this is the case. I have attached two gifs to show it. Not sure what could be causing this?
Class Library
Independent App
Version
V5.1
The text was updated successfully, but these errors were encountered:
@mouawadma I feel like using a theming library inside of another library is quite the hassle.
Adding the resource dictionary in the static constructor of your Window1.xaml works. However this has the drawback of not having intellisense for MDIX resources in your xaml.
publicpartialclassWindow1:Window{staticWindow1(){varresources=new ResourceDictionary
{Source=new Uri("pack://application:,,,/TestingMDIX51Local;component/Theme.xaml", UriKind.RelativeOrAbsolute)};
Application.Current.Resources.MergedDictionaries.Add(resources);}publicWindow1(){
InitializeComponent();}privatevoidInitializeMaterialDesign(){// Create dummy objects to force the MaterialDesign assemblies to be loaded// from this assembly, which causes the MaterialDesign assemblies to be searched// relative to this assembly's path. Otherwise, the MaterialDesign assemblies// are searched relative to Eclipse's path, so they're not found.varcard=new Card();}}
Notice how your InitializeMaterialDesign() method is still there and needed as described by your comment. However the method isn't even called and to my knowledge it should be optimized out by the compiler. This is very odd.
Bug explanation
Here is a project example
https://github.com/mouawadma/MDIXExpanderIssue
I am noticing that the expander animation is much slower when using it as part of a class library versus an independent application. Not sure why this is the case. I have attached two gifs to show it. Not sure what could be causing this?
Class Library
Independent App
Version
V5.1
The text was updated successfully, but these errors were encountered: