TrackItem

Example Style

 <!-- Track Item / Clip style -->
    <Style Selector="te|TrackItem">
      <Setter Property="Background" Value="#428418"/>
      <Setter Property="MinWidth" Value="20"/>
      <Setter Property="MinHeight" Value="60"/>
      <Setter Property="Margin" Value="0,0.5"/>
      <Setter Property="Template">
        <ControlTemplate>
        <Border Name="PART_Border"
                CornerRadius="5"
                BorderThickness="2"
                ClipToBounds="True">
          <Panel>
            <ContentPresenter Name="PART_ContentPresenter"
                  Background="{TemplateBinding Background}"
                  BorderBrush="{TemplateBinding BorderBrush}"
                  CornerRadius="4"
                  BorderThickness="{TemplateBinding BorderThickness}"
                  ContentTemplate="{TemplateBinding ContentTemplate}"
                  Content="{TemplateBinding Content}"
                  Padding="{TemplateBinding Padding}"
                  VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
                  HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" />
            
            <TextBlock Text="{TemplateBinding Title}" 
                       FontWeight="Medium" 
                       Margin="5,3" 
                       FontSize="12"
                       Foreground="White"
                       ToolTip.Tip="{TemplateBinding Title}"/>
            
          </Panel>
        </Border>
        </ControlTemplate>
      </Setter>
    </Style>

Last updated

Was this helpful?