Skip to content
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

Black flicker on complete window-area when resizing #307

Closed
holgerschm opened this issue Apr 19, 2016 · 8 comments
Closed

Black flicker on complete window-area when resizing #307

holgerschm opened this issue Apr 19, 2016 · 8 comments
Assignees
Milestone

Comments

@holgerschm
Copy link

holgerschm commented Apr 19, 2016

When resizing the window the complete window area is flickering(black) at a high rate. This is very annoying - it renders the library unusable.

The flicker was gone with the 4.0.1(unfortunately the is an issue with the window border in 4.0.1) release but reappered in the 4.0.3 release.

The rate of flickering seems to depends on the content of the window. On an emty window except for the ribbon it flickers 1-3 times per resize. When the window is filled with controls the flickering happens on every frame.

Environment

  • Fluent.Ribbon v4.0.3.394
  • Theme Office2013
  • Windows 7 x64
  • .NET Framework 4.6.1
@batzen
Copy link
Member

batzen commented Apr 19, 2016

Does this happen on vertical or horizontal resize?

@holgerschm
Copy link
Author

This happens on all (8) resizes.
I did some more testing:
The flicker rates depend on the total size of the window. I use two 1920x1200 screens. When the window has the size of a 1/4 screen there is (almost) no flickering. When the window spans over both screens there is a lot of flickering. I will try to narrow it down further ...

@holgerschm
Copy link
Author

Here is some more info:
It depends on the type and count of controls in the window:
400 Buttons -> no flickering
400 TextBoxes -> no flickering
400 Ellipses -> no flickering
400 Labels -> a lot of flickering
4 Labels -> some flickering
100000 Labels -> no flickering !

Very strange...

@batzen
Copy link
Member

batzen commented Apr 23, 2016

That's strange and i don't think it's caused by the ribbon.
Does this only happen when you are using a RibbonWindow?

@holgerschm
Copy link
Author

I did more testing on 8 different systems (all running Windows 7). All showed black flickering on the RibbonWindow when using the default windows 7 theme. But I found out that the flicker is gone when switching to "Classic" theme!

None of them shows flickering on default WPF Windows (Or any other application not using fluent ribbon).

I am pretty sure this has someting to do with the fluent ribbon. But maybe dependend on the windows version and the graphics hardware?

@batzen
Copy link
Member

batzen commented Apr 25, 2016

Will try to find a windows 7 machine at work and try to reproduce it.

WPF depends on the graphics hardware and so does DWM.
Windows version is relevant because DWM/non DWM behaves very different when it comes to window drawing.

@batzen
Copy link
Member

batzen commented Jul 4, 2018

Flicker should be gone as soon as the GlowWindow branch is merged.

@batzen batzen added this to the 7.0.0 milestone Jul 4, 2018
@batzen batzen self-assigned this Jul 4, 2018
@batzen
Copy link
Member

batzen commented Jul 7, 2018

GlowWindow branch + PR merged. This should be fixed now.

@batzen batzen closed this as completed Jul 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants