2013-12-19 34 views
0

我想在WP8的PivotItem内从Telerik添加拉到刷新RadControlWP8拉到刷新里面枢轴

这是代码:

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

错误消息:

属性 'PullToRefreshIndicatorStyle' 不上在XML namespace`

的类型 'PivotItem' 存在在 类型'RadDataBoundListBox'中未找到可附加属性'PullToRefreshIndicatorStyle'。

成员“PullToRefreshIndicatorStyle”未被识别或不是 可访问。

如何在PivotItem控件中使用此功能?

回答

3

看起来你缺少一些标签。你是不是假设在数据透视表中定义了telerikPrimitives:RadDataBoundListBox?'

像这样:

<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> 
</phone:PivotItem> 
+0

我接着说:telerikPrimitives:'在PivotItem,但它不承认'RadDataBoundListBox'。 – Subby

+0

我的意思是它缺少控制本身。我更新了答案 –