[英]WP8 Pull to Refresh inside Pivot
我试图在WP8的PivotItem
中添加从Telerik的“拉至刷新RadControl
。
这是代码:
<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>
错误讯息:
XML名称空间中的类型“ PivotItem”上不存在属性“ PullToRefreshIndicatorStyle”。
在类型“ RadDataBoundListBox”中找不到可附加属性“ PullToRefreshIndicatorStyle”。
成员“ PullToRefreshIndicatorStyle”未被识别或无法访问。
如何PivotItem
在PivotItem
控件中起作用?
看起来您缺少一些标签。 您不是应该在数据透视表项中定义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>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.