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
50
Two XamComboEditor available
posted

There are two XamComboEditor controls in the library. One in the Infragistics.Controls.Editors and another in Infragistics.Windows.Editors.

I am having to use the Infragistics.Controls.Editors.XamComboEditor because it allows autocomplete/filtering on conditional operator (example below)

<ig:XamComboEditor
AllowFiltering="True"
AutoComplete="True"
ItemsSource="{Binding BookCodes}"
SelectedItem="{Binding SelectedBook}">
<ig:XamComboEditor.ItemFilters>
<ig:ComboItemFilter>
<ig:ComboItemFilter.Conditions>
<ig:ComparisonCondition Operator="Contains" />
</ig:ComboItemFilter.Conditions>
</ig:ComboItemFilter>
</ig:XamComboEditor.ItemFilters>
</ig:XamComboEditor>

However, to define a style for this control, based on one of your themes against it is not striaghtforward. There is a style defined for Infragistics.Windows.Editors.XamComboEditor but not for Infragistics.Controls.Editors.XamComboEditor.

<ResourceDictionary
xmlns="">schemas.microsoft.com/.../presentation"
xmlns:x="">schemas.microsoft.com/.../xaml"
xmlns:editors="">infragistics.com/Editors"
xmlns:igThemes="">infragistics.com/Themes">
<Style BasedOn="{x:Static igThemes:EditorsRoyalLight.XamComboEditor}" TargetType="{x:Type editors:XamComboEditor}">
<Setter Property="Margin" Value="3" />
</Style>
</ResourceDictionary>