Articles in this section
Category / Section

How to remove the outline’s label buttons in WinRT Spreadsheet?

3 mins read

SfSpreadsheet provides support to remove the outline’s label buttons by creating the custom OutlinesPanel and overriding the AddOutlineLabelButtons method like below. 

 

C#

public class OutlinesPanelExt : OutlinesPanel
{
    protected override void AddOutlineLabelButtons(WorksheetImpl worksheetImpl)
    {   
        return;
    }
}

 

Then you need to replace the default OutlinesPanel with this custom OutlinesPanelExt into the ControlTemplate of SfSpreadsheet. Please refer the App.xaml file of the attached sample.

 

The following screenshot illustrates the OutlinesPanel and Outline label buttons of SfSpreadsheet.

 

OutlinesPanel and Outline label buttons of SfSpreadsheet.

 

The following screenshot illustrates the SfSpreadsheet after removing the Outline label buttons.  

  SfSpreadsheet after removing the Outline label buttons.

 

Sample links:

 

WPF

 

WinRT

 

UWP

 

 

 

 

 

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied