I recently purchased 2012.2 verision of the controls. Coming from 2009. The new or updated control I'm intersted in is XamComboEditor. I would like to use it for it's new checkboxs and multiselectablity. I changed namespace to http://schemas.infragistics.com/xaml/wpf, but it seems to still use old control in Windows.Editor namespace. I get CheckboxVisiblity property does not exist in http://schemas.infragistics.com/xaml/wpf namespace. I referenced the InfragisticsWPF4.Controls.Editors.XamComboEditor.v12.2.dll.
Any ideas?
So how can I use the wpf themes such as Onyx, Office2kBlack, LunaSilver, etc on the shared controls? More importantly use the current theme (Infragistics.Windows.Themes.ThemeManager.CurrentTheme) which is just a string. My app allows users to pick the theme via drop down box. When user selects a different Theme I set the Infragistics.Windows.Themes.ThemeManager.CurrentTheme property and whole app changes. With the shared controls seems that this is not possible. The solution you provided is hard coded.
I tried this but did not work:
ResourceDictionary dic = Infragistics.Windows.Themes.ThemeManager.GetResourceSet(Infragistics.Windows.Themes.ThemeManager.CurrentTheme, "Editors"); if (dic != null) { xamComboEditorType.Resources.MergedDictionaries.Add(dic); }
Thanks
Hello,
As the XamComboEditor you are using is a shared control and in Silverlight themes are not supported even though you are using WPF the Theme property could not be set. You could still use a theme for the editor by adding it as ResourceDictionary:
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<igThemes:ResourceWasher>
<igThemes:ResourceWasher.SourceDictionary>
<ResourceDictionary Source="Themes/Metro.xamComboEditor.xaml" />
</igThemes:ResourceWasher.SourceDictionary>
</igThemes:ResourceWasher>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
I have modified the project in order to apply the Metro theme.
If you have any other questions on the matter, please do not hesitate to ask.
I found the problem. The namespace I was using was http://schemas.infragistics.com/xaml/wpf instead of http://schemas.infragistics.com/xaml.
But now that control does not have Theme property. I use that to set to current theme of application ie: Theme="[current]". How do I do this with the shared controls?
Well I think the issue is that I also have InfragisticsWPF4.Editors.v12.2.dll reference since I am using xamDataGrid. Also in the help under General Concepts->Assemblies->NetAdvantage Assemblies that dll is listed as deprecated but it is listed as a dependent of InfragisticsWPF4.DataPresenter.v12.2.dll. Which is not deprecated.
Hello Boricua,
Thank you for posting.
Infragistics has two controls named XamComboEditor one is shared (could be used in both in Silverlight and WPF) and the other one is used only in WPF. The shared XamComboEditor could be used after adding the InfragisticsWPF4.Controls.Editors.XamComboEditor.v12.2 and the editor only for WPF could be used after adding InfragisticsWPF4.Editors.v12.2. Here you could find more information about the shared editor which allows multi selection and using checkboxes. I have attached a sample project where I have used the shared XamComboEditor and its CheckboxVisibility and AllowMultiSelection properties to display some values. I hope this will help you.
Please do not hesitate to ask if you have any other questions.