This question is locked. New answers and comments are not allowed.
I'm using the re-ordering option in databound listbox but for a reason I don't get sometimes I get the following exception
after searching in the forums I found a similar topiv and someone said that it might be because of custom styles which in my case don't exist.
I have posted my code, as you can see I have included some controls from coding4fun toolkit in the DataTemplate, do you think a conflict might occur or something?
best regards
{System.InvalidOperationException: Cannot resolve TargetName RootScale.
at MS.Internal.XcpImports.VisualStateManager_GoToState(Control reference, String StateName, Boolean useTransitions, Boolean& refreshInheritanceContext)
at System.Windows.VisualStateManager.GoToState(Control control, String stateName, Boolean useTransitions)
at Telerik.Windows.Controls.RadDataBoundListBox.OnItemReorderPopup_OpenedChanged(Object sender, EventArgs e)
at Telerik.Windows.Controls.RadWindow.OnWindowClosed(WindowCloseReason reason)
at Telerik.Windows.Controls.RadWindow.Close(WindowCloseReason reason)
at Telerik.Windows.Controls.RadWindow.RootVisualManipulationCompleted(Gesture gesture)
at Telerik.Windows.Controls.GestureBehavior.OnManipulationCompleted(Object sender, ManipulationCompletedEventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)}
after searching in the forums I found a similar topiv and someone said that it might be because of custom styles which in my case don't exist.
I have posted my code, as you can see I have included some controls from coding4fun toolkit in the DataTemplate, do you think a conflict might occur or something?
best regards
<
telerikPrimitives:RadDataBoundListBox
x:Name
=
"resultsLbox"
Foreground
=
"White"
Tap
=
"item_tapped"
Grid.Row
=
"1"
Grid.ColumnSpan
=
"2"
Grid.RowSpan
=
"2"
ItemsSource
=
"{Binding}"
Margin
=
"0,0,0,10"
IsItemReorderEnabled
=
"True"
ItemReorderDownButtonTap
=
"resultsLbox_ItemReorderDownButtonTap"
ItemReorderUpButtonTap
=
"resultsLbox_ItemReorderUpButtonTap"
IsCheckModeEnabled
=
"True"
EmptyContent
=
""
>
<
telerikPrimitives:RadDataBoundListBox.ItemTemplate
>
<
DataTemplate
>
<
Grid
Margin
=
"5,0,0,0"
>
<
StackPanel
Margin
=
"0,10,0,0"
Orientation
=
"Horizontal"
>
<
Grid
>
<
Image
Height
=
"160"
Width
=
"110"
Source
=
"/Assets/Images/noimage.png"
/>
<
Image
Height
=
"160"
Width
=
"110"
Source
=
"{Binding Poster}"
/>
</
Grid
>
<
StackPanel
>
<
TextBlock
Margin
=
"12,0,0,0"
Text
=
"{Binding Title}"
Foreground
=
"White"
TextWrapping
=
"Wrap"
Width
=
"250"
/>
<
toolkit:Rating
Margin
=
"10,10,0,0"
Background
=
"Transparent"
RatingItemCount
=
"10"
VerticalAlignment
=
"Top"
Height
=
"23"
ReadOnly
=
"True"
Value
=
"{Binding Rating}"
HorizontalAlignment
=
"Left"
>
<
toolkit:Rating.FilledItemStyle
>
<
Style
TargetType
=
"toolkit:RatingItem"
>
<
Setter
Property
=
"Background"
Value
=
"White"
/>
</
Style
>
</
toolkit:Rating.FilledItemStyle
>
<
toolkit:Rating.UnfilledItemStyle
>
<
Style
TargetType
=
"toolkit:RatingItem"
>
<
Setter
Property
=
"Background"
Value
=
"Gray"
/>
</
Style
>
</
toolkit:Rating.UnfilledItemStyle
>
</
toolkit:Rating
>
<
TextBlock
x:Name
=
"yearTextBlock"
Margin
=
"13,10,0,0"
Text
=
"{Binding Year}"
Foreground
=
"White"
/>
</
StackPanel
>
</
StackPanel
>
<
Grid
HorizontalAlignment
=
"Left"
Background
=
"#FF343D3F"
Opacity
=
"0.7"
VerticalAlignment
=
"Bottom"
>
<
TextBlock
Margin
=
"5,0,0,0"
Foreground
=
"White"
VerticalAlignment
=
"Bottom"
FontSize
=
"30"
Text
=
"{Binding Counter}"
FontFamily
=
"Segoe WP Black"
></
TextBlock
>
</
Grid
>
</
Grid
>
</
DataTemplate
>
</
telerikPrimitives:RadDataBoundListBox.ItemTemplate
>
</
telerikPrimitives:RadDataBoundListBox
>