aman shivhare
aman shivhare

Reputation: 334

How to create pull to refresh feature in windowsphone Pivot?

I am making an rss App where I'd like to include the pull to refresh feature on a pivot item instead of a separate refresh button. I tried different Mouse Event Handlers but they dont work right. Any ideas?

Upvotes: 0

Views: 130

Answers (2)

Ateik
Ateik

Reputation: 2586

I've created a simple control that implements the "Pull to refresh" feature, and the "Load data on demand", you can find it in nuget, read about it from this blog post. Works on both Windows 8 & Windows Phone 8.1

enter image description here

Upvotes: 0

Owidat
Owidat

Reputation: 1081

I suggest you use RadDataBoundListBox from Telerik with PivotItem

<phone:PivotItem Header="Title" Foreground="Black">
<telerikPrimitives:RadDataBoundListBox>
    <telerikPrimitives:RadDataBoundListBox.PullToRefreshIndicatorStyle>
        <Style TargetType="telerikListBox:PullToRefreshIndicatorControl">
           <Setter Property="RefreshTimeLabelFormat" Value="last refresh time:{0:H:mm}"/>
        </Style>
    </telerikPrimitives:RadDataBoundListBox.PullToRefreshIndicatorStyle>
</telerikPrimitives:RadDataBoundListBox>


Also I recommend you download Telerik WP controls on your phone http://www.telerik.com/products/windows-phone.aspx#Demo

Upvotes: 0

Related Questions