I have a very odd problem:
- In my C# code, if I set the "Topmost" property, the window does not stay on top.
- However, if I toggle this same property in Snoop, the windows stays on top.
My question is this: what is Snoop doing to force the window refresh?
What I have tried
I have tried the following:
window.UpdateLayout()
;window.InvalidateVisual()
;- Adding a background task to continuously set this property.
- Setting
TopMost
tofalse
, thentrue
, to trigger a DependencyProperty refresh.