I am developing a WPF application that should run using the Windows Classic theme. An application creates a dialog box containing a ListBox. When a dialog box appears, it must be disabled for 1 second before accepting any input. I accomplish this with a style trigger and it works. However, the ListBox shows a white background when it is disabled, and I cannot get rid of it. When using the aero theme, the following style resource fixes the problem:
<SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="Transparent"/>
But when using the Windows Classic theme, a white background appears again. How can I fix the situation for a classic theme ???
wpf themes aero
Greg ferreri
source share