HorizontalScrollBar position

2 posts, 0 answers
  1. Zlatko
    Zlatko avatar
    30 posts
    Member since:
    Sep 2013

    Posted 09 May 2017 Link to this post

    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}"/>

  2. Andrew
    Andrew avatar
    1 posts
    Member since:
    Sep 2019

    Posted 14 May Link to this post

    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.

Back to Top