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
2370
Add Image to selected item in ComboEditorTool when dropdown is not open
posted

I can style the items in the combobox just fine.  Is there a way to style the textblock selected item without overriding the default style?  If I need to override the default ControlTemplate, can you point me in the correct direction?  I am using the Office2013 theme.

Thanks!

Jon

ComboEditorToolStyling.zip
Parents
  • 34810
    Offline posted

    Hello Jon,

    Thank you for your post.

    I have been investigating into this, and I would recommend that you modify the default control template of the ComboEditorTool to achieve this requirement. As you are currently using the Office2013 theme, you will want to modify the Office2013 control template. This template can be found in the RibbonOffice2013.xaml file that commonly exists at the following directory: C:\Program Files (x86)\Infragistics\<your version here>\WPF\DefaultStyles\Ribbon.

    Once you implement the default style for ComboEditorTool and all of the dependencies on that default style, I would recommend that you take a look at the Grid element within the default template named "TextBlockGrid." I would recommend adding an additional ColumnDefinition to this grid to contain the Image that you are looking to place inside and modify the ToggleButton and TextBlock children that were the pre-existing children of that grid to be in their correct Grid.Column as well.

    I have attached a sample project to demonstrate the above. I hope this helps you.

    Please let me know if you have any other questions or concerns on this matter.

    Sincerely,
    Andrew
    Associate Developer
    Infragistics Inc.
    www.infragistics.com/support

    XamRibbonComboEditorToolStyleCase.zip
Reply Children