Reputation: 5480
I am trying to add a Pull to Refresh RadControl
from Telerik within a PivotItem
in WP8.
This is the code:
<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>
Error messages:
The property 'PullToRefreshIndicatorStyle' does not exist on the type 'PivotItem' in the XML namespace`
The attachable property 'PullToRefreshIndicatorStyle' was not found in type 'RadDataBoundListBox'.
The member "PullToRefreshIndicatorStyle" is not recognized or is not accessible.
How do I get this to work within the PivotItem
control?
Upvotes: 0
Views: 468
Reputation: 12465
Looks like you are missing some tags. Aren't you suppose to have the telerikPrimitives:RadDataBoundListBox defined within the pivot item?'
Like such:
<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>
Upvotes: 3