Skip to content

Updated expander animations and removed layout updates#2527

Merged
nmetulev merged 6 commits intomasterfrom
nmetulev/expander
Oct 16, 2018
Merged

Updated expander animations and removed layout updates#2527
nmetulev merged 6 commits intomasterfrom
nmetulev/expander

Conversation

@nmetulev
Copy link
Contributor

@nmetulev nmetulev commented Oct 4, 2018

Issue: #2372

Supplemental PR to #2397

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

The expander has weird animation jumps when opening and closing

What is the new behavior?

Expander animations are smooth without any jumps

PR Checklist

Please check if your PR fulfills the following requirements:

UpdateOverlayAlignment();
if (GetTemplateChild(ContentOverlayPart) is Grid contentOverlay)
{
contentOverlay.Visibility = ContentOverlay != null ? Visibility.Visible : Visibility.Collapsed;
Copy link
Member

Choose a reason for hiding this comment

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

We can use the EmptyObjectToObjectConverter to create a 'NullToVisibilityConverter' and do this all in the template. Then we can get rid of the ContentOverlay part entirely.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea, done. Please review again

@nmetulev nmetulev merged commit 0f3902c into master Oct 16, 2018
@delete-merged-branch delete-merged-branch bot deleted the nmetulev/expander branch October 16, 2018 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants