dotnet / dotnet/wpf

ScrollViewer background property affects the background property of the Textbox

Open
#5,752 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

_This issue has been moved from [a ticket on Developer Community](https://developercommunity2.visualstudio.com/t/ScrollViewer-background-property-affects/1263968?preview=true)._

---
[severity:It's more difficult to complete my work]
I created a Scrollviewer style with brackground="blue" and a TextBox style with background="yellow".
When i am debugging my project, the background from all textboxes dont change to yellow rather it change to blue.
So i delete my style of textbox and create a new one with same parameters, but it didnt work.
After a long time i found the issue.
The style of the ScrollViewer affects to the style of the TextBox, i dont know why.. but when i give the style of scrollviewer a x:key, the background from textbox change to blue, like i want.

i hope my english is not so bad and you will understand my problem, but for sure.. i load some screenshots up.

And here is my Xaml-Code. In this example the only one ScrollViewer is a part from the GameRules and is commented out, for see the problem. Else we would see the overlaped view "Game Rules".

Xaml-Code:





































































**
**

If you have any questions, you can contact me.

I hope my report will help for fix this problem.

Greetings Marcel

---
### Original Comments

#### Feedback Bot on 11/22/2020, 06:51 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

#### Feedback Bot on 2/19/2021, 10:06 PM:

I detected that this issue hasn’t received a lot of activity, votes, or comments in the past 90 days. Based on this, the issues severity and affected area, it’s my experience that this issue is unlikely to get fixed. To improve the situation, consider following best practices for quality problem reports, and giving us more details on how this issue is impacting you.

---
### Original Solutions
(no solutions)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.