wpf - How to avoid sizing grip overlap in Window -
i made wpf window
containing statusbar
statusbaritem
, progressbar
.
the window has property resizemode
set canresizewithgrip
.
it shows sizing grip properly, overlaps elements underneath:
how can avoid overlap? can set right margin progress bar, how large? don't want use magic numbers or hardcoded values. nice have resolved purely in xaml.
you can change style "window" considering wishes. http://msdn.microsoft.com/en-us/library/aa969824(v=vs.110).aspx or https://stackoverflow.com/a/8278917/3492412
or can this
<statusbar verticalalignment="bottom"> <statusbaritem x:name="statusbar" background="gray" horizontalcontentalignment="stretch"> <dockpanel> <resizegrip dockpanel.dock="right" visibility="hidden" /> <progressbar background="red" height="20" value="50" /> </dockpanel> </statusbaritem> </statusbar>
Comments
Post a Comment