We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Change NewButton in TabControlExt

Thread ID:





110143 Jul 21,2013 05:49 PM Jul 29,2013 06:14 PM WPF 4
Tags: Tools
Charalampos Kouris
Asked On July 21, 2013 05:49 PM

Hi there,

I have a TabControlExt something like this and try to change the NewButton:

<syncfusion:TabControlExt x:Name="Items" Margin="2,6,2,2" CloseButtonType="Hide" CloseMode="Delete" EnableLabelEdit="False" IsNewButtonEnabled="True" TabStripPlacement="Top">

            <Button Content="New..." caliburn:Message.Attach="NewItem()"/>                              

This doesn't work so bad but when I close the TabControl the Button still stays on the screen. Any idea why that happens?

Thanks in advance

Muthalagu M [Syncfusion]
Replied On July 24, 2013 01:49 AM

Hi Charalampos,

Thank you for using Syncfusion Products.

We are not able to understand your queries, Could you please explain it with simple sample to us? and it would be better for us to provide you a better solution.

Please let us know in case of any queries.


Charalampos Kouris
Replied On July 24, 2013 01:19 PM

Hi again,

I have a TabControlExt in a WPF window and I've switched on the option IsNewButtonEnabled="True. Now I want to change the appearence/style of the NewTabButton, instead of the default one I want to place a ButtonAdv there (or maybe other wpf control like stack panel etc).

Hope this is more clear.

Muthalagu M [Syncfusion]
Replied On July 29, 2013 03:37 AM

Hi Charalampos,

Thank you for your update.

We have prepared a sample to achieve your requirement and you can download the sample from the attached file.

In this sample, we have modified the NewButtonTemplate as you have required which contains the Stackpanel and Borders. Also we have hooked the NewButtonClick event to add the TabItemExt at runtime.

Please let us know in case of any queries.




Charalampos Kouris
Replied On July 29, 2013 06:14 PM

Thanks a lot, that pointed me to the right direction.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.