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
255
XamComboEditor text formatting
posted

Hi

I have a XamComboEditor for which I set a DataTemplate for the POCO DataType bound to it. This is a checkbox list which allows for multiple selections and this works fine. The issue I have is that I need to format the display in the textbox. Some of the selected items need to appear in bold and some not. Is there a way of overriding the style of the text box and displaying a RichTextbox instead?

  • 138253
    Offline posted

    Hello,

     

    I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.

  • 138253
    Offline posted

    Hello,

     

    Thank you for your post. I have been looking into it and I suggest you copy the default Style for the XamComboEditor, which you can find here: C:\Program Files (x86)\Infragistics\NetAdvantage 2011.2\WPF\DefaultStyles\XamComboEditor\generic.xaml file. There is a Style for XamComboEditor and in its Template there is a StackPanel called MultiSelectConentPanel. In its Resources you can add a Style for TextBlock element and handle its Loaded event and there you can modify the Text. Because the TextBlocks are created dynamically in code, you are not able to replace them with RichTextBlocks. Please let me know if this helps you or you need further assistance on this matter.

     

    Looking forward for your reply.