Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
535
ComboEditor not redrawing DropDown Menu on Win Classic theme with transparency
posted

Hi,

I have a problem with the xamComboEditor when used with the classic theme in windows activated.

With Aero activated there is no problem, only if the classic theme is in use.

When the DropDown Menu closes it is not rerendered properly, so it looks like it is still open.

I managed to break it down to the use of the attribute AllowsTransparency on the window. If it is set to true the problem occurs.

The whole application with all its windows is designed to use it, so there is no way of disabling transparency.

In the attached picture you can see the problem.

If I focus the TextBox, only the select line shines through.

Code to reproduce with win classic theme activated:

<Window x:Class="ComboEditorTest.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ig="http://schemas.infragistics.com/xaml"
        Title="MainWindow"
        Width="525"
        Height="350"
        AllowsTransparency="True"
        Background="{x:Null}"
        WindowStyle="None">
    <Grid Margin="5">
 
        <Rectangle x:Name="recBackground"
                   Fill="Gray"
                   RadiusX="5"
                   RadiusY="5"
                   Stroke="Black">
            <Rectangle.Effect>
                <DropShadowEffect />
            </Rectangle.Effect>
        </Rectangle>
 
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
 
            <TextBlock Margin="5"
                       VerticalAlignment="Center"
                       Text="ComboBox" />
            <ig:XamComboEditor x:Name="combo1"
                               Grid.Column="1"
                               Margin="5"
                               IsEditable="False" />
 
            <TextBlock Grid.Row="1"
                       Margin="5"
                       VerticalAlignment="Center"
                       Text="ComboBox" />
            <ig:XamComboEditor x:Name="combo2"
                               Grid.Row="1"
                               Grid.Column="1"
                               Margin="5"
                               IsEditable="False" />
 
            <TextBlock Grid.Row="2"
                       Margin="5"
                       VerticalAlignment="Center"
                       Text="TextBox" />
            <TextBox Grid.Row="2"
                     Grid.Column="1"
                     Height="70"
                     Margin="5" />
 
            <Button Grid.Row="3"
                    Margin="5"
                    Content="Button" />
            <TextBlock Grid.Row="3"
                       Grid.Column="1"
                       Text="Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet."
                       TextWrapping="Wrap" />
        </Grid>
    </Grid>
</Window>