Default Thumb Style : ScrollViewer « Windows Presentation Foundation « C# / C Sharp






Default Thumb Style

Default Thumb Style
      
<Window x:Class="ScrollBarCustomThumbSize.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sys="clr-namespace:System;assembly=mscorlib" 
    Title="ScrollBarCustomThumbSize" 
    >
    <Grid>
        <TextBlock Text="Default Thumb size"/>
        <ScrollViewer Height="200" Width="100"
                      HorizontalScrollBarVisibility="Disabled" >
            <StackPanel Background="LightBlue" Width="100">
                <TextBlock FontSize="14" TextWrapping="Wrap">
              Epsum factorial non deposit quid pro quo hic escorol.  Olypian quarrels et gorilla
              congolium sic ad nauseum. Souvlaki ignitus carborundum e pluribus unum. Defacto
              lingo est igpay atinlay.

                </TextBlock>

            </StackPanel>
        </ScrollViewer>

    </Grid>
</Window>

   
    
    
    
    
    
  








Related examples in the same category

1.Put Canvas into ScrollViewer
2.StackPanel in a ScrollViewerStackPanel in a ScrollViewer
3.ScrollViewer and Big EllipseScrollViewer and Big Ellipse
4.Use the content-scrolling methods of the ScrollViewer classUse the content-scrolling methods of the ScrollViewer class