Z
Z
Zakharov Alexander2017-06-15 10:34:21
WPF
Zakharov Alexander, 2017-06-15 10:34:21

[Solved, solved as a special case] Windows 8.1. C# set new window position without window jerking?

Hello.
I set the position of the window in the most ordinary way
window.Top=NNN
window.Left=NNN
.Width
.Height
But I noticed a strange thing that the window begins to noticeably "animate" during these operations. Those. the window does not just disappear in the old place and appears in the new one, but you can see how it appears in the new one, then its sizes change, as if each .Top, .Left, .Width and .Heght operation is accompanied by a redraw (everything happens quickly, but you can see it).
Is there a way to set these parameters so that the window is not redrawn when changing any one parameter, but only all at once?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
Zakharov Alexander, 2017-06-26
@AlexZaharow

I decided. Special case.
Result: Solution: Expand the main program window to FULL screen. If there are several screens, then I summarize their sizes so that the main program window overlaps all screens. The main window is transparent, so you can't see it anyway. And now the main trick: the main window of the program remains in place all the time, but the frame and indicators move inside the main invisible window, which is located on top of the screen: It remains to make a few Cartesian transformations to determine the position of the frame with indicators relative to the main window. And in it, redrawing is carried out without any animations !!! Decided!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question