Skip to content

Conversation

@siagupta0202
Copy link
Contributor

@siagupta0202 siagupta0202 commented Sep 3, 2024

Fixes #9197

Description

Fixes visibility of ScrollViewer in TextBox in the new Fluent styles introduced in .NET 9.

In the previous styles ( Aero2 ) when we set the ScrollViewer.HorizontalScrollBarVisibility or ScrollViewer.VerticalScrollBarVisibility on TextBox, scrollbars appear in the TextBox area, however in the new Fluent styles, the properties did not work. This PR fixes the above issue

Regression

Technically no, but any developer who will try to port their application to use the new styles will face this issue and the property won't work for them.

Testing

Local build pass. Tested with sample application.

Risk

NA

Microsoft Reviewers: Open in CodeFlow

@siagupta0202 siagupta0202 requested review from a team as code owners September 3, 2024 07:22
@dotnet-policy-service dotnet-policy-service bot added the PR metadata: Label to tag PRs, to facilitate with triage label Sep 3, 2024
@siagupta0202 siagupta0202 added Win 11 Theming and removed PR metadata: Label to tag PRs, to facilitate with triage labels Sep 3, 2024
@dipeshmsft dipeshmsft added the PR metadata: Label to tag PRs, to facilitate with triage label Sep 3, 2024
@dipeshmsft dipeshmsft added this to the 9.0.0 milestone Sep 6, 2024
@dipeshmsft
Copy link
Member

/backport to release/9.0

@github-actions
Copy link

Started backporting to release/9.0: https://github.com/dotnet/wpf/actions/runs/10890280913

@dipeshmsft dipeshmsft merged commit a71b4c3 into dotnet:main Sep 16, 2024
@siagupta0202 siagupta0202 deleted the scrollviewer-textbox branch September 18, 2024 08:40
@github-actions github-actions bot locked and limited conversation to collaborators Oct 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

PR metadata: Label to tag PRs, to facilitate with triage Win 11 Theming

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.NET 9 Preview 4 Wpf Themed Textbox Scrollbars do not show when required

2 participants