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?