-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal: Add some animations to Expander #135
Comments
Good idea. Is there a "standard" expand/collapse animation in UWP/WinUI that we can borrow, to make our animation as native as possible? |
There is no expander in WinUI AFAIK, it's from the Windows Community Toolkit (aka WCT), the presets could be there. |
I have some questions :
|
If this proposal is accepted, we can port the control (or just the animations) over. |
That's why I closed the related PR. I don't have a solid decision on whether to port the whole API or just the animations. Since most of the apps already use the WPF expander, creating a custom style would be a good option. But that shouldn't stop innovation. IMO, We must go with porting the whole control. |
@Kinnara, the proposal was accepted, a PR was made and got mergerd 🎉🥳 microsoft/microsoft-ui-xaml@ce84da3 What about now? |
We probably want to first update the styling of the WPF Expander to match the WinUI one. I'll need to take a closer look to see what's possible and what's not. |
Summary
This proposal is to add some animations to the Expander control as in WCT
Rationale
The only parts this library missing from WinUI are the nice little animations in it.
While animating other controls might be hard, animating the Expander control is relatively easy.
I know this due to limitation in WPF and this is how it works. "But it is not impossible."
See this codeproject article : Customizing WPF Expander with ControlTemplate by XiaoChuan Yu. A basic implementation like this would be appreciated
Screenshots
Expander from WCT
Expander from this library
Additional Context
I may be a little biased since I need this for one of my apps. But no would say they don't need fluid animations.
Implementing this will be a nice addition to this library.
If you are okay I will work on this and submit a PR for this
The text was updated successfully, but these errors were encountered: