c# - Item template for TabControl -


i'm using tabcontrol present data different datatables. xaml code:

<tabcontrol margin="5, 5, 5, 5"              horizontalalignment="stretch"              dockpanel.dock="top"             itemssource="{binding path=iteminfoviewmodels}">     <tabcontrol.itemtemplate>         <datatemplate>             <stackpanel>             <textblock text="{binding editingtable.name}"></textblock>             <contentcontrol>                     <partials:iteminfo />                 </contentcontrol>             </stackpanel>         </datatemplate>     </tabcontrol.itemtemplate> </tabcontrol> 

i view looks this:

tabcontrol view

which wrong. - header text , content - displayed header shown. how can change xaml, should?

try using contenttemplate instead of itemtemplate. itemtemplate applied header of each tabitem, contenttemplate used display selected tab.

you alternatively set itemcontainerstyle , manipulate settings on tabitems more directly.


Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -