【问题标题】:WP8 Pull to Refresh inside PivotWP8 拉动刷新内部枢轴
【发布时间】:2013-12-19 15:06:32
【问题描述】:

我正在尝试在 WP8 中的 PivotItem 中添加来自 Telerik 的 Pull to Refresh 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>

错误信息:

类型上不存在“PullToRefreshIndicatorStyle”属性 XML 命名空间中的“PivotItem”`

在中找不到可附加属性“PullToRefreshIndicatorStyle” 键入“RadDataBoundListBox”。

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

如何让它在 PivotItem 控件中工作?

【问题讨论】:

    标签: c# windows-phone-8 telerik refresh pivot


    【解决方案1】:

    看起来您缺少一些标签。您不应该在数据透视项中定义 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>
    

    【讨论】:

    • 我在 PivotItem 中添加了telerikPrimitives:,但它无法识别RadDataBoundListBox
    • 我的意思是它缺少控件本身。我更新了答案
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-02-08
    • 2019-07-13
    • 1970-01-01
    • 2013-07-31
    • 1970-01-01
    • 2011-06-26
    相关资源
    最近更新 更多