Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The first thing I would try is to set the style of the last <em>TabItem</em>. In the style if you bind the <em>Header</em> property to the <em>Content</em> property that should make the button appear in the TabItems header. Then you will would want a DataTemplate that is invisible for the item so that you don't see it in the tab's content area.</p> <p>If that diesn't work then you may need to make a new ControlTemplate for the tab item. The default template looks like this:</p> <pre><code>&lt;Grid SnapsToDevicePixels="true"&gt; &lt;Border Name="Bd" Padding="{TemplateBinding Padding}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" BorderThickness="1,1,1,0"&gt; &lt;ContentPresenter Name="Content" ContentSource="Header" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RecognizesAccessKey="true" HorizontalAlignment="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" VerticalAlignment="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" /&gt; &lt;/Border&gt; </code></pre> <p></p> <p>The only thing you would have to change is the ContentSource from <em>Header</em> to <em>Content</em>. You should create a copy of the original to do this in though, because otherwise you will miss out on all the relevant triggers. You can find the original using the BAML viewer extension for Reflector. Or you could get the original in Blend if you have that.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload