Unplanned
Last Updated: 31 Mar 2025 09:35 by Martin Ivanov
Martin Ivanov
Created on: 31 Mar 2025 09:35
Category: Spreadsheet
Type: Bug Report
0
Spreadsheet: Missing bottom border of the horizontal ScrollBar's track in the Office2019 theme

The horizontal ScrollBar of RadSpreadsheet is missing the bottom border of its track. Additional to that there is a slight offset between the right end of the viewport and the right button of the ScrollBar.

To work this around, set the Margin of the horizontal ScrollBar to 0, and modify its ControlTemplate so that it adds a bottom border for the track's RepeatButton elements.

private void RadSpreadsheet_Loaded(object sender, RoutedEventArgs e)
{
    var spreadsheet = (RadSpreadsheet)sender;
    var scrollBar = spreadsheet.ChildrenOfType<ScrollBar>().FirstOrDefault(x => x.Name == "HorizontalScrollBar");
    scrollBar.Margin = new Thickness(0);
    scrollBar.Template = (ControlTemplate)this.Resources["MyCustomScrollBarTemplate"];
}

0 comments