Hello,
This is probably a pretty stupid/naive question, but here goes... :-)
How can I get a XamComboEditor to look like a ComboBox? ComboBoxes currently displaying with rounded corners and a gray gradient, while XamComboEditors are simply white with a rectangular border.
My application has the following defined in its application resources:
<igThemes:EditorsOffice2k7Black/> <ResourceDictionary Source="/PresentationFramework.Aero, Version=3.0.0.0,Culture=neutral, PublicKeyToken=31bf3856ad364e35;component/themes/aero.normalcolor.xaml" />Thanks for any ideas you can throw my way...Regards,Bob
Hello Bob,
You can make the XamComboEditor looks like the Microsoft control by setting its Background color with suitable LinearGradientBrush. You can also customize the whole look of the control by styling its Control template. The default templates are installed by default on your computer along with the product, so I can suggest you find the file \Infragistics\NetAdvantage 2011.1\WPF\DefaultStyles\Editors\EditorsGeneric.xaml and set the CornerRadius property of the Border named MainBorder in the default style of the XamComboEditor in order to achieve a rounded corners.
If you need any further assistance on this, please do not hesitate to ask.
Hi Elena,
Thanks for the tip. I was hoping that perhaps there would be a simple way to base the XamComboEditor style on the ComboBox style so it would "inherit" the appearance automatically (e.g. something like
<Style TargetType="igEditors:XamComboEditor" BasedOn="{StaticResource {x:Type ComboBox}}"/> ) but I guess that's not possible....Thanks for the info!Bob