Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Match Flyout animation with Windows 8 #1460

Closed
wants to merge 5 commits into from
Closed

Match Flyout animation with Windows 8 #1460

wants to merge 5 commits into from

Conversation

Dotnetifier
Copy link
Contributor

I noticed when I started using Flyouts that the easing function did not match the Windows 8 animation. I tried to change it using KeySpline, but I couldn't find the correct control points. Then I realized I also had Blend installed with VS, and I was pretty sure it had a GUI function to create a keyspline.

I experimented in Blend with key splines and found that a KeySpline with the points (0.25, 1) and (0.05, 1) matches the Windows 8 Flyout animation the most. So I changed the Easing functions in the Flyout theme XAML to those KeySplines.

I also removed the opacity change in the Flyouts, since I never saw an opacity change occur in the Windows 8 Flyouts.

@amkuchta
Copy link
Contributor

amkuchta commented Jul 5, 2014

Any way to keep the opacity change as an option? I personally like the look of it (can't speak for everyone else)

@Dotnetifier
Copy link
Contributor Author

Then a property will have to be added to Flyout.cs.

I'll add it within a few hours or so, maybe tomorrow.

NOTE: Any code formatting changes Visual Studio did are also 'seen' by Git.
NOTE: code formatting changes that Visual Studio made are also 'seen' by Git.
@Dotnetifier
Copy link
Contributor Author

Ok, the property AnimateOpacity is added to the Flyout class.

The first flyout in the Flyout demo has an animated opacity when showing/closing.

@amkuchta
Copy link
Contributor

amkuchta commented Jul 6, 2014

Awesome, thanks!

/// <summary>
/// Gets/sets the mouse button that closes the flyout on an external mouse click.
/// </summary>
public MouseButton ExternalCloseButton
{
get { return (MouseButton) GetValue(ExternalCloseButtonProperty); }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't change any code stylings in this PR

@Dotnetifier
Copy link
Contributor Author

I never wanted to do any code stylings, but Visual Studio does that for me.

I could also just copy/paste the lines of code changed into the GitHub web editor and edit it that way. Then I will have to revert the changes I made earlier, and edit the new lines into them, right? If so, how? I'm a beginner at Git...

@flagbug flagbug added this to the v1.0 milestone Aug 20, 2014
@flagbug
Copy link
Member

flagbug commented Aug 24, 2014

Merged this manually without the code style changes. ✨

@flagbug flagbug closed this Aug 24, 2014
@Dotnetifier Dotnetifier deleted the patch-1 branch August 27, 2014 22:14
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants