c# - How can set absolute position on stackpanel or grid in xaml WPF -


is possible set stackpanel or grid position absolute css. in css have property position of elements , can set relative, absolute , working good.

in xaml can make grid, stackpanel use position absolute.

you have use canvas in order set absolute position in wpf.

in case of buttons in window, here sample :

<window x:class="tobedeleted.mainwindow"         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"         xmlns:d="http://schemas.microsoft.com/expression/blend/2008"         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"         mc:ignorable="d"         title="mainwindow" height="350" width="525">      <canvas>         <button canvas.left="10" canvas.bottom="20">bottom left</button>     </canvas> </window> 

the output :

enter image description here

feel free ask if needed.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -