TabControlExt close button style

how to style (most right) tabitem close button


1 Reply 1 reply marked as answer

GT Gokul Thanudhas Syncfusion Team June 20, 2022 02:02 PM UTC

Hi Fahad,



You can change the style of Close button by accessing the button. Please find the code snippets and attached sample for your reference


CodeSnippets


private void TabControl1_Loaded(object sender, RoutedEventArgs e)
   {
        TabPanelAdv panel = VisualUtils.FindDescendant(TabControl1, "TabPanelAdv") as TabPanelAdv;
        Button button = panel.Template.FindName("PART_CloseButton",panel) as Button;
        button.Style = this.TryFindResource("TabScrollingButton1") as Style;

   }


Regards,

Gokul T


Attachment: TabControlExtButtonStyle_ff2d27d2.zip

Marked as answer
Loader.
Up arrow icon