Skip to content

Commit 611420e

Browse files
Add details about new ribbon feature
1 parent bb6732c commit 611420e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

wpf/Ribbon/DealingWithRibbon.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2908,7 +2908,7 @@ End Sub
29082908

29092909
## Customizing the Header in RibbonTab
29102910

2911-
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.
2911+
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.
29122912

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

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

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

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

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

29502950
<syncfusion:RibbonTab x:Name="folderTab" Caption="Folder">
2951-
<syncfusion:RibbonTab.ContentTemplate>
2951+
<syncfusion:RibbonTab.CaptionTemplate>
29522952
<DataTemplate>
29532953
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="5,0,0,0">
29542954
<Path Width="16" Height="16" Stroke="Black" StrokeThickness="1" Margin="0,0,5,0" Stretch="Uniform"
29552955
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" />
29562956
<TextBlock Text="{Binding}" FontSize="14" Margin="0 3 0 0"/>
29572957
</StackPanel>
29582958
</DataTemplate>
2959-
</syncfusion:RibbonTab.ContentTemplate>
2959+
</syncfusion:RibbonTab.CaptionTemplate>
29602960
</syncfusion:RibbonTab>
29612961
</syncfusion:Ribbon>
29622962

0 commit comments

Comments
 (0)