Mahapps.metro: Weird animation on combobox with only one item

Created on 26 Oct 2016  路  7Comments  路  Source: MahApps/MahApps.Metro

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
Bug

All 7 comments

@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.

@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.

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

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

Sorry, the animation.

@muriloebsantos Animation is controlled by SystemParameters.ComboBoxPopupAnimationKey

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>
Was this page helpful?
0 / 5 - 0 ratings

Related issues

bardospeter picture bardospeter  路  3Comments

Coder-Bryan picture Coder-Bryan  路  3Comments

johanneswanzek picture johanneswanzek  路  3Comments

Nova669 picture Nova669  路  3Comments

bplatypus picture bplatypus  路  3Comments