Completed
Last Updated: 04 Aug 2014 12:32 by Yannick
ADMIN
George
Created on: 20 Jun 2014 10:37
Category: UI Framework
Type: Bug Report
3
FIX. Windows8 and VisualStudio2012Light themes cause RadTextBox and controls which contain TextBoxItem to have a black background when disabled
To reproduce:

Set your theme to Windows8:

ThemeResolutionService.ApplicationThemeName = new Windows8Theme().ThemeName;

Add a RadTextBox and RadMaskedEditBox:

RadTextBox textBox = new RadTextBox
{
    Parent = this,
    Dock = DockStyle.Top,
    Text = "TextBox"
};

RadMaskedEditBox maskedEditBox = new RadMaskedEditBox
{
    Parent = this,
    Dock = DockStyle.Top,
    Text = "MaskedEditBox"
};

RadDateTimePicker dateTimePicker = new RadDateTimePicker
{
    Parent = this,
    Dock = DockStyle.Top,
    Text = "DateTimePicker"
};


You can also set their Enabled property to false prior running the form. Run the form and you will see that their background is black.

Workaround:

For the RadTextBox, set the BackColor of the RootElement to white:

textBox.RootElement.BackColor = Color.White;

For the RadMaskedEditBox, set the BackColor of the TextBoxItem to white:

maskedEditBox.MaskedEditBoxElement.TextBoxItem.BackColor = Color.White;

For the RadDateTimePicker, set the BackColor of the TextBoxItem to white as follows:

dateTimePicker.DateTimePickerElement.TextBoxElement.TextBoxItem.BackColor = Color.White;

2 comments
Yannick
Posted on: 11 Jul 2014 08:39
Same here, we can't migrate our application on the 2014-Q2 version because of this. Any plans for a fix in the SP1 ?
Joerg
Posted on: 07 Jul 2014 15:40
This issue currently visually 'breaks'/affects our application, too.