vb.net - Using Canvas in order to BringToFront elements in WPF -
following codes okey.
<dockpanel> <canvas> <button name="button6" canvas.left="60" canvas.top="10" height="100" width="100" panel.zindex="1"/> <button name="button5" canvas.left="60" canvas.top="10" height="100" width="100" panel.zindex="2"/> <button name="button4" canvas.left="60" canvas.top="10" height="100" width="100" panel.zindex="3"/> <button name="button3" canvas.left="60" canvas.top="10" height="100" width="100" panel.zindex="4"/> <button name="button2" canvas.left="60" canvas.top="10" height="100" width="100" panel.zindex="5"/> <button name="button1" canvas.left="60" canvas.top="10" height="100" width="100" panel.zindex="6"/> </canvas> </dockpanel>
.
panel.setzindex(button2, panel.getzindex(button1) + panel.getzindex(button3) + panel.getzindex(button4) + panel.getzindex(button5) + +panel.getzindex(button6))
but want use more professional code instead of second code above.
following coding looks okey. following code c#. need vb.net code. https://stackoverflow.com/a/6044491
Comments
Post a Comment