Unplanned
Last Updated: 23 Mar 2026 16:40 by Martin Ivanov
Martin Ivanov
Created on: 23 Mar 2026 16:40
Category: Spreadsheet
Type: Bug Report
0
Spreadsheet: The ScreenTip label in the Hyperlink dialog is vertically misaligned to the associated TextBox in the Windows 11 theme

The label of the field that allows you to set the ScreenTip in the Hyperlink dialog is not vertically centered to the associated textbox visual. This reproduces in the Windows11 theme.

To work this around, get the TextBlock element in the Hyperlink dialog and set its VerticalAlignment property to Center.

private void RadSpreadsheet_Loaded(object sender, RoutedEventArgs e)
{
    var hyperlinkDialog = this.spreadsheet.ActiveWorksheetEditor.Dialogs.HyperlinkDialog as HyperlinkDialogContent;
    hyperlinkDialog.Loaded += HyperlinkDialog_Loaded;
}

private void HyperlinkDialog_Loaded(object sender, RoutedEventArgs e)
{
    var dialog = (HyperlinkDialogContent)sender;
    var screenTipLocalizedText = LocalizationManager.Manager.GetStringOverride("Spreadsheet_InsertHyperlinkDialog_ScreenTip");
    var screenTipTb = dialog.ChildrenOfType<TextBlock>().FirstOrDefault(x => x.Text == screenTipLocalizedText);
    if (screenTipTb != null)
    {
        screenTipTb.VerticalAlignment = VerticalAlignment.Center;
    }            
}

0 comments