c# - How to redraw revealed windows on (custom) window resize -
i have strange issue in wpf, have created custom window type (comes notification icon , custom chrome, mainly). under normal circumstances works fine (e.g. resizing using handles etc). however, when trying make window automatically size content, i've ended situation can resize smaller without redrawing windows behind it.
when window moved (via dragmove()
), correctly repaints behind it, until either moves or hidden, nothing happens.
can tell me messages dragmove()
generating cause area hidden window client area invalidate , repaint correctly? i've tried wm_paint
pointed @ custom window, either nothing (e.g. windows doesn't expect wm_paint
message me) or repaints current client area, not previous one.
whilst not able identify why issue occurring, , isn't answer question posed, able resolve problem taking different approach. previously, had been binding on maxheight
, minheight
; worked using sizetocontent
instead (which doesn't suffer same inability render restore background binding maxheight
, minheight
did in approach), , removed ability resize control.
this isn't answer (if know how force windows redraw area window used occupy, i'd still interested), solve problem.
Comments
Post a Comment