Unplanned
Last Updated: 29 Jun 2017 10:57 by ADMIN
ADMIN
Peshito
Created on: 08 Jun 2017 08:23
Category: RichTextBox
Type: Bug Report
0
RichTextBox: 'Tabs' button in Paragraph Properties dialog is visible despite that RadRichTextBox.TabStopsPropertiesDialog is not set
Tabs button in Paragraph Properties dialog is visible even when RadRichTextBox.TabStopsPropertiesDialog is not set. In addition, pressing the button in this scenario closes the Paragraph Properties dialog itself.

As this property is automatically set using MEF, this situation could happen if the tabs dialog is missing in the the composition container.

Workaround: Check whether the TabStopsPropertiesDialog is null and if true, then hide the TabsButton:

    var windowTabStopsPropertiesDialog = (this.radRichTextBox.TabStopsPropertiesDialog as RadWindow);
    var windowParagraphPropertiesDialog = (this.radRichTextBox.ParagraphPropertiesDialog as RadWindow);
    if (windowTabStopsPropertiesDialog == null)
    {
        (windowParagraphPropertiesDialog.FindName("TabsButton") as RadButton).Visibility = Visibility.Collapsed;
    }
0 comments