PullToRefreshIndicatorStyle

2 posts, 0 answers
  1. Christof
    Christof avatar
    27 posts
    Member since:
    May 2013

    Posted 21 Dec 2014 Link to this post

    How can i edit the Template of the PullToRefreshIndicator?
    I would like to change the Color and some margins.
  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 22 Dec 2014 Link to this post

    Hi Christof,

    You can define a style, which targets PullToRefreshIndicatorControl (found in Telerik.UI.Xaml.Controls.Primitives.DataBoundListBox namespace) and assign it to RadDataBoundListBox.PullToRefreshIndicatorStyle property:

    <telerikPrimitives:RadDataBoundListBox IsPullToRefreshEnabled="True"
                           ShowPullToRefreshWhenNoData="True"
                           RefreshRequested="RadDataBoundListBox_RefreshRequested"
                           ItemsSource="{Binding Source}" ...>
        <telerikPrimitives:RadDataBoundListBox.PullToRefreshIndicatorStyle>
            <Style TargetType="telerikListbox:PullToRefreshIndicatorControl">
                <Setter Property="Foreground" Value="Green" />
            </Style>


    Best regards,
    Ves
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top