canton7 / Stylet

A very lightweight but powerful ViewModel-First MVVM framework for WPF for .NET Framework and .NET Core, inspired by Caliburn.Micro.
MIT License
994 stars 143 forks source link

How can I custom the TabItem style #141

Closed zredb closed 3 years ago

zredb commented 4 years ago

Hello,

as the sample shows as below:

how can i custom the TabItem styles? this template change the TabItem to ContentControl, but custom the ContentControl to TabItem style is not so simple. and where is the location of StyletConductorTabControl location? thank you.

canton7 commented 4 years ago

The GitHub search box leads you to this: is that what you were after?

In fact, the very page you linked to gives you the equivalent XAML:

<TabControl ItemsSource="{Binding Items}" SelectedItem="{Binding ActiveItem}" DisplayMemberPath="DisplayName">
   <TabControl.ContentTemplate>
      <DataTemplate>
         <ContentControl s:View.Model="{Binding}" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" IsTabStop="False"/>
      </DataTemplate>
   </TabControl.ContentTemplate>
</TabControl>
canton7 commented 3 years ago

Closing as no response.