Weird animation on combobox with only one item #2713

Closed
muriloebsantos opened this Issue Oct 26, 2016 · 7 comments

Comments

Projects
None yet
2 participants
@muriloebsantos

muriloebsantos commented Oct 26, 2016

What steps will reproduce this issue?

Load a combox with only one item
Click on the combox to show the items

Expected outcome

It will open the combobox with one animation that will increase the text legiblity. When it just opens it's difficult to read the content, it seems like I'm not wearing my glasses.

http://stackoverflow.com/questions/40262033/remove-combobox-animation-on-mahapps

I would like to know how to remove this animation.

Environment

  • MahApps.Metro 1.3.0
  • Windows 8.1
  • Visual Studio 2015
  • .NET Framework 4.5
@punker76

This comment has been minimized.

Show comment
Hide comment
@punker76

punker76 Oct 26, 2016

Member

@muriloebsantos This is a known problem of WPF itself https://blogs.msdn.microsoft.com/text/2010/01/14/cleartypehint/ or http://stackoverflow.com/a/508596/920384
I will look and add this to MahApps as possible as soon for 1.4.0.

Member

punker76 commented Oct 26, 2016

@muriloebsantos This is a known problem of WPF itself https://blogs.msdn.microsoft.com/text/2010/01/14/cleartypehint/ or http://stackoverflow.com/a/508596/920384
I will look and add this to MahApps as possible as soon for 1.4.0.

@punker76 punker76 added this to the 1.4.0 milestone Oct 26, 2016

@punker76 punker76 self-assigned this Oct 26, 2016

@punker76 punker76 closed this in 3d72dda Oct 28, 2016

@punker76

This comment has been minimized.

Show comment
Hide comment
@punker76

punker76 Oct 28, 2016

Member

@muriloebsantos Please try 1.4.0-ALPHA026 for this issue. You must set RenderOptions.ClearTypeHint="Enabled" for the ComboBox to enable this for the scrollviewer content presenter. Please let me know if this works. Thx.

Member

punker76 commented Oct 28, 2016

@muriloebsantos Please try 1.4.0-ALPHA026 for this issue. You must set RenderOptions.ClearTypeHint="Enabled" for the ComboBox to enable this for the scrollviewer content presenter. Please let me know if this works. Thx.

@muriloebsantos

This comment has been minimized.

Show comment
Hide comment
@muriloebsantos

muriloebsantos Oct 31, 2016

Unfortunately it didn't work. I updated the package and I set RenderOptions.ClearTypeHint="Enabled"

Unfortunately it didn't work. I updated the package and I set RenderOptions.ClearTypeHint="Enabled"

@punker76

This comment has been minimized.

Show comment
Hide comment
@punker76

punker76 Oct 31, 2016

Member

@muriloebsantos The ClearType or the animation? The animation is not affected by this

Member

punker76 commented Oct 31, 2016

@muriloebsantos The ClearType or the animation? The animation is not affected by this

@muriloebsantos

This comment has been minimized.

Show comment
Hide comment
@muriloebsantos

muriloebsantos Oct 31, 2016

Sorry, the animation.

Sorry, the animation.

@punker76

This comment has been minimized.

Show comment
Hide comment
@punker76

punker76 Oct 31, 2016

Member

@muriloebsantos Animation is controlled by SystemParameters.ComboBoxPopupAnimationKey

Member

punker76 commented Oct 31, 2016

@muriloebsantos Animation is controlled by SystemParameters.ComboBoxPopupAnimationKey

@muriloebsantos

This comment has been minimized.

Show comment
Hide comment
@muriloebsantos

muriloebsantos Oct 31, 2016

You gave me keyword I needed! Then I search on stackoverflow and found the solution: http://stackoverflow.com/a/25502880/3517029

 <Controls:MetroWindow.Resources>
        <PopupAnimation x:Key="{x:Static SystemParameters.ComboBoxPopupAnimationKey}">None</PopupAnimation>
    </Controls:MetroWindow.Resources>

muriloebsantos commented Oct 31, 2016

You gave me keyword I needed! Then I search on stackoverflow and found the solution: http://stackoverflow.com/a/25502880/3517029

 <Controls:MetroWindow.Resources>
        <PopupAnimation x:Key="{x:Static SystemParameters.ComboBoxPopupAnimationKey}">None</PopupAnimation>
    </Controls:MetroWindow.Resources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment