Skip to content

Commit 41f547a

Browse files
author
prabakaran-sangameswaran
authored
Update MainWindow.xaml
NewTabButtonTemplate code changed
1 parent 1cf200d commit 41f547a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Samples/NewButton/MainWindow.xaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
Name="tabControlExt">
3131

3232
<!--Custom UI for the NewButton -->
33-
<syncfusion:TabControlExt.NewButtonTemplate>
34-
<ControlTemplate>
33+
<syncfusion:TabControlExt.NewTabButtonTemplate>
34+
<DataTemplate>
3535
<Button Background="{Binding NewButtonBackground}"
3636
Content=" + ">
3737
<i:Interaction.Triggers>
@@ -41,8 +41,8 @@
4141
</i:EventTrigger>
4242
</i:Interaction.Triggers>
4343
</Button>
44-
</ControlTemplate>
45-
</syncfusion:TabControlExt.NewButtonTemplate>
44+
</DataTemplate>
45+
</syncfusion:TabControlExt.NewTabButtonTemplate>
4646

4747
<!--Binding the header text for the Tab item-->
4848
<syncfusion:TabControlExt.ItemContainerStyle>
@@ -136,4 +136,4 @@
136136
</GroupBox>
137137
</Grid>
138138
</Window>
139-
139+

0 commit comments

Comments
 (0)