簡體   English   中英

WP8拉動以刷新軸心

[英]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”未被識別或無法訪問。

如何PivotItemPivotItem控件中起作用?

看起來您缺少一些標簽。 您不是應該在數據透視表項中定義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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM