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
410
Text selection colors
posted

I would like to change colors of the text selection in both XamTextEditor and XamMaskedEditor. I found <Style TargetType="{x:Type igEditors:DisplayCharacterPresenter}"> which I could modify to change the text selection colors for ONLY the XamMaskedEditor.

So for the XamTextEditor, how do I do similar thing?

Thank you!

Parents
No Data
Reply
  • 35319
    Verified Answer
    posted

    Hi Jack,

     

    Thank you for your post. I have been looking into your question and I have been achieved the desired functionality by setting the ‘SelectionBrush’ property of the ‘PART_FocusSite’ textbox in the EditTemplate of the XamTextEditor. You can find the default style for the XamTextEditor in :

     

    C:\Program Files (x86)\Infragistics\NetAdvantage 2012.2\WPF\DefaultStyles\Editors\EditorsGeneric_Express.xaml

     

    I am attaching a sample application(TextEditorSelectedColor.zip) that shows this functionality.

    TextEditorSelectedColor.zip
Children
No Data