This is a migrated thread and some comments may be shown as answers.

HorizontalScrollBar position

1 Answer 97 Views
WatermarkTextBox
This is a migrated thread and some comments may be shown as answers.
Zlatko
Top achievements
Rank 1
Zlatko asked on 09 May 2017, 02:17 PM

Ohhhhh :(

See the differences:

<telerik:RadWatermarkTextBox 
VerticalContentAlignment="Top"                                        
HorizontalScrollBarVisibility="Auto"                                        
VerticalScrollBarVisibility="Auto"                                        
IsReadOnly="True"                                        
Text="{Binding Text, Mode=OneWay}"/>

and

 

<TextBox 
VerticalContentAlignment="Top"                                        
HorizontalScrollBarVisibility="Auto"                                        
VerticalScrollBarVisibility="Auto"                                        
IsReadOnly="True"                                        
Text="{Binding Text, Mode=OneWay}"/>

1 Answer, 1 is accepted

Sort by
0
Andrew
Top achievements
Rank 1
answered on 14 May 2020, 09:14 PM

This was really getting to me as well (but with the vertical scrollbars not locking to the edge of the RadWatermarkTextBox when HorizontalContentAlignment was not stretched).  I only had this issue with the Expression_Dark theme as it didn't appear to be a problem with others.

 

If anyone's wondering how to fix it, just edit the template or a copy of the RadWatermarkTextBox template and edit the ScrollViewer within the ControlTemplate.  Change the ScrollViewer's HorizontalAlignment and VerticalContentAlignment to "Stretch" instead of the original TemplateBinding to HorizontalContentAlignment and VerticalContentAlignment properties of the control.

Tags
WatermarkTextBox
Asked by
Zlatko
Top achievements
Rank 1
Answers by
Andrew
Top achievements
Rank 1
Share this question
or