cimbalino / Cimbalino-Toolkit

:coffee: Cimbalino Toolkit
https://cimbalino.org
MIT License
114 stars 16 forks source link

Hamburger menu expand/collapse animation #53

Closed jansokoly closed 8 years ago

jansokoly commented 8 years ago

Is there a way to achieve that Windows 10 animation effect when opening/collapsing the hamburger menu seen in many native W10 apps like Money, Weather, etc.?

And thanks for the library!

pedrolamas commented 8 years ago

I guess you'll have to re-template the control and add the animations... Not ideal, but I assume that's what they did on their side for those apps!

pedrolamas commented 8 years ago

Correction: the animations are there for the "normal" state, all you need to do is avoid the "wide" state by setting the HamburgerFrame.VisualStateWideMinWidth to a large value like int.MaxValue

Soo n the sample code here, just add VisualStateWideMinWidth = int.MaxValue on the next line and you're good to go!