2021年1月14日星期四

Custom style vertical scroll in RichTextBox WPF C#

I want to change style vertical scroll (color, hidden button up, down), in code, don't xaml.

Update my code:

 textBox = new RichTextBox();              textBox.VerticalScrollBarVisibility = ScrollBarVisibility.Auto;              textBox.HorizontalScrollBarVisibility = ScrollBarVisibility.Auto;              textBox.VerticalAlignment = VerticalAlignment.Stretch;              textBox.HorizontalAlignment = HorizontalAlignment.Stretch;  

I have not found a way to change the color, size and hide the buttons up, down in the scroll. The search gave no results only through Xaml, and I want to change it in the code.

https://stackoverflow.com/questions/65730272/custom-style-vertical-scroll-in-richtextbox-wpf-c-sharp January 15, 2021 at 11:52AM

没有评论:

发表评论