When using a PivotPage in Windows Phone 7 and insert a RadListPicker in the second PivotItem, I get a MessageTemplatePartException.
RadListPicker in first PivotItem is ok.
13 Answers, 1 is accepted
Thanks for writing.
I guess the problem that occurs is because you are using custom List Picker style that redefines the Control Template. If this is the case, it might be so that some template parts are not correctly defined. We have upgraded RadListPicker recently to support multiple selection. We are using our own DataBoundListBox control and its Check Boxes feature for this purpose. It replaces the previously used ItemsPresenter in RadListPicker. I guess this might be the reason for the erroneous behavior.
Can you please check this out for me and in case you are using a custom style with custom Control Template for RadListPicker, send me the style so that I can update it for you?
Thanks for your time.
Kind regards,
Deyan
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
ListPicker in first PivotItem - no error.
<
telerikInput:RadListPicker
x:Name
=
"ProjectPicker"
DisplayMemberPath
=
"Name"
SelectedItem
=
"{Binding ProjectId, Converter={StaticResource ProjectIdObjectConverter}, Mode=OneWay}"
/>
ListPicker in second PivotItem shows error.
<
telerikInput:RadListPicker
x:Name
=
"TagPicker"
Width
=
"324"
DisplayMemberPath
=
"Name"
SelectedItem
=
"{Binding TagId, Converter={StaticResource TagIdObjectConverter}, Mode=OneWay}"
/>
Thanks for getting back to us.
It seems that the issue is not related to setting custom styles with different template parts. Can you please send us a sample that we can use to reproduce this case on our side? This will help us directly investigate the problem and provide a fix as soon as possible.
Thanks for your time.
P.S.
You will have to open a new support ticket in order to be able to attach your project.
Regards,
Deyan
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
I too upgraded my project to the latest version of the RadControls for Windows phone (2012.3.1016.2040 Dev), and have been experiencing the exact same issue. Prior to the upgrade had no errors in Visual Studio, but since the upgrade, I know get errors with the RadListPicker in the designer. There's no compilation error, and my project still runs ok, it just errors in the designer with the following message:
MissingTemplatePartException was thrown on 'RadListPicker' [Line:0 Position: 0]
Part name: ActionButtonPart type: Telerik.Windows.Controls.RadImageButton
at Telerik.Windows.Controls.Primitives.RadItemsControl.GetTemplatePart[T](String partName, Boolean throwException) in c:\Builds\67\WindowsPhone\All_Controls_WPFixes\Sources\Development\Controls\Primitives\Common\RadItemsControl.cs:line 191 at Telerik.Windows.Controls.RadListPicker.OnApplyTemplate() in c:\Builds\67\WindowsPhone\All_Controls_WPFixes\Sources\Development\Controls\Input\ListPicker\RadListPicker.cs:line 723 at System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)
Regards,
Glenn
Thanks for writing and for reporting this issue.
Can you please confirm that you are not using any custom styles for RadListPicker in your app?
Can you also provide us with a sample that we can use to reproduce the error and see what goes wrong. If this is not possible, you can paste your XAML code here so that we can take a look.
Thanks for your time.
All the best,
Deyan
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
Here is the xaml for the problem file.
The RadListPicker in the editorPivot is fine.
The RadListPickers at lines 69, 65 and 72 in the morePivot have the build errors.
The designer shows the error:
Part name: ActionButton
Part type: Telerik.Windows.Controls.RadImageButton
at Telerik.Windows.Controls.Primitives.RadItemsControl.GetTemplatePart[T](String partName, Boolean throwException) in c:\Builds\67\WindowsPhone\All_Controls_WPFixes\Sources\Development\Controls\Primitives\Common\RadItemsControl.cs:line 191
at Telerik.Windows.Controls.RadListPicker.OnApplyTemplate() in c:\Builds\67\WindowsPhone\All_Controls_WPFixes\Sources\Development\Controls\Input\ListPicker\RadListPicker.cs:line 723
at System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)
I should not that even though there is a build error reported "[Line: 0 Position: 0]", the project produces a xap.
<
phone:PhoneApplicationPage
x:Class
=
"WiebeWorks.Jazz.Tasks.EditTask"
xmlns:phone
=
"clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:shell
=
"clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns:controls
=
"clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
FontFamily
=
"{StaticResource PhoneFontFamilyNormal}"
FontSize
=
"{StaticResource PhoneFontSizeNormal}"
Foreground
=
"{StaticResource PhoneForegroundBrush}"
SupportedOrientations
=
"PortraitOrLandscape"
Orientation
=
"Portrait"
mc:Ignorable
=
"d"
d:DesignHeight
=
"728"
d:DesignWidth
=
"480"
shell:SystemTray.IsVisible
=
"False"
xmlns:telerikInput
=
"clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
xmlns:local
=
"clr-namespace:WiebeWorks.Jazz.Tasks"
xmlns:telerikPrimitives
=
"clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Primitives"
xmlns:phoneMaps
=
"clr-namespace:Microsoft.Phone.Controls.Maps;assembly=Microsoft.Phone.Controls.Maps"
>
<
Grid
x:Name
=
"LayoutRoot"
>
<
Image
Style
=
"{StaticResource InnerPageLogoStyle}"
/>
<
Image
Name
=
"SkydriveLoggedIn"
Style
=
"{StaticResource SkydriveLoggedIn}"
Tap
=
"LoggedIn_Tap"
/>
<
controls:Pivot
Margin
=
"0,32,0,0"
x:Name
=
"pivotControl"
Title
=
"TASK EDITOR"
>
<!--Pivot items-->
<
controls:PivotItem
x:Name
=
"editorPivot"
Header
=
"edit"
>
<
ScrollViewer
Margin
=
"0,-40,0,0"
>
<
StackPanel
>
<
TextBlock
Style
=
"{StaticResource PageTitleStyle}"
/>
<
TextBlock
Text
=
"Name"
Style
=
"{StaticResource TextBoxHeaderStyle}"
/>
<
TextBox
x:Name
=
"TaskName"
MaxLength
=
"50"
Text
=
"{Binding Name, Mode=OneWay}"
/>
<
TextBlock
Text
=
"Assigned To"
Style
=
"{StaticResource TextBoxHeaderStyle}"
/>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBox
x:Name
=
"AssignedTo"
MaxLength
=
"80"
MinWidth
=
"340"
Text
=
"{Binding AssignedTo, Mode=OneWay}"
/>
<
Button
Grid.Column
=
"1"
Content
=
"Select"
Click
=
"AddAssignedTo_Click"
Background
=
"{StaticResource PhoneAccentBrush}"
/>
</
StackPanel
>
<
TextBlock
Text
=
"Project"
Style
=
"{StaticResource ListPickerHeaderStyle}"
/>
<
telerikInput:RadListPicker
x:Name
=
"ProjectPicker"
DisplayMemberPath
=
"Name"
SelectedItem
=
"{Binding ProjectId, Converter={StaticResource ProjectIdObjectConverter}, Mode=OneWay}"
/>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
Text
=
"Due Date"
Width
=
"100"
Style
=
"{StaticResource TextBoxHeaderStyle}"
/>
<
telerikInput:RadDatePicker
Name
=
"RadDatePicker"
Value
=
"{Binding DueDate, Mode=OneWay}"
PickerButtonStyle
=
"{StaticResource PickerButtonStyle}"
DisplayValueFormat
=
"MMM d, yyyy"
/>
<
telerikInput:RadTimePicker
Name
=
"RadTimePicker"
MinWidth
=
"100"
Value
=
"{Binding DueDate, Mode=OneWay}"
PickerButtonStyle
=
"{StaticResource PickerButtonStyle}"
/>
</
StackPanel
>
<
Button
Name
=
"AddToDo"
Content
=
"аdd ToDo"
Click
=
"AddToDo_Button_Click"
Background
=
"{StaticResource PhoneAccentBrush}"
IsEnabled
=
"{Binding IsNotCompleted}"
/>
<
telerikPrimitives:RadDataBoundListBox
ItemTap
=
"TaskToDos_ItemTap"
MaxHeight
=
"300"
Name
=
"TaskToDos"
ItemTemplate
=
"{StaticResource ToDoDetailsTemplate}"
/>
</
StackPanel
>
</
ScrollViewer
>
</
controls:PivotItem
>
<
controls:PivotItem
x:Name
=
"morePivot"
Header
=
"details"
>
<
ScrollViewer
Margin
=
"0,-40,0,0"
>
<
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
Text
=
"Started"
Style
=
"{StaticResource TextBoxHeaderStyle}"
Visibility
=
"{Binding StartDate, Converter={StaticResource ObjectToVisibilityConverter}}"
/>
<
TextBlock
Name
=
"StartDate"
Style
=
"{StaticResource PhoneTextNormalStyle}"
Text
=
"{Binding StartDate, Converter={StaticResource DateTimeConverter}}"
/>
</
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
Text
=
"Completed"
Style
=
"{StaticResource TextBoxHeaderStyle}"
Visibility
=
"{Binding CompletedDate, Converter={StaticResource ObjectToVisibilityConverter}}"
/>
<
TextBlock
Name
=
"CompletedDate"
Style
=
"{StaticResource PhoneTextNormalStyle}"
Text
=
"{Binding CompletedDate, Converter={StaticResource DateTimeConverter}}"
/>
</
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
Text
=
"Tag"
Width
=
"100"
Style
=
"{StaticResource ListPickerHeaderStyle}"
/>
<
telerikInput:RadListPicker
x:Name
=
"TagPicker"
Width
=
"324"
DisplayMemberPath
=
"Name"
SelectedItem
=
"{Binding TagId, Converter={StaticResource TagIdObjectConverter}, Mode=OneWay}"
/>
</
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
Text
=
"Priority"
Width
=
"100"
Style
=
"{StaticResource ListPickerHeaderStyle}"
/>
<
telerikInput:RadListPicker
x:Name
=
"PriorityPicker"
Width
=
"324"
DisplayMemberPath
=
"Name"
SelectedIndex
=
"{Binding PriorityId}"
/>
</
StackPanel
>
<
TextBlock
Text
=
"Importance"
Style
=
"{StaticResource ListPickerHeaderStyle}"
/>
<
telerikInput:RadListPicker
x:Name
=
"ImportancePicker"
DisplayMemberPath
=
"Name"
SelectedIndex
=
"{Binding ImportanceUrgenceId}"
/>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
/>
<
RowDefinition
/>
</
Grid.RowDefinitions
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"*"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
</
Grid.ColumnDefinitions
>
<
TextBlock
Text
=
"Email"
Style
=
"{StaticResource TextBoxHeaderStyle}"
/>
<
TextBox
Name
=
"EmailPicker"
Grid.Row
=
"1"
Text
=
"{Binding Email, Mode=OneWay}"
InputScope
=
"EmailNameOrAddress"
/>
<
Button
Grid.Row
=
"1"
Grid.Column
=
"1"
Content
=
"@"
Click
=
"GetEmail_Click"
Width
=
"75"
BorderBrush
=
"{StaticResource PhoneAccentBrush}"
/>
</
Grid
>
<
TextBlock
Text
=
"Phone"
Style
=
"{StaticResource TextBoxHeaderStyle}"
/>
<
Grid
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"*"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
</
Grid.ColumnDefinitions
>
<
TextBox
Name
=
"PhonePicker"
Text
=
"{Binding Phone, Mode=OneWay}"
InputScope
=
"TelephoneNumber"
/>
<
Button
Grid.Column
=
"1"
Content
=
"#"
Click
=
"AddPhoneButton_Click"
Width
=
"75"
BorderBrush
=
"{StaticResource PhoneAccentBrush}"
/>
</
Grid
>
<
StackPanel
>
<
TextBlock
Text
=
"Url"
Style
=
"{StaticResource TextBoxHeaderStyle}"
/>
<
TextBox
Name
=
"UrlText"
Text
=
"{Binding Url, Mode=OneWay}"
InputScope
=
"Url"
/>
</
StackPanel
>
</
StackPanel
>
</
ScrollViewer
>
</
controls:PivotItem
>
<
controls:PivotItem
x:Name
=
"mediaPivot"
Header
=
"media"
>
<
ScrollViewer
Margin
=
"0,-30,0,0"
>
<
StackPanel
>
<
Grid
x:Name
=
"RichContent"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
</
Grid.ColumnDefinitions
>
<!-- Photo Preview -->
<
Image
Width
=
"99"
Height
=
"99"
Stretch
=
"Fill"
Margin
=
"12,20,25,20"
x:Name
=
"PhotoPreviewElement"
MouseLeftButtonDown
=
"AddPhoto_Click"
Source
=
"/Images/PhotoPreviewPlaceholder.png"
/>
<
Image
Visibility
=
"Collapsed"
MouseLeftButtonDown
=
"DeletePhoto_Click"
Margin
=
"0,0,25,0"
x:Name
=
"DeletePhotoIcon"
Source
=
"/Images/RichElementDeleteIcon.png"
Stretch
=
"None"
VerticalAlignment
=
"Top"
HorizontalAlignment
=
"Right"
/>
<
Image
Visibility
=
"Collapsed"
MouseLeftButtonDown
=
"EditPhoto_Click"
Margin
=
"22"
x:Name
=
"EditPhotoIcon"
Source
=
"/Images/RichElementEditIcon.png"
Stretch
=
"None"
VerticalAlignment
=
"Bottom"
HorizontalAlignment
=
"Center"
/>
<
Image
Visibility
=
"Collapsed"
MouseLeftButtonDown
=
"AddPhoto_Click"
Margin
=
"22"
x:Name
=
"AddPhotoIcon"
Source
=
"/Images/RichElementAddIcon.png"
Stretch
=
"None"
VerticalAlignment
=
"Bottom"
HorizontalAlignment
=
"Center"
/>
<!-- Voice Preview -->
<
Image
Width
=
"99"
Height
=
"99"
Margin
=
"0,20,14,20"
Grid.Column
=
"1"
Source
=
"/Images/VoicePreviewPlaceholder.png"
x:Name
=
"VoicePicker"
/>
<
Image
Visibility
=
"Collapsed"
MouseLeftButtonDown
=
"DeleteVoiceMemo_Click"
Margin
=
"0,0,14,0"
x:Name
=
"DeleteVoiceMemoIcon"
Grid.Column
=
"1"
Source
=
"/Images/RichElementDeleteIcon.png"
Stretch
=
"None"
VerticalAlignment
=
"Top"
HorizontalAlignment
=
"Right"
/>
<
Image
Visibility
=
"Collapsed"
MouseLeftButtonDown
=
"StopVoiceMemo_Click"
Margin
=
"22"
x:Name
=
"StopVoiceMemoIcon"
Grid.Column
=
"1"
Source
=
"/images/RichElementStopIcon.png"
Stretch
=
"None"
VerticalAlignment
=
"Bottom"
HorizontalAlignment
=
"Center"
/>
<
Image
Visibility
=
"Collapsed"
MouseLeftButtonDown
=
"EditVoiceMemo_Click"
Margin
=
"22"
x:Name
=
"EditVoiceMemoIcon"
Grid.Column
=
"1"
Source
=
"/Images/RichElementEditIcon.png"
Stretch
=
"None"
VerticalAlignment
=
"Bottom"
HorizontalAlignment
=
"Center"
/>
<
Image
Visibility
=
"Collapsed"
MouseLeftButtonDown
=
"AddVoiceMemo_Click"
Margin
=
"22"
x:Name
=
"AddVoiceMemoIcon"
Grid.Column
=
"1"
Source
=
"/Images/RichElementAddIcon.png"
Stretch
=
"None"
VerticalAlignment
=
"Bottom"
HorizontalAlignment
=
"Center"
/>
<!-- Location Preview -->
<
telerikPrimitives:RadPickerBox
Margin
=
"0,10"
x:Name
=
"LocationPicker"
Grid.Column
=
"2"
>
<
telerikPrimitives:RadPickerBox.Content
>
<
Image
Width
=
"99"
Height
=
"99"
Margin
=
"-9"
Stretch
=
"Fill"
Source
=
"/Images/LocationPreviewPlaceholder.png"
/>
</
telerikPrimitives:RadPickerBox.Content
>
<
telerikPrimitives:RadPickerBox.ApplicationBarInfo
>
<
telerikPrimitives:ApplicationBarInfo
ButtonClick
=
"ApplicationBarInfo_ButtonClick"
>
<
telerikPrimitives:ApplicationBarButton
x:Name
=
"UseCurrentLocationAppButton"
Text
=
"Current"
IconUri
=
"/Images/Add.png"
/>
<
telerikPrimitives:ApplicationBarButton
x:Name
=
"GetLocationAppButton"
Text
=
"Pick"
IconUri
=
"/Images/OK.png"
/>
<
telerikPrimitives:ApplicationBarButton
x:Name
=
"CancelAppButton"
Text
=
"Cancel"
IconUri
=
"/Images/Cancel.png"
/>
</
telerikPrimitives:ApplicationBarInfo
>
</
telerikPrimitives:RadPickerBox.ApplicationBarInfo
>
<
Grid
x:Name
=
"ContentPanel"
>
<
phoneMaps:Map
x:Name
=
"BingMap1"
CredentialsProvider
=
"AnCFHz0faaRCB7vs3P4PCH82my-gI6TkEMm2wY2cFjDgG9_eyX2XPidcJ4qzUnC4"
MouseLeftButtonDown
=
"BingMap1_MouseLeftButtonDown"
ZoomBarVisibility
=
"Visible"
/>
</
Grid
>
</
telerikPrimitives:RadPickerBox
>
</
Grid
>
<
StackPanel
>
<
TextBlock
Text
=
"Notes"
Style
=
"{StaticResource TextBoxHeaderStyle}"
/>
<
TextBox
Name
=
"NotesText"
AcceptsReturn
=
"True"
TextWrapping
=
"Wrap"
Text
=
"{Binding Notes, Mode=OneWay}"
/>
</
StackPanel
>
</
StackPanel
>
</
ScrollViewer
>
</
controls:PivotItem
>
</
controls:Pivot
>
</
Grid
>
<
phone:PhoneApplicationPage.ApplicationBar
>
<
shell:ApplicationBar
IsMenuEnabled
=
"True"
IsVisible
=
"True"
>
<
shell:ApplicationBarIconButton
IconUri
=
"/Images/start.png"
Click
=
"StartButton_Click"
Text
=
"Start"
/>
<
shell:ApplicationBarIconButton
IconUri
=
"/Images/OK.png"
Click
=
"CompleteButton_Click"
Text
=
"Complete"
/>
<
shell:ApplicationBarIconButton
IconUri
=
"/Images/Save.png"
Click
=
"SaveButton_Click"
Text
=
"Save"
/>
<
shell:ApplicationBarIconButton
IconUri
=
"/Images/Cancel.png"
Click
=
"CancelButton_Click"
Text
=
"Cancel"
/>
<
shell:ApplicationBar.MenuItems
>
</
shell:ApplicationBar.MenuItems
>
</
shell:ApplicationBar
>
</
phone:PhoneApplicationPage.ApplicationBar
>
</
phone:PhoneApplicationPage
>
<
views:SalesChartViewBase
xmlns:ad
=
"clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI"
xmlns:chart
=
"clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Chart"
xmlns:chartEngine
=
"clr-namespace:Telerik.Charting;assembly=Telerik.Windows.Controls.Chart"
xmlns:controls
=
"clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
xmlns:phone
=
"clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:shell
=
"clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns:telerik
=
"clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Core"
xmlns:telerikInput
=
"clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
xmlns:telerikPrimitives
=
"clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Primitives"
xmlns:Telerik_Windows_Controls_ListPicker
=
"clr-namespace:Telerik.Windows.Controls.ListPicker;assembly=Telerik.Windows.Controls.Input"
xmlns:toolkit
=
"clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
xmlns:uc
=
"clr-namespace:XZ.Comics.Phone.UserControls"
xmlns:views
=
"clr-namespace:XZ.Comics.Phone.Views"
x:Class
=
"XZ.Comics.Phone.Views.SalesChartView"
SupportedOrientations
=
"Landscape"
Orientation
=
"Landscape"
mc:Ignorable
=
"d"
d:DesignHeight
=
"480"
d:DesignWidth
=
"728"
shell:SystemTray.IsVisible
=
"True"
FontSize
=
"16"
>
<
views:SalesChartViewBase.Resources
>
<
SolidColorBrush
x:Key
=
"AccentBrush"
Color
=
"{Binding AccentColor}"
/>
<
SolidColorBrush
x:Key
=
"BackgroundBrush"
Color
=
"{Binding BackgroundColor}"
/>
<
SolidColorBrush
x:Key
=
"ForegroundBrush"
Color
=
"{Binding ForegroundColor}"
/>
<
Style
x:Key
=
"HeaderStyle"
TargetType
=
"ContentControl"
>
<
Setter
Property
=
"Foreground"
Value
=
"{StaticResource PhoneSubtleBrush}"
/>
<
Setter
Property
=
"FontSize"
Value
=
"{StaticResource PhoneFontSizeNormal}"
/>
<
Setter
Property
=
"Padding"
Value
=
"0"
/>
<
Setter
Property
=
"HorizontalAlignment"
Value
=
"Left"
/>
</
Style
>
<
Style
x:Key
=
"PopupHeaderStyle"
TargetType
=
"ContentControl"
>
<
Setter
Property
=
"FontSize"
Value
=
"{StaticResource PhoneFontSizeMedium}"
/>
<
Setter
Property
=
"FontFamily"
Value
=
"{StaticResource PhoneFontFamilySemiBold}"
/>
<
Setter
Property
=
"Margin"
Value
=
"24,55,0,35"
/>
<
Setter
Property
=
"HorizontalContentAlignment"
Value
=
"Left"
/>
</
Style
>
<
Telerik_Windows_Controls_ListPicker:SelectionModeToBooleanConverter
x:Key
=
"SelectionModeToBooleanConverter"
/>
<
Style
x:Key
=
"RadListPickerStyle"
TargetType
=
"telerikInput:RadListPicker"
>
<
Setter
Property
=
"HorizontalAlignment"
Value
=
"Stretch"
/>
<
Setter
Property
=
"VerticalAlignment"
Value
=
"Top"
/>
<
Setter
Property
=
"HeaderStyle"
Value
=
"{StaticResource HeaderStyle}"
/>
<
Setter
Property
=
"Background"
Value
=
"{StaticResource AccentBrush}"
/>
<
Setter
Property
=
"Foreground"
Value
=
"{StaticResource ForegroundBrush}"
/>
<
Setter
Property
=
"FontSize"
Value
=
"{StaticResource PhoneFontSizeSmall}"
/>
<
Setter
Property
=
"PopupHeaderStyle"
Value
=
"{StaticResource PopupHeaderStyle}"
/>
<
Setter
Property
=
"Margin"
Value
=
"{StaticResource PhoneTouchTargetOverhang}"
/>
<
Setter
Property
=
"MinHeight"
Value
=
"30"
/>
<
Setter
Property
=
"PopupOpenAnimation"
>
<
Setter.Value
>
<
telerik:RadTileAnimation
Duration
=
"0:0:.2"
InitialDelay
=
"0:0:.08"
IsTranslationEnabled
=
"False"
InOutAnimationMode
=
"In"
PerspectiveAngleX
=
"90"
PerspectiveAngleY
=
"0"
SequentialMode
=
"FirstToLast"
/>
</
Setter.Value
>
</
Setter
>
<
Setter
Property
=
"PopupCloseAnimation"
>
<
Setter.Value
>
<
telerik:RadTileAnimation
Duration
=
"0:0:.2"
IsTranslationEnabled
=
"False"
InOutAnimationMode
=
"Out"
PerspectiveAngleX
=
"90"
PerspectiveAngleY
=
"0"
SequentialMode
=
"FirstToLast"
SequentialItemDelay
=
"0"
/>
</
Setter.Value
>
</
Setter
>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"telerikInput:RadListPicker"
>
<
Grid
x:Name
=
"LayoutRoot"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
VisualStateManager.VisualStateGroups
>
<
VisualStateGroup
x:Name
=
"CommonStates"
>
<
VisualState
x:Name
=
"Normal"
/>
<
VisualState
x:Name
=
"Pressed"
>
<
Storyboard
>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"Expanded"
>
<
Storyboard
>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"Disabled"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Background"
Storyboard.TargetName
=
"border"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
Value
=
"{StaticResource BackgroundBrush}"
/>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"FontWeight"
Storyboard.TargetName
=
"mainLayout"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
Value
=
"Normal"
/>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
</
VisualStateGroup
>
</
VisualStateManager.VisualStateGroups
>
<
ContentControl
x:Name
=
"HeaderPresenter"
CacheMode
=
"BitmapCache"
ContentTemplate
=
"{TemplateBinding HeaderTemplate}"
Content
=
"{TemplateBinding Header}"
Grid.Row
=
"0"
Style
=
"{TemplateBinding HeaderStyle}"
/>
<
Border
x:Name
=
"border"
BorderBrush
=
"Transparent"
BorderThickness
=
"0"
Background
=
"{StaticResource AccentBrush}"
CacheMode
=
"BitmapCache"
Grid.Row
=
"1"
>
<
Grid
x:Name
=
"mainLayout"
>
<
telerikInput:RadListPickerItem
x:Name
=
"PopupModeLabel"
FontWeight
=
"Bold"
HorizontalAlignment
=
"Center"
MinHeight
=
"{TemplateBinding MinHeight}"
Style
=
"{TemplateBinding ItemStyle}"
VerticalAlignment
=
"Stretch"
/>
<
Canvas
x:Name
=
"ItemsParent"
/>
</
Grid
>
</
Border
>
<
telerikPrimitives:RadWindow
x:Name
=
"Popup"
CloseAnimation
=
"{TemplateBinding PopupCloseAnimation}"
IsFullScreen
=
"True"
IsAnimationEnabled
=
"{TemplateBinding IsAnimationEnabled}"
OpenAnimation
=
"{TemplateBinding PopupOpenAnimation}"
>
<
telerikPrimitives:RadWindow.ApplicationBarInfo
>
<
telerikPrimitives:ApplicationBarInfo
x:Name
=
"PART_AppBarInfo"
>
<
telerikPrimitives:ApplicationBarButton
x:Name
=
"PART_OKButton"
/>
<
telerikPrimitives:ApplicationBarButton
x:Name
=
"PART_CancelButton"
/>
</
telerikPrimitives:ApplicationBarInfo
>
</
telerikPrimitives:RadWindow.ApplicationBarInfo
>
<
Grid
Background
=
"{StaticResource PhoneChromeBrush}"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
ContentControl
CacheMode
=
"BitmapCache"
ContentTemplate
=
"{TemplateBinding PopupHeaderTemplate}"
Content
=
"{TemplateBinding PopupHeader}"
Grid.Row
=
"0"
Style
=
"{TemplateBinding PopupHeaderStyle}"
/>
<
telerikPrimitives:RadDataBoundListBox
x:Name
=
"PopupList"
CheckModeDeactivatedOnBackButton
=
"False"
DisplayMemberPath
=
"{TemplateBinding DisplayMemberPath}"
IsCheckModeActive
=
"{Binding SelectionMode, Converter={StaticResource SelectionModeToBooleanConverter}, RelativeSource={RelativeSource TemplatedParent}}"
telerik:InteractionEffectManager.IsInteractionEnabled
=
"True"
ItemContainerStyle
=
"{TemplateBinding PopupItemStyle}"
Grid.Row
=
"1"
Style
=
"{TemplateBinding PopupStyle}"
/>
</
Grid
>
</
telerikPrimitives:RadWindow
>
</
Grid
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
<
Setter
Property
=
"PopupStyle"
>
<
Setter.Value
>
<
Style
TargetType
=
"telerikPrimitives:RadDataBoundListBox"
>
<
Setter
Property
=
"FontSize"
Value
=
"{StaticResource PhoneFontSizeExtraLarge}"
/>
<
Setter
Property
=
"FontFamily"
Value
=
"{StaticResource PhoneFontFamilySemiLight}"
/>
<
Setter
Property
=
"Background"
Value
=
"{StaticResource PhoneChromeBrush}"
/>
<
Setter
Property
=
"HorizontalAlignment"
Value
=
"Stretch"
/>
<
Setter
Property
=
"VerticalAlignment"
Value
=
"Stretch"
/>
<
Setter
Property
=
"CheckBoxStyle"
>
<
Setter.Value
>
<
Style
TargetType
=
"telerikPrimitives:ItemCheckBox"
>
<
Setter
Property
=
"VerticalAlignment"
Value
=
"Center"
/>
<
Setter
Property
=
"Margin"
Value
=
"0, 0, -18, 0"
/>
</
Style
>
</
Setter.Value
>
</
Setter
>
</
Style
>
</
Setter.Value
>
</
Setter
>
<
Setter
Property
=
"ItemTemplate"
>
<
Setter.Value
>
<
DataTemplate
>
<
TextBlock
Foreground
=
"{StaticResource ForegroundBrush}"
HorizontalAlignment
=
"Center"
Margin
=
"0,3,0,0"
Text
=
"{Binding ShortText}"
VerticalAlignment
=
"Center"
/>
</
DataTemplate
>
</
Setter.Value
>
</
Setter
>
<
Setter
Property
=
"PopupItemTemplate"
>
<
Setter.Value
>
<
DataTemplate
>
<
TextBlock
Text
=
"{Binding Text}"
FontSize
=
"20"
FontWeight
=
"Bold"
Margin
=
"5,0,0,0"
Padding
=
"{StaticResource PhoneTouchTargetOverhang}"
VerticalAlignment
=
"Center"
/>
</
DataTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
</
views:SalesChartViewBase.Resources
>
<
views:SalesChartViewBase.Foreground
>
<
StaticResource
ResourceKey
=
"ForegroundBrush"
/>
</
views:SalesChartViewBase.Foreground
>
<!--<
d:DataContext
>
<
Binding
Source
=
"{StaticResource ConditionsSource}"
/>
</
d:DataContext
>-->
<!--DataContext="{StaticResource ConditionsSource}"-->
<
Grid
x:Name
=
"LayoutRoot"
Margin
=
"0"
>
<
Image
Margin
=
"{Binding BackgroundMargin}"
Opacity
=
"0.2"
RenderTransformOrigin
=
"0.5,0.5"
RenderTransform
=
"{Binding BackgroundTransform}"
Source
=
"{Binding BackgroundImage}"
Stretch
=
"Uniform"
/>
<
Grid
Margin
=
"0,0,80,0"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
Grid
x:Name
=
"TitlePanel"
Background
=
"{StaticResource PhoneAccentBrush}"
HorizontalAlignment
=
"Stretch"
Height
=
"115"
RenderTransformOrigin
=
"0.5,0.5"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
</
Grid.RowDefinitions
>
<
Button
BorderThickness
=
"0"
Background
=
"Transparent"
Grid.Row
=
"1"
Margin
=
"0"
Padding
=
"0"
Command
=
"{Binding IssueCommand}"
HorizontalAlignment
=
"Stretch"
HorizontalContentAlignment
=
"Left"
>
<
StackPanel
Orientation
=
"Vertical"
HorizontalAlignment
=
"Center"
Margin
=
"9,-7,9,0"
>
<
TextBlock
x:Name
=
"PageTitle"
Style
=
"{StaticResource PageTitle}"
Text
=
"{Binding PageTitle}"
/>
<
TextBlock
Style
=
"{StaticResource PageSubTitle}"
Text
=
"{Binding PageSubTitle}"
/>
</
StackPanel
>
</
Button
>
<
uc:TopBarControl
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Top"
/>
</
Grid
>
<
Grid
x:Name
=
"Content"
Grid.Row
=
"1"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
Grid
Grid.Row
=
"0"
HorizontalAlignment
=
"Center"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"20"
/>
<
ColumnDefinition
Width
=
"*"
/>
</
Grid.ColumnDefinitions
>
<
StackPanel
Orientation
=
"Horizontal"
HorizontalAlignment
=
"Center"
>
<
TextBlock
Margin
=
"0,5,0,0"
Text
=
"Condition: "
TextAlignment
=
"Right"
VerticalAlignment
=
"Center"
/>
<
telerikInput:RadListPicker
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Center"
InlineModeThreshold
=
"1"
IsEnabled
=
"True"
ItemsSource
=
"{Binding Conditions}"
MinWidth
=
"110"
PopupHeader
=
"Select a Condition"
SelectedItem
=
"{Binding SelectedCondition, Mode=TwoWay}"
Style
=
"{StaticResource RadListPickerStyle}"
VerticalAlignment
=
"Center"
VerticalContentAlignment
=
"Center"
FontSize
=
"{StaticResource PhoneFontSizeSmall}"
/>
</
StackPanel
>
<
StackPanel
Grid.Column
=
"2"
Orientation
=
"Horizontal"
HorizontalAlignment
=
"Center"
>
<
TextBlock
Margin
=
"0,5,0,0"
Text
=
"Page Quality: "
TextAlignment
=
"Right"
VerticalAlignment
=
"Center"
/>
<
telerikInput:RadListPicker
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Center"
InlineModeThreshold
=
"1"
IsEnabled
=
"{Binding PageQualitiesEnabled}"
ItemsSource
=
"{Binding PageQualities}"
Margin
=
"0"
MinWidth
=
"250"
PopupHeader
=
"Select a Page Quality"
SelectedItem
=
"{Binding SelectedPageQuality, Mode=TwoWay}"
Style
=
"{StaticResource RadListPickerStyle}"
VerticalAlignment
=
"Center"
VerticalContentAlignment
=
"Center"
/>
</
StackPanel
>
</
Grid
>
<
controls:Panorama
Grid.Row
=
"2"
Margin
=
"0,-10,0,0"
Padding
=
"12,0,12,0"
>
<
controls:Panorama.HeaderTemplate
>
<
DataTemplate
/>
</
controls:Panorama.HeaderTemplate
>
<
controls:PanoramaItem
>
<
Grid
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"*"
/>
<
ColumnDefinition
Width
=
"50"
/>
</
Grid.ColumnDefinitions
>
<
StackPanel
Orientation
=
"Vertical"
>
<
Grid
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"*"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"*"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"*"
/>
</
Grid.ColumnDefinitions
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
TextBlock
Grid.Column
=
"1"
Grid.ColumnSpan
=
"2"
Text
=
"Max Sale"
HorizontalAlignment
=
"Stretch"
TextAlignment
=
"Center"
TextDecorations
=
"Underline"
/>
<
TextBlock
Grid.Column
=
"1"
Grid.Row
=
"1"
Text
=
"Amount: "
TextAlignment
=
"Right"
/>
<
TextBlock
Grid.Column
=
"2"
Grid.Row
=
"1"
Text
=
"{Binding MaxAmount}"
TextAlignment
=
"Right"
/>
<
TextBlock
Grid.Column
=
"4"
Grid.ColumnSpan
=
"2"
Text
=
"Min Sale"
HorizontalAlignment
=
"Stretch"
TextAlignment
=
"Center"
TextDecorations
=
"Underline"
/>
<
TextBlock
Grid.Column
=
"4"
Grid.Row
=
"1"
Text
=
"Amount: "
TextAlignment
=
"Right"
/>
<
TextBlock
Grid.Column
=
"5"
Grid.Row
=
"1"
Text
=
"{Binding MinAmount}"
TextAlignment
=
"Right"
/>
<
TextBlock
Grid.Column
=
"1"
Grid.Row
=
"2"
Text
=
"Date: "
TextAlignment
=
"Right"
/>
<
TextBlock
Grid.Column
=
"2"
Grid.Row
=
"2"
Text
=
"{Binding MaxDate}"
TextAlignment
=
"Right"
/>
<
TextBlock
Grid.Column
=
"4"
Grid.Row
=
"2"
Text
=
"Date: "
TextAlignment
=
"Right"
/>
<
TextBlock
Grid.Column
=
"5"
Grid.Row
=
"2"
Text
=
"{Binding MinDate}"
TextAlignment
=
"Right"
/>
</
Grid
>
<
Grid
Margin
=
"0,20,0,0"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"*"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"*"
/>
</
Grid.ColumnDefinitions
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
</
Grid.RowDefinitions
>
<
TextBlock
Grid.Column
=
"1"
Grid.ColumnSpan
=
"2"
Text
=
"Most Recent Sale"
HorizontalAlignment
=
"Stretch"
TextAlignment
=
"Center"
TextDecorations
=
"Underline"
/>
<
TextBlock
Grid.Column
=
"1"
Grid.Row
=
"1"
Text
=
"Amount: "
TextAlignment
=
"Right"
/>
<
TextBlock
Grid.Column
=
"2"
Grid.Row
=
"1"
Text
=
"{Binding LastAmount}"
TextAlignment
=
"Right"
/>
<
TextBlock
Grid.Column
=
"1"
Grid.Row
=
"2"
Text
=
"Date: "
TextAlignment
=
"Right"
/>
<
TextBlock
Grid.Column
=
"2"
Grid.Row
=
"2"
Text
=
"{Binding LastDate}"
TextAlignment
=
"Right"
/>
</
Grid
>
<
StackPanel
Orientation
=
"Horizontal"
HorizontalAlignment
=
"Center"
Margin
=
"0,40,0,0"
>
<
TextBlock
FontSize
=
"22"
FontWeight
=
"Bold"
Text
=
"Est. Value:"
Visibility
=
"{Binding EstimatedValueVisibility}"
VerticalAlignment
=
"Center"
Margin
=
"0,0,5,0"
/>
<
TextBlock
FontSize
=
"22"
FontWeight
=
"Bold"
Text
=
"{Binding EstimatedValue}"
Visibility
=
"{Binding EstimatedValueVisibility}"
VerticalAlignment
=
"Center"
Margin
=
"5,0,0,0"
/>
</
StackPanel
>
</
StackPanel
>
</
Grid
>
</
controls:PanoramaItem
>
<
controls:PanoramaItem
>
<
chart:RadCartesianChart
HorizontalAlignment
=
"Stretch"
>
<
chart:RadCartesianChart.Resources
>
<
Style
x:Key
=
"dateAxisStyle"
TargetType
=
"TextBlock"
>
<
Setter
Property
=
"FontSize"
Value
=
"12"
/>
<
Setter
Property
=
"TextWrapping"
Value
=
"Wrap"
/>
<
Setter
Property
=
"Width"
Value
=
"35"
/>
</
Style
>
<
Style
x:Key
=
"verticalAxisStyle"
TargetType
=
"TextBlock"
>
<
Setter
Property
=
"FontSize"
Value
=
"12"
/>
<
Setter
Property
=
"TextWrapping"
Value
=
"NoWrap"
/>
</
Style
>
</
chart:RadCartesianChart.Resources
>
<
chart:RadCartesianChart.Grid
>
<
chart:CartesianChartGrid
MajorLinesVisibility
=
"Y"
MajorYLineDashArray
=
"5, 5"
>
<
chart:CartesianChartGrid.MajorYLineStyle
>
<
Style
TargetType
=
"Line"
>
<
Setter
Property
=
"Stroke"
Value
=
"Gray"
/>
</
Style
>
</
chart:CartesianChartGrid.MajorYLineStyle
>
</
chart:CartesianChartGrid
>
</
chart:RadCartesianChart.Grid
>
<
chart:RadCartesianChart.Behaviors
>
<
chart:ChartPanAndZoomBehavior
ZoomMode
=
"Horizontal"
PanMode
=
"Horizontal"
/>
</
chart:RadCartesianChart.Behaviors
>
<
chart:RadCartesianChart.HorizontalAxis
>
<
chart:DateTimeContinuousAxis
LineStroke
=
"{StaticResource PhoneDisabledBrush}"
LineThickness
=
"2"
LabelFitMode
=
"MultiLine"
LabelFormat
=
"MMM yyyy"
LabelInterval
=
"2"
LabelStyle
=
"{StaticResource dateAxisStyle}"
/>
</
chart:RadCartesianChart.HorizontalAxis
>
<
chart:RadCartesianChart.VerticalAxis
>
<
chart:LinearAxis
LineStroke
=
"{StaticResource PhoneDisabledBrush}"
LineThickness
=
"2"
LabelFormat
=
"$0"
LabelStyle
=
"{StaticResource verticalAxisStyle}"
/>
</
chart:RadCartesianChart.VerticalAxis
>
<
chart:AreaSeries
CombineMode
=
"Cluster"
Fill
=
"#CCE51400"
Stroke
=
"Red"
CategoryBinding
=
"DataPointDate"
ValueBinding
=
"DataPointValue"
ItemsSource
=
"{Binding RegressionSeries}"
>
<
chartEngine:CategoricalDataPoint
Value
=
"1.0"
/>
<
chartEngine:CategoricalDataPoint
Value
=
"1.9"
/>
<
chartEngine:CategoricalDataPoint
Value
=
"1.9"
/>
<
chartEngine:CategoricalDataPoint
Value
=
"2.3"
/>
<
chartEngine:CategoricalDataPoint
Value
=
"2.1"
/>
</
chart:AreaSeries
>
<
chart:SplineAreaSeries
CombineMode
=
"Cluster"
Fill
=
"#99339933"
Stroke
=
"Green"
CategoryBinding
=
"DataPointDate"
ValueBinding
=
"DataPointValue"
ItemsSource
=
"{Binding ValuesSeries}"
>
<
chartEngine:CategoricalDataPoint
Value
=
"1.0"
/>
<
chartEngine:CategoricalDataPoint
Value
=
"1.0"
/>
<
chartEngine:CategoricalDataPoint
Value
=
"1.0"
/>
<
chartEngine:CategoricalDataPoint
Value
=
"1.0"
/>
<
chartEngine:CategoricalDataPoint
Value
=
"1.0"
/>
</
chart:SplineAreaSeries
>
<
chart:LineSeries
CombineMode
=
"Cluster"
Stroke
=
"Transparent"
CategoryBinding
=
"DataPointDate"
ValueBinding
=
"DataPointValue"
ItemsSource
=
"{Binding SalesSeries}"
>
<
chart:LineSeries.PointTemplate
>
<
DataTemplate
>
<
Ellipse
Width
=
"6"
Height
=
"6"
Stroke
=
"{StaticResource PhoneForegroundBrush}"
Fill
=
"{StaticResource PhoneForegroundBrush}"
/>
</
DataTemplate
>
</
chart:LineSeries.PointTemplate
>
<
chartEngine:CategoricalDataPoint
Value
=
"1.0"
/>
<
chartEngine:CategoricalDataPoint
Value
=
"1.9"
/>
<
chartEngine:CategoricalDataPoint
Value
=
"1.9"
/>
<
chartEngine:CategoricalDataPoint
Value
=
"2.3"
/>
<
chartEngine:CategoricalDataPoint
Value
=
"2.1"
/>
</
chart:LineSeries
>
</
chart:RadCartesianChart
>
</
controls:PanoramaItem
>
</
controls:Panorama
>
<
telerikPrimitives:RadBusyIndicator
Grid.RowSpan
=
"2"
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
IsRunning
=
"{Binding LoadingIndicatorIsRunning}"
Background
=
"Transparent"
Foreground
=
"{StaticResource AccentBrush}"
/>
</
Grid
>
</
Grid
>
<
ad:AdControl
Width
=
"480"
Height
=
"80"
AdUnitId
=
"{StaticResource AdUnit480_80}"
ApplicationId
=
"{StaticResource ApplicationID}"
Grid.Column
=
"1"
Background
=
"{StaticResource BackgroundBrush}"
Foreground
=
"{StaticResource ForegroundBrush}"
HorizontalAlignment
=
"Right"
Margin
=
"0,0,-200,0"
RenderTransformOrigin
=
"0.5,0.5"
VerticalAlignment
=
"Center"
>
<
ad:AdControl.RenderTransform
>
<
CompositeTransform
Rotation
=
"270"
/>
</
ad:AdControl.RenderTransform
>
</
ad:AdControl
>
<!--<
Button
Content
=
"Toggle Background"
Width
=
"480"
Height
=
"80"
RenderTransformOrigin
=
"0.5,0.5"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Right"
Grid.Column
=
"1"
Click
=
"Button_Click"
Background
=
"{StaticResource BackgroundBrush}"
Margin
=
"0,0,-200,0"
>
<
Button.RenderTransform
>
<
CompositeTransform
Rotation
=
"270"
/>
</
Button.RenderTransform
>
</
Button
>
<
uc:ErrorWindow
/>-->
<
telerikPrimitives:RadModalWindow
Background
=
"{StaticResource BackgroundBrush}"
IsClosedOnBackButton
=
"True"
IsEnabled
=
"True"
IsFullScreen
=
"True"
IsOpen
=
"{Binding IsInfoWindowOpen, Mode=TwoWay}"
Placement
=
"CenterCenter"
WindowSizeMode
=
"FitToPlacementTarget"
>
<
ScrollViewer
Margin
=
"12,12,12,0"
HorizontalScrollBarVisibility
=
"Disabled"
VerticalScrollBarVisibility
=
"Auto"
>
<
StackPanel
Margin
=
"0,12,0,0"
Grid.Row
=
"2"
>
<
TextBlock
Text
=
"Info"
Style
=
"{StaticResource PhoneTextTitle1Style}"
Foreground
=
"{StaticResource AccentBrush}"
/>
<
TextBlock
Foreground
=
"{StaticResource ForegroundBrush}"
Margin
=
"6,10,3,10"
TextWrapping
=
"Wrap"
TextAlignment
=
"Left"
>
The data on this page represents information about completed online auctions, from several auction sites, of the specified Issue in the specified Condition.
All books were graded by a 3rd party and given a "Universal" grade.
</
TextBlock
>
<
TextBlock
Foreground
=
"{StaticResource ForegroundBrush}"
Margin
=
"6,10,3,10"
TextWrapping
=
"Wrap"
TextAlignment
=
"Left"
>
Tapping the Condition allows you to look at data from a different Condition.
Tapping the Page Quality will allow you to filter the data results by a specific Page Quality.
</
TextBlock
>
<
TextBlock
Foreground
=
"{StaticResource ForegroundBrush}"
Margin
=
"6,10,3,10"
TextWrapping
=
"Wrap"
TextAlignment
=
"Left"
>
Here is a key to help you read the information on this page:
</
TextBlock
>
<
TextBlock
Foreground
=
"{StaticResource ForegroundBrush}"
Margin
=
"6,10,3,10"
TextWrapping
=
"Wrap"
TextAlignment
=
"Left"
>
<
Bold
>Max Sale:</
Bold
> Represents the Date and final Sale Amount (including buyer's fees) of the auction for the specified Issue in the specified Condition that garnered the highest recorded Sale Amount (including buyers' fees).
</
TextBlock
>
<
TextBlock
Foreground
=
"{StaticResource ForegroundBrush}"
Margin
=
"6,10,3,10"
TextWrapping
=
"Wrap"
TextAlignment
=
"Left"
>
<
Bold
>Min Sale:</
Bold
> Represents the Date and final Sale Amount (including buyer's fees) of the auction for the specified Issue in the specified Condition that garnered the lowest recorded Sale Amount (including buyers' fees).
</
TextBlock
>
<
TextBlock
Foreground
=
"{StaticResource ForegroundBrush}"
Margin
=
"6,10,3,10"
TextWrapping
=
"Wrap"
TextAlignment
=
"Left"
>
<
Bold
>Most Recent Sale:</
Bold
> Represents the Date and final Sale Amount (including buyer's fees) of the most recent auction for the specified Issue in the specified Condition.
</
TextBlock
>
<
TextBlock
Foreground
=
"{StaticResource ForegroundBrush}"
Margin
=
"6,10,3,10"
TextWrapping
=
"Wrap"
TextAlignment
=
"Left"
>
<
Bold
>Est. Value:</
Bold
> Represents the estimated value of the specified Issue in the specified Condition calculated using linear regression based on the documented auction sales.
</
TextBlock
>
<
TextBlock
Foreground
=
"{StaticResource ForegroundBrush}"
Margin
=
"6,10,3,10"
TextWrapping
=
"Wrap"
TextAlignment
=
"Left"
>
<
Bold
>Chart Legend:</
Bold
>
</
TextBlock
>
<
Grid
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"*"
/>
</
Grid.ColumnDefinitions
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
</
Grid.RowDefinitions
>
<
Ellipse
Width
=
"6"
Height
=
"6"
Stroke
=
"{StaticResource PhoneForegroundBrush}"
Fill
=
"{StaticResource PhoneForegroundBrush}"
/>
<
TextBlock
Grid.Column
=
"1"
Foreground
=
"{StaticResource ForegroundBrush}"
Margin
=
"6,10,3,10"
TextWrapping
=
"Wrap"
TextAlignment
=
"Left"
>
Each point represents a completed auction sale of the specified Issue in the specified Condition. Only "Universal" grades are included.
</
TextBlock
>
<
Rectangle
Grid.Row
=
"1"
Height
=
"4"
Width
=
"40"
Fill
=
"Green"
/>
<
TextBlock
Grid.Column
=
"1"
Grid.Row
=
"1"
Foreground
=
"{StaticResource ForegroundBrush}"
Margin
=
"6,10,3,10"
TextWrapping
=
"Wrap"
TextAlignment
=
"Left"
>
This series represents the estimated value as calculated, using linear regression, after each sale.
</
TextBlock
>
<
Rectangle
Grid.Row
=
"2"
Height
=
"4"
Width
=
"40"
Fill
=
"Red"
/>
<
TextBlock
Grid.Column
=
"1"
Grid.Row
=
"2"
Foreground
=
"{StaticResource ForegroundBrush}"
Margin
=
"6,10,3,10"
TextWrapping
=
"Wrap"
TextAlignment
=
"Left"
>
This series represents the linear regression line from the 1st sale to today.
</
TextBlock
>
</
Grid
>
<
uc:TopButtonInfoControl
/>
</
StackPanel
>
</
ScrollViewer
>
</
telerikPrimitives:RadModalWindow
>
</
Grid
>
</
views:SalesChartViewBase
>
@All, I was able to reproduce the described issue, and our next internal build, which will be available for download by the end of the week, it will be fixed.
@Jason, this issue is caused by our new feature in RadListPicker: ActionButton, similar to the one in RadTextBox and RadPasswordBox. If you want to use it in your List Picker, you will have to change the template that you are using in the moment to include it. You can have a look at the new default template and adjust it to fit your needs.
Let me know if you have other questions.
Greetings,
Todor
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
Hey Todor!
Thanx, again, for your quick response. I'm very impressed with your teams level of service.
Let me ask the following questions of you:
- Was this change part of an "internal" build?
- If so, how can I go back to the latest "public" build?
This ActionButton was one of the new features in RadListPicker introduced with our official Q3 2012 release, so this change is included in the public build and in the latest internal build as well. However, the new internal build will be available by the end of the week and you shouldn't experience this issue after you download it from your account.
All the best,
Todor
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
I just upgraded to 2012.3 1016 (Okt. 17 2012) and I do have the same problem...
Part name: ActionButton
Part type: Telerik.Windows.Controls.RadImageButton
at Telerik.Windows.Controls.Primitives.RadItemsControl.GetTemplatePart[T](String partName, Boolean throwException) in c:\Builds\67\WindowsPhone\All_Controls_WPFixes\Sources\Development\Controls\Primitives\Common\RadItemsControl.cs:line 191
at Telerik.Windows.Controls.RadListPicker.OnApplyTemplate() in c:\Builds\67\WindowsPhone\All_Controls_WPFixes\Sources\Development\Controls\Input\ListPicker\RadListPicker.cs:line 723
at System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)
<
telerikInput:RadListPicker
x:Name
=
"GPSAccuracyListPicker"
Margin
=
"0,18,0,0"
VerticalAlignment
=
"Stretch"
Header
=
"GPS Accuraccy:"
IsExpanded
=
"False"
InlineModeThreshold
=
"4"
PopupHeader
=
"Select GPS accuracy"
Style
=
"{StaticResource RadListPickerStyleTesting}"
>
<
telerikInput:RadListPicker.PopupItemTemplate
>
<
DataTemplate
>
<
StackPanel
Orientation
=
"Vertical"
Margin
=
"0 -30 0 0"
>
<
TextBlock
Text
=
"{Binding Caption}"
FontSize
=
"26.667"
/>
<
TextBlock
TextWrapping
=
"Wrap"
Text
=
"{Binding Description}"
FontSize
=
"21.333"
/>
</
StackPanel
>
</
DataTemplate
>
</
telerikInput:RadListPicker.PopupItemTemplate
>
<
telerikInput:RadListPicker.ItemTemplate
>
<
DataTemplate
>
<
Grid
>
<
TextBlock
Text
=
"{Binding Caption}"
/>
</
Grid
>
</
DataTemplate
>
</
telerikInput:RadListPicker.ItemTemplate
>
<!-- <
ListBoxItem
x:Name
=
"VeryLowListBoxItem"
Content
=
"Very Low"
/>
<
ListBoxItem
x:Name
=
"LowListBoxItem"
Content
=
"Low"
/>
<
ListBoxItem
x:Name
=
"MediumListBoxItem"
Content
=
"Medium"
/>
<
ListBoxItem
x:Name
=
"HighListBoxItem"
Content
=
"High"
/>
<
ListBoxItem
x:Name
=
"VeryHighListBoxItem"
Content
=
"Very High"
/>
<
ListBoxItem
x:Name
=
"ExtremeListBoxItem"
Content
=
"Extreme"
/>
-->
</
telerikInput:RadListPicker
>
<
Style
x:Key
=
"RadListPickerStyleTesting"
TargetType
=
"telerikInput:RadListPicker"
>
<
Setter
Property
=
"HorizontalAlignment"
Value
=
"Stretch"
/>
<
Setter
Property
=
"VerticalAlignment"
Value
=
"Top"
/>
<
Setter
Property
=
"HeaderStyle"
Value
=
"{StaticResource HeaderStyle}"
/>
<
Setter
Property
=
"Background"
Value
=
"{StaticResource PhoneTextBoxBrush}"
/>
<
Setter
Property
=
"Foreground"
Value
=
"{StaticResource PhoneTextBoxForegroundBrush}"
/>
<
Setter
Property
=
"FontSize"
Value
=
"{StaticResource PhoneFontSizeMediumLarge}"
/>
<
Setter
Property
=
"PopupHeaderStyle"
Value
=
"{StaticResource PopupHeaderStyle}"
/>
<
Setter
Property
=
"Margin"
Value
=
"{StaticResource PhoneTouchTargetOverhang}"
/>
<
Setter
Property
=
"MinHeight"
Value
=
"44"
/>
<
Setter
Property
=
"BorderThickness"
Value
=
"2"
/>
<
Setter
Property
=
"BorderBrush"
Value
=
"{StaticResource PhoneTextBoxBrush}"
/>
<
Setter
Property
=
"PopupOpenAnimation"
>
<
Setter.Value
>
<
telerik:RadTileAnimation
Duration
=
"0:0:.2"
InitialDelay
=
"0:0:.08"
IsTranslationEnabled
=
"False"
InOutAnimationMode
=
"In"
PerspectiveAngleY
=
"0"
PerspectiveAngleX
=
"90"
SequentialMode
=
"FirstToLast"
/>
</
Setter.Value
>
</
Setter
>
<
Setter
Property
=
"PopupCloseAnimation"
>
<
Setter.Value
>
<
telerik:RadTileAnimation
Duration
=
"0:0:.2"
IsTranslationEnabled
=
"False"
InOutAnimationMode
=
"Out"
PerspectiveAngleY
=
"0"
PerspectiveAngleX
=
"90"
SequentialMode
=
"FirstToLast"
SequentialItemDelay
=
"0"
/>
</
Setter.Value
>
</
Setter
>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"telerikInput:RadListPicker"
>
<
Grid
x:Name
=
"LayoutRoot"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
VisualStateManager.VisualStateGroups
>
<
VisualStateGroup
x:Name
=
"CommonStates"
>
<
VisualState
x:Name
=
"Normal"
/>
<
VisualState
x:Name
=
"Pressed"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Background"
Storyboard.TargetName
=
"border"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
Value
=
"{StaticResource PhoneTextBoxEditBackgroundColor}"
/>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"BorderBrush"
Storyboard.TargetName
=
"border"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
Value
=
"{StaticResource PhoneTextBoxEditBorderBrush}"
/>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"Expanded"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Background"
Storyboard.TargetName
=
"border"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
Value
=
"{StaticResource PhoneTextBoxEditBackgroundColor}"
/>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"BorderBrush"
Storyboard.TargetName
=
"border"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
Value
=
"{StaticResource PhoneTextBoxEditBorderBrush}"
/>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
<
VisualState
x:Name
=
"Disabled"
>
<
Storyboard
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Opacity"
Storyboard.TargetName
=
"LayoutRoot"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
Value
=
"0.3"
/>
</
ObjectAnimationUsingKeyFrames
>
<
ObjectAnimationUsingKeyFrames
Duration
=
"0"
Storyboard.TargetProperty
=
"Background"
Storyboard.TargetName
=
"border"
>
<
DiscreteObjectKeyFrame
KeyTime
=
"0"
Value
=
"Transparent"
/>
</
ObjectAnimationUsingKeyFrames
>
</
Storyboard
>
</
VisualState
>
</
VisualStateGroup
>
</
VisualStateManager.VisualStateGroups
>
<
ContentControl
x:Name
=
"HeaderPresenter"
CacheMode
=
"BitmapCache"
ContentTemplate
=
"{TemplateBinding HeaderTemplate}"
Content
=
"{TemplateBinding Header}"
Grid.Row
=
"0"
Style
=
"{TemplateBinding HeaderStyle}"
Foreground
=
"#99FFFFFF"
/>
<
Border
x:Name
=
"border"
BorderBrush
=
"{TemplateBinding BorderBrush}"
BorderThickness
=
"{TemplateBinding BorderThickness}"
Background
=
"{TemplateBinding Background}"
CacheMode
=
"BitmapCache"
Grid.Row
=
"1"
>
<
Grid
x:Name
=
"mainLayout"
Background
=
"#FFC4C4C4"
>
<
telerikInput:RadListPickerItem
x:Name
=
"PopupModeLabel"
HorizontalAlignment
=
"Stretch"
MinHeight
=
"{TemplateBinding MinHeight}"
Style
=
"{TemplateBinding ItemStyle}"
VerticalAlignment
=
"Stretch"
/>
<
Canvas
x:Name
=
"ItemsParent"
/>
</
Grid
>
</
Border
>
<
telerikPrimitives:RadWindow
x:Name
=
"Popup"
CloseAnimation
=
"{TemplateBinding PopupCloseAnimation}"
IsFullScreen
=
"True"
IsAnimationEnabled
=
"{TemplateBinding IsAnimationEnabled}"
OpenAnimation
=
"{TemplateBinding PopupOpenAnimation}"
>
<
telerikPrimitives:RadWindow.ApplicationBarInfo
>
<
telerikPrimitives:ApplicationBarInfo
x:Name
=
"PART_AppBarInfo"
>
<
telerikPrimitives:ApplicationBarButton
x:Name
=
"PART_OKButton"
/>
<
telerikPrimitives:ApplicationBarButton
x:Name
=
"PART_CancelButton"
/>
</
telerikPrimitives:ApplicationBarInfo
>
</
telerikPrimitives:RadWindow.ApplicationBarInfo
>
<
Grid
Background
=
"{StaticResource PhoneBackgroundBrush}"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
ContentControl
CacheMode
=
"BitmapCache"
ContentTemplate
=
"{TemplateBinding PopupHeaderTemplate}"
Content
=
"{TemplateBinding PopupHeader}"
Grid.Row
=
"0"
Style
=
"{TemplateBinding PopupHeaderStyle}"
/>
<
telerikPrimitives:RadDataBoundListBox
x:Name
=
"PopupList"
CheckModeDeactivatedOnBackButton
=
"False"
DisplayMemberPath
=
"{TemplateBinding DisplayMemberPath}"
IsCheckModeActive
=
"{Binding SelectionMode, Converter={StaticResource SelectionModeToBooleanConverter}, RelativeSource={RelativeSource TemplatedParent}}"
telerik:InteractionEffectManager.IsInteractionEnabled
=
"True"
ItemContainerStyle
=
"{TemplateBinding PopupItemStyle}"
Grid.Row
=
"1"
Style
=
"{TemplateBinding PopupStyle}"
/>
</
Grid
>
</
telerikPrimitives:RadWindow
>
</
Grid
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
<
Setter
Property
=
"PopupItemStyle"
>
<
Setter.Value
>
<
Style
TargetType
=
"telerikPrimitives:RadDataBoundListBoxItem"
>
<
Setter
Property
=
"Padding"
Value
=
"24, 26, 0, 26"
/>
</
Style
>
</
Setter.Value
>
</
Setter
>
<
Setter
Property
=
"PopupStyle"
>
<
Setter.Value
>
<
Style
TargetType
=
"telerikPrimitives:RadDataBoundListBox"
>
<
Setter
Property
=
"FontSize"
Value
=
"{StaticResource PhoneFontSizeExtraLarge}"
/>
<
Setter
Property
=
"FontFamily"
Value
=
"{StaticResource PhoneFontFamilySemiLight}"
/>
<
Setter
Property
=
"Background"
Value
=
"{StaticResource PhoneChromeBrush}"
/>
<
Setter
Property
=
"HorizontalAlignment"
Value
=
"Stretch"
/>
<
Setter
Property
=
"VerticalAlignment"
Value
=
"Stretch"
/>
<
Setter
Property
=
"CheckBoxStyle"
>
<
Setter.Value
>
<
Style
TargetType
=
"telerikPrimitives:ItemCheckBox"
>
<
Setter
Property
=
"VerticalAlignment"
Value
=
"Center"
/>
<
Setter
Property
=
"Margin"
Value
=
"0, 0, -18, 0"
/>
</
Style
>
</
Setter.Value
>
</
Setter
>
</
Style
>
</
Setter.Value
>
</
Setter
>
</
Style
>
Should I wait for a new update or can I do something to temporary overcome this problem?
Thank you very much.
Efthymios Kalyviotis
Thank you for writing.
The issue is present in the official release that you have downloaded but we have already fixed it. The fix is available as an Internal Build which you can download from your account at:
Manage Products -> Latest internal builds
Let me know if you need additional assistance.
Kind regards,
Todor
the Telerik team
really thank you for the fast response.
My software does really work now! It took me a while to understand how to upgrade the components, but it is OK now!
That is why I write this post today. I have the need to share my experience with the other Telerik users, so that they do not spend much time on searching how to install the internal builds.
Actually, after they download the internal build into their computer, they have to extract it to the 'Program files' folder where the Telerik components are already installed. Unfortunately, just a simple copy of the libraries isn't going to work.
They DO have to go to the menu item 'Telerik -> Rad Controls for windows Phone -> Upgrade wizard' of their MS Visual Studio in order to upgrade their project.
I hope that this helps.
Regards
Efthymios Kalyviotis