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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -