How to Remove Padding around ScrollBars in TextBox

WPF Studio, Themes, and Shared Library for WPF Forum

Posted 10 years ago by Jack Stephenson
Version: 13.2.0592
Avatar

The padding for a textbox "EditPaddingNormalThicknessKey" is applied outside the scrollviewer for the textbox.

This means that there is a gap to the right and bottom of the scrollbars.

I want scrollbars to be snugged up against the right and bottom of the texbox (as is the case in aby othe rechnology I have used).

Can you please help me acheive this?

 

------

JES

Comments (3)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Jack,

Altering the Padding property will change where the ScrollViewer appears.  Set it to 0 to get rid of any margin around the embedded ScrollViewer.


Actipro Software Support

Posted 10 years ago by Jack Stephenson
Avatar

I already looked at that.

Trouble is the padding also impacts the location of the text.

So, if you set padding on left/bottom.

The bottom of lower case g touches the bottome of the text box.

These should be seperate settings.

In fact I would suggest taht the scrollbar location probably doesnt need to be set.

Just snug it up to the right/bottom of textbox and .

JES.

Answer - Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Ahh, I see.  The Grid in the template shouldn't have had the Margin set there since Padding gets used by the embedded ScrollViewer.  This will be fixed for the next version.  Thanks!


Actipro Software Support

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.