question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Changing background color of Fluent:TextBox input field

See original GitHub issue

Hi! I was wondering if it’s possible to change the background of Fluent TextBox input control? The following code below didn’t work for me sadly:

<Fluent:TextBox Header="Sample header text" Background="Red"/>

The result: textbox The background of the input field wasn’t changed.


Environment

  • Fluent.Ribbon v8.0.3
  • Windows 10 x64
  • .NET Framework 4.8

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
batzencommented, Jun 26, 2021

That’s of course possible. 😉 You can set the resource Fluent.Ribbon.Brushes.TextBox.Background to change the background. Have a look at https://github.com/fluentribbon/Fluent.Ribbon/blob/develop/Fluent.Ribbon/Themes/Themes/Theme.Template.xaml for all available resources.

0reactions
batzencommented, Nov 26, 2021

Glad you found a solution. Sorry for not providing a sample. Totally forgot about this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to change input text color of fluent ui TextField?
You need to do the following change in your code. Inside styles, instead of input use field property to change css for input...
Read more >
Official Form Styler of Fluent Forms
Set the input fields and text areas with background and text colors. Change the font size, font weight, text decoration, line height, ...
Read more >
How to style a Fluent Forms form - oxygen4fun
I have added a black color for the text, you don't necessary need it, but my website's default color text is white, so...
Read more >
Styling Beautiful CSS Forms with Fluent Forms' Global Styler
Here, you will see fields named as, Background Color, Color, Form Margin, Form Padding, Border Type, Border Color, Border Width, and Border-Radius.
Read more >
Change background color of text box in forms
To select which color you want for each field, open the field settings, go to the advanced tab, and put the CSS class...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found