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?
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.
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.
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?
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.
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
As the shared controls do not have a theme property, the theme could not be set with setting the current theme. What you could do here is adding the themes for the shared controls as ResourceDictionary. Please have a look at the project I have attached. I have used two shared controls and the user could change the theme of the two controls by selecting different item from the XamComboEditor.
Please feel free to let me know if you have any other questions on the matter.
I see what you mean. The background colors of the two controls are not the same if both have Office2010Blue theme applied but they are different controls even though they have the similar functionality. In order to set other background color to one of them, you could change the xaml file for the theme the control is using. It is located in the Infragistics folder.
I have logged a new product idea for having all WPF themes for the shared controls. I have sent your product idea directly to our product management team. Our product team chooses new product ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested features, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your feature is chosen for development, you will be notified at that time. Your reference number for this product idea is PI12110040.
If you would like to follow up on your product idea at a later point, you may contact Developer Support management via email. Please include the reference number of your product idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
Thank you for your request.
There is styling diferences between Shared and WPF controls. For example Office2010Blue, WPF controls textbox background color is light blue where for the shared is white. See attachments.
Any plans to make those WPF Styles available for the shared controls?
Thank you for your feedback. The themes that could be applied on both WPF and Silverlight are the three that are in my previous example. Themes like Onyx, Office2k7Black, Aero, etc. are internally applied to the WPF controls and even if they are added as resource dictionaries, they will not take any effect on the shared controls.
Please do not hesitate to ask if you have any other questions on the matter.
In your previous post you said "The WPF theme could be used to style the shared controls", and in your example you just use the Shared Control themes (IG, Metro, Office2010Blue). Can you apply WPF control theme to the shared controls like Onyx, Office2k7Black, Aero, etc?