Files
ShrlAlgoToolkit/WPFluent/Resources/DefaultTextBoxScrollViewerStyle.xaml

25 lines
1.2 KiB
Plaintext
Raw Normal View History

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!-- TODO: Rework TextBox ScrollViewer -->
<Style x:Key="DefaultTextBoxScrollViewerStyle" TargetType="{x:Type ScrollViewer}">
<Setter Property="Margin" Value="0" />
<Setter Property="Padding" Value="0" />
<Setter Property="SnapsToDevicePixels" Value="True" />
<Setter Property="OverridesDefaultStyle" Value="True" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="CanContentScroll" Value="False" />
<Setter Property="HorizontalScrollBarVisibility" Value="Hidden" />
<Setter Property="IsDeferredScrollingEnabled" Value="False" />
<Setter Property="VerticalScrollBarVisibility" Value="Hidden" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ScrollViewer}">
<Grid>
<ScrollContentPresenter Margin="0" CanContentScroll="{TemplateBinding CanContentScroll}" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>