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>

Parents Reply
  • 2680
    Offline posted in reply to Somanna Chottekalapanda

    Hi Somanna,

    The default styles are saved in the mentioned directory when installing the product with the installer. However, as of the latest version 23.2 and as per our documentation here, the Infragistics traditional installer has been removed, and so the WPF controls are now supported exclusively through NuGet moving forward. So, I assume your app is using the NuGet packages in this case, isn’t it?

    Anyways, it is still possible to download these resources, as they are needed for scenarios such as the current. They can be found on the Customer Portal, under downloads. Under the WPF Product section you will find a bundle named “Ultimate UI for WPF 2023 Vol. 2 Product And Samples”. This will download an archive containing three installers. The one you need is named “Infragistics_WPF_20232”. After running it, the Default Styles directory should be under the following path, as mentioned: C:\Program Files (x86)\Infragistics\2023.2\WPF\DefaultStyles.

    Just for the sake of the demo, I am also attaching a sample with the same code for styling the XamComboEditor (input), only in a project targeting .NET 6 and having the 23.2 latest release of Ultimate UI for WPF Trial installed as a NuGet package. As you will see, the result is the same.

    If you require any further information, please, let me know.

    Best regards,
    Bozhidara Pachilova

    3005.WpfApp1Net6.zip

Children