MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit

Richtextbox control does not respond to touchscreen controls for scrolling and only highlights text instead

Open
#3,826 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug evaluation required
Dominant language
C#
Stars
16.3k
Forks
3.5k
Avg merge
1d 22h
Merged PRs (30d)
8

Description

### Bug explanation

I built a modern log interface for legacy chat software and use MaterialDesign to theme everything. I'm using the MaterialDesign Richtextbox style and when I try and enable the following:

```
ScrollViewer.CanContentScroll="True"
ScrollViewer.PanningMode="VerticalFirst"
Stylus.IsPressAndHoldEnabled="False"
Stylus.IsFlicksEnabled="False"
```

It still only highlights the text in the Richtextbox control when using touchscreen controls. Does this mean that I need to override the control template or is there something that I'm missing for this?

I've considered making changes to the MaterialDesign.Textbox.xaml prior to compile and adding the `CanContentScroll=True` there but not sure if that's going to fix it or not.

Does anyone have any suggestions for this? I have a Surface Pro that I'm testing on and I've had reports of it not working for others as well.

Please let me know if you need any further details or code, I'm happy to share.

Thanks!

### Version

5.1.0.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the touchscreen behavior with the MaterialDesign Richtextbox style on a Surface Pro or equivalent WPF setup. Inspect MaterialDesign.Textbox.xaml and the control template to determine whether the configured ScrollViewer and stylus properties reach the Richtextbox. Done means vertical touch scrolling works without selecting text, with the result verified on the reported version or a current build.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.