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
240
Strange rendering behavior in dropdown
posted

I have a XamMultiColumnComboEditor that has the following XAML:

<ig:XamMultiColumnComboEditor Grid.Column="0" Margin="0,0,0,2" DisplayMemberPath="Name"
ItemsSource="{Binding DataContext.Groups, Mode=OneWay, RelativeSource={RelativeSource AncestorType=ScrollViewer}}"
SelectedItem="{Binding Group, Mode=TwoWay}"
SelectedItemsResetButtonVisibility="Visible"
AllowMultipleSelection="False"
AutoGenerateColumns="False">
<ig:XamMultiColumnComboEditor.Columns>
<ig:TextComboColumn Key="Name" Width="*" />
</ig:XamMultiColumnComboEditor.Columns>
<ig:XamMultiColumnComboEditor.Resources>
<Style TargetType="ig:ComboHeaderCellControl">
<Setter Property="Visibility" Value="Collapsed"/>
</Style>
<Style TargetType="ig:ComboCellControl">
<Setter Property="BorderThickness" Value="0" />
</Style>
</ig:XamMultiColumnComboEditor.Resources>
</ig:XamMultiColumnComboEditor>

The section where we are setting the border thickness of the ComboCellControl to 0 seems to be problematic. On my pc, everything works and looks fine. On the systems of a couple of my teammates, however, the dropdown box expands as if it has values populated, but it looks empty. If you click somewhere in that area, it will populate the box with a value, but nothing ever shows up in the dropdown. If we take out the bolded section of XAML it works fine on their systems. We also tried just setting the border color of the ComboCellControl to the background color, but that resulted in the same behavior on those systems. We think that it has something to do with foreground vs background, but are unsure of why a border brush would be tied to a font brush and why the problem would not be consistent from system to system.

We are using the Office 2013 theme with Infragistics 15. Any ideas on this before we begin to dig into it?

Parents
  • 16495
    Offline posted

    Hello,

    I have created a simple project in order to test the rendering issue that you are having. I followed the code snippet you have provided and I was unable to reproduce the behavior you're describing.  I have attached the sample project I used to test this.  Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem. If the project does not work correctly, then the change in behavior is due to differences in your environment from mine and these differences can be anything from operating system version to the specific version of the Infragistics DLL versions used.  My test was performed using versions: 15.1.20151.1000, 15.1.20151.2251 and also the latest Service Release of 16.2 - 16.2.20162.2141 in WPF product.

    If the project does show the product feature working correctly, then more information will be needed to reproduce the issue in a sample that can be used for debugging.  It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.  This can be done by either making the sample that I provided more like your application or by isolating the behavior from your application by removing dependencies on any third parties or databases.

    It is better to set the BasedOn property of your Style to the Style for the Theme you are using. Additional details for style issues when using Theme are available on the  'Common Style Issues when using the Theme property' blog post:

    <ig:XamMultiColumnComboEditor.Resources>
        <Style TargetType="{x:Type ig:ComboHeaderCellControl}"  BasedOn="{StaticResource ComboHeaderCellControlStyle}">
            <Setter Property="Visibility" Value="Collapsed"/>
        </Style>
        <Style TargetType="{x:Type ig:ComboCellControl}"  BasedOn="{StaticResource ComboCellControlStyle}">
            <Setter Property="BorderThickness" Value="0" />
        </Style>
    </ig:XamMultiColumnComboEditor.Resources>

    Please let me know if I can provide any further assistance.

    Sincerely,
    Zhivko
    Associate Software Developer

    MultiComboRenderingIssue.zip
Reply Children