Thursday, 15 May 2014

c# - Position a WPF control absolute, above all other elements -



c# - Position a WPF control absolute, above all other elements -

i need display stripe @ top of main window hide unwanted artefacts. urgent workaround, nice know well. have 2 main grid columns, position stripe @ 0,0 relative client area of main window , have display across both grid columns.

do have resort direct windows api calls or possible in wpf, sort of layering or something?

something should work, fixed height grid @ top above other kid elements:

<grid> <grid.columndefinitions> <!-- column definitions --> </grid.columndefinitions> <!-- regular kid elements --> <grid grid.columnspan="2" horizontalalignment="stretch" verticalalignment="top" height="20"> <!-- stripe content goes here --> </grid> </grid>

c# wpf wpf-4.0 wpf-graphics

No comments:

Post a Comment