Unplanned
Last Updated: 14 Nov 2018 16:24 by ADMIN
ADMIN
Dilyan Traykov
Created on: 02 Mar 2016 11:49
Category: TileList
Type: Bug Report
3
TileList: ScrollBars do not hide when ScrollBarVisibility is set to Hidden via attached property

		
2 comments
ADMIN
Dilyan Traykov
Posted on: 14 Nov 2018 16:24
The current workaround is to edit the control template of the RadTileList. Here's an example for the Office2013 theme:

<ControlTemplate x:Key="RadTileListTemplate" TargetType="telerik:RadTileList">
    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
            <StackPanel Orientation="Horizontal">
                <ContentControl x:Name="PART_PanoramaBackground" HorizontalAlignment="Left" VerticalAlignment="Top" Content="{TemplateBinding PanoramaBackground}" ClipToBounds="True"/>
            </StackPanel>
            <ScrollViewer x:Name="PART_ScrollViewer"
            Margin="0"
            Padding="{TemplateBinding Padding}"
            Background="{TemplateBinding Background}"
            BorderBrush="{TemplateBinding BorderBrush}"
            BorderThickness="{TemplateBinding BorderThickness}"
            HorizontalScrollBarVisibility="Hidden"
            VerticalScrollBarVisibility="Hidden"
            CanContentScroll="True"
            FocusVisualStyle="{x:Null}">
                <ItemsPresenter/>
                <ScrollViewer.InputBindings>
                    <KeyBinding Command="telerikPrimitives:ListControl.SelectAllCommand" Key="A" Modifiers="Control"/>
                </ScrollViewer.InputBindings>
            </ScrollViewer>
            <ContentPresenter x:Name="dragVisualPlaceholder" Visibility="Collapsed" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
        </Grid>
    </Border>
</ControlTemplate>
<Style BasedOn="{StaticResource RadTileListStyle}" TargetType="telerik:RadTileList">
    <Setter Property="Template" Value="{StaticResource RadTileListTemplate}"/>
</Style>
ADMIN
Dilyan Traykov
Posted on: 02 Mar 2016 11:55
Horizontal and Vertical ScrollBars do not hide when ScrollViewer.HorizontalScrollBarVisibility or ScrollViewer.VerticalScrollBarVisibility of the RadTileList is set to Hidden.