c# - How to create a hovered toolbar -


enter image description here

how create hovered toolbar? clicking expand toolbar not shrink canvas.

expander works expanding, canvas shrinked.

<usercontrol x:class="smartgrid.studio.view.graphiceditorview"          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"          xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"          xmlns:model="clr-namespace:smartgrid.studio.model"          xmlns:studio="clr-namespace:smartgrid.studio"          xmlns:metro="clr-namespace:mahapps.metro.controls;assembly=mahapps.metro"          mc:ignorable="d"           d:designheight="1000" d:designwidth="1000"> <dockpanel>     <expander dockpanel.dock="left" header ="toolbar" fontsize="18" expanddirection="up">         <treeview name="graphiceditorentitytree" background="transparent" borderbrush="transparent" itemssource="{binding graphiceditorentities}"/>     </expander>     <canvas/> </dockpanel> </usercontrol> 

you can overlay things putting them in grid without rows or columns, sizing of toolbar independent matter (you can still use expander that).


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -