Disable the Horizontal Scrollbar of RadPropertyGrid
Environment
Product Version | 2022.2 621 |
Product | RadPropertyGrid for WPF |
Description
Setting the ScrollViewer.HorizontalScrollBarVisibility
directly onto the RadPropertyGrid
control instance does not hide the horizontal scrollbar.
Solution
Create a new
Style
withTargetType="ScrollViewer"
in theResources
collection of theRadPropertyGrid
element instance.Set the
HorizontalScrollBarVisibility
property toDisabled
via aSetter
.
Disable horizontal scrollbar
<telerik:RadPropertyGrid>
<telerik:RadPropertyGrid.Resources>
<Style TargetType="ScrollViewer">
<Setter Property="HorizontalScrollBarVisibility" Value="Disabled"/>
</Style>
</telerik:RadPropertyGrid.Resources>
</telerik:RadPropertyGrid>