Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions wpf/Ribbon/DealingWithRibbon.md
Original file line number Diff line number Diff line change
Expand Up @@ -2908,7 +2908,7 @@ End Sub

## Customizing the Header in RibbonTab

The Ribbon control allows customization of the tab headers using The ContentTemplate property. This enables users to enhance the visual appearance of tabs by adding icons and styled caption text.
The Ribbon control allows customization of the tab headers using The CaptionTemplate property. This enables users to enhance the visual appearance of tabs by adding icons and styled caption text.

Below is an example where the Home, Send / Receive, and Folder tabs are customized with an icon and caption text:

Expand All @@ -2918,15 +2918,15 @@ Below is an example where the Home, Send / Receive, and Folder tabs are customiz

<syncfusion:Ribbon VerticalAlignment="Top">
<syncfusion:RibbonTab x:Name="homeTab" Caption="Home">
<syncfusion:RibbonTab.ContentTemplate>
<syncfusion:RibbonTab.CaptionTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="5,0,0,0">
<Path Width="16" Height="16" Stroke="Black" StrokeThickness="0.5" Margin="0,0,5,0" Stretch="Uniform"
Data="M10,1 L3,6.5 V14 H7 V10 H13 V14 H17 V6.5 L10,1 Z" />
<TextBlock Text="{Binding}" FontSize="14" Margin="0 3 0 0"/>
</StackPanel>
</DataTemplate>
</syncfusion:RibbonTab.ContentTemplate>
</syncfusion:RibbonTab.CaptionTemplate>

<syncfusion:RibbonBar Name="New" Width="90" Header="New"/>
<syncfusion:RibbonBar Name="Delete" Width="90" Header="Delete"/>
Expand All @@ -2936,27 +2936,27 @@ Below is an example where the Home, Send / Receive, and Folder tabs are customiz
</syncfusion:RibbonTab>

<syncfusion:RibbonTab x:Name="sendOReceiveTab" Caption="Send / Receive">
<syncfusion:RibbonTab.ContentTemplate>
<syncfusion:RibbonTab.CaptionTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="5,0,0,0">
<Path Width="16" Height="16" Stroke="Black" StrokeThickness="1" Margin="0,0,5,0" Stretch="Uniform"
Data="M2,2 L14,8 L2,14 L4,9 L10,8 L4,7 Z" />
<TextBlock Text="{Binding}" FontSize="14" Margin="0 3 0 0"/>
</StackPanel>
</DataTemplate>
</syncfusion:RibbonTab.ContentTemplate>
</syncfusion:RibbonTab.CaptionTemplate>
</syncfusion:RibbonTab>

<syncfusion:RibbonTab x:Name="folderTab" Caption="Folder">
<syncfusion:RibbonTab.ContentTemplate>
<syncfusion:RibbonTab.CaptionTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="5,0,0,0">
<Path Width="16" Height="16" Stroke="Black" StrokeThickness="1" Margin="0,0,5,0" Stretch="Uniform"
Data="M2,4 H6 L7,6 H14 A1,1 0 0 1 15,7 V13 A1,1 0 0 1 14,14 H2 A1,1 0 0 1 1,13 V5 A1,1 0 0 1 2,4 Z" />
<TextBlock Text="{Binding}" FontSize="14" Margin="0 3 0 0"/>
</StackPanel>
</DataTemplate>
</syncfusion:RibbonTab.ContentTemplate>
</syncfusion:RibbonTab.CaptionTemplate>
</syncfusion:RibbonTab>
</syncfusion:Ribbon>

Expand Down