RadComboBox selected text color is black (hard to read)

10 posts, 0 answers
  1. PaulR
    PaulR avatar
    19 posts
    Member since:
    Jun 2016

    Posted 24 Jun Link to this post

    Using VisualStudio2013 theme with the dark palette, a RadComboBox shows up in a RadWindow with the selected edit text color as black on a dark background, which is hard to read.

    The drop-down part text color is white, so all good there. Just the textbox part.

     

  2. Masha
    Admin
    Masha avatar
    355 posts

    Posted 27 Jun Link to this post

    Hi Paul,

    I was not able to reproduce the described problem. I've created a demo project with the described scenario where the selected text inside Editable RadComboBox has the correct foreground. Can you check if I am missing something to reproduce the issue?

    Regards,
    Masha
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
  4. PaulR
    PaulR avatar
    19 posts
    Member since:
    Jun 2016

    Posted 05 Jul in reply to Masha Link to this post

    Remove the "IsEditable=True" from your combobox. That's the problem. Most combobox are non-editable, at least in our tool (which is why the default is false, not sure why you thought to set that property to true). I guess I confused you by using the word "edit", but I was trying to indicate the top textbox part as opposed to the bottom drop-down part. Anyway, black text in combobox also shows up in your RadGridView column header filter dropdown window, where those combobox are non-editable, for another example.
  5. PaulR
    PaulR avatar
    19 posts
    Member since:
    Jun 2016

    Posted 05 Jul Link to this post

    Just for info, since my initial post, I've discovered that you supply all the source XAML for the theme and, I haven't gotten to it yet, but I'm assuming I can go in there and fix up a lot of things I'm finding are "off a bit". Besides colors, for example, there is way too much margin and padding, and "hard-coded" MinHeights that can't easily be changed through styles that need to be cut in like half with the VS 2013 theme. So... just to say, I have a workaround fix now for the radcombobox issue. Thanks.
  6. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 08 Jul Link to this post

    Hello Paul,

    I removed IsEditable=True from the project, however I cannot observe the described behavior (please check the attached video). Also can you please share a screenshot or video of what you see on your side if different?

    I'm looking forward to hearing from you.

    Regards,
    Kalin
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  7. Jean-Philippe
    Jean-Philippe avatar
    3 posts
    Member since:
    May 2012

    Posted 28 Oct in reply to Kalin Link to this post

    Dear Kalin,

    currently I am having the same issue regarding the dark text on dark background when using the dark theme of VS2013.

    I have added a screenshot. The project can be downloaded from https://support.edevis.com/External/DarkThemevs2013.zip

    Version of my dlls is 2016.2.613.45

     

    Kind Regards

  8. PaulR
    PaulR avatar
    19 posts
    Member since:
    Jun 2016

    Posted 28 Oct Link to this post

    Hi,

    It's easy to make changes in the theme xaml files. Since you are resourcedictionary merging these theme xaml files somewhere in your system, you just need to get the original file of Telerik.Windows.Controls.Input.xaml, make a copy, look for "NonEditableComboBox", and in "PART_DropDownButton", add:

                        Foreground="{telerik1:VisualStudio2013Resource ResourceKey=MarkerBrush}"

    And then point your ResourceDictionary Source to that xaml which you include in your project. There's help in the implicit themes documentation. Snoop is also your friend to find these elements in the xaml files.

     

     

  9. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 31 Oct Link to this post

    Hi Jean-Philippe,

    I tested the sample project, however everything worked as expected on our side. Please check the attached video of my tests. Can you please share what OS version are you using and anything else that can be helpful? Are you able to reproduce it on other machine?

    I'm looking forward to hearing from you.

    Regards,
    Kalin
    Telerik by Progress
    Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
  10. Jean-Philippe
    Jean-Philippe avatar
    3 posts
    Member since:
    May 2012

    Posted 02 Nov in reply to Kalin Link to this post

    Dear Kalin,

    I think I found the problem. We were using the binaries with XAML included. When using the assemblies with no XAML it works as intended.

    This was because the assemblies were also used in projects without theming. And without loading a theme the controls have no templates.
    Is there a theme that uses the "default" from the XAML-included assemblies as a workaround for using the same assemblies for themed and unthemed? For example if I would like to switch themes at runtime but also wanted to include "no theme".

     

    Kind Regards

    Jean-Philippe

  11. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 02 Nov Link to this post

    Hi Jean-Philippe,

    I'm glad you have managed to find the source for issue. The default theme seen when using the XAML binaries is called OfficeBlack, so what I can recommend you would be to use only No XAML binaries and simply switch to OfficeBlack when you want to go with "no theme".

    Hope this helps.

    Regards,
    Kalin
    Telerik by Progress
    Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
Back to Top
UI for WPF is Visual Studio 2017 Ready