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
630
XamComboEditor appearance
posted

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
Parents
No Data
Reply
  • 17559
    posted

    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.

Children