c# - How do I move the AvalonDock Anchorable Pane tab to the top instead of the bottom? -



c# - How do I move the AvalonDock Anchorable Pane tab to the top instead of the bottom? -

i using avalondock in project , utilize anchorable pane, instead of tab appearing @ bottom, appear @ top on document pane. project, document pane not appropriate control, need find way create anchorable pane appear in same way.

according issue ticket found on codeplex there bug prevents changing tabstripplacement top. way accomplish replace existing style 1 this:

<setter property="tabstripplacement" value="top"/> <setter property="template"> <setter.value> <controltemplate targettype="{x:type xcad:layoutanchorablepanecontrol}"> <grid cliptobounds="true" snapstodevicepixels="true" keyboardnavigation.tabnavigation="local"> <grid.rowdefinitions> <rowdefinition height="auto"/> <rowdefinition height="*"/> </grid.rowdefinitions> <!--following border required grab mouse events--> <border background="transparent" grid.rowspan="2"/> <xcad:anchorablepanetabpanel x:name="headerpanel" margin="2,0,2,2" isitemshost="true" grid.row="0" keyboardnavigation.tabindex="1" panel.zindex="1"/> <border x:name="contentpanel" borderbrush="{templatebinding borderbrush}" borderthickness="{templatebinding borderthickness}" background="{templatebinding background}" grid.column="0" keyboardnavigation.directionalnavigation="contained" grid.row="1" keyboardnavigation.tabindex="2" keyboardnavigation.tabnavigation="cycle"> <contentpresenter x:name="part_selectedcontenthost" contentsource="selectedcontent" margin="{templatebinding padding}" snapstodevicepixels="{templatebinding snapstodevicepixels}"/> </border> </grid> <controltemplate.triggers> <trigger property="isenabled" value="false"> <setter property="foreground" value="{dynamicresource {x:static systemcolors.graytextbrushkey}}"/> </trigger> </controltemplate.triggers> </controltemplate> </setter.value> </setter> <setter property="itemcontainerstyle"> <setter.value> <style targettype="{x:type tabitem}"> <setter property="isselected" value="{binding isselected, mode=twoway}"/> <setter property="tooltip" value="{binding tooltip}"/> <style.triggers> <datatrigger binding="{binding relativesource={relativesource mode=findancestor, ancestortype={x:type tabcontrol}}, path=items.count}" value="1"> <setter property="visibility" value="collapsed"/> </datatrigger> </style.triggers> </style> </setter.value> </setter> <setter property="itemtemplate"> <setter.value> <datatemplate> <xcad:layoutanchorabletabitem model="{binding}"/> </datatemplate> </setter.value> </setter> <setter property="contenttemplate"> <setter.value> <datatemplate> <xcad:layoutanchorablecontrol model="{binding}"/> </datatemplate> </setter.value> </setter> </style>

c# tabs wpftoolkit avalondock placement

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -