I have a RadMenu made by this example. I sometimes get an error from the menu, but I dont know what causes it.
Stack trace:
vid Telerik.Windows.Controls.RadMenuItem.OpenMenu() vid Telerik.Windows.Controls.RadMenuItem.OnOpenTimerTick(Object sender, EventArgs e) vid MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args) vid MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)
I´m getting the same error as from this post: http://www.telerik.com/community/forums/silverlight/menu/radcontextmenu-crashes.aspx
But theres no solution.
The menu I uses is bounded to a MenuViewModel that inherits from ObservableCollection<MenuViewModel> (like the example link I posted previously). The menu is build up with a lot of diffrent styles to handle the diffrent properties in the menu items.
Does anyone know the soulution of the problem or what could be causing this issue?
I´m using telerik RadControls for Silverligt v 12.1.326.0, Silverlight 5 and C#.
Thx!
Stack trace:
vid Telerik.Windows.Controls.RadMenuItem.OpenMenu() vid Telerik.Windows.Controls.RadMenuItem.OnOpenTimerTick(Object sender, EventArgs e) vid MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args) vid MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)
I´m getting the same error as from this post: http://www.telerik.com/community/forums/silverlight/menu/radcontextmenu-crashes.aspx
But theres no solution.
The menu I uses is bounded to a MenuViewModel that inherits from ObservableCollection<MenuViewModel> (like the example link I posted previously). The menu is build up with a lot of diffrent styles to handle the diffrent properties in the menu items.
<
navigation:Page.Resources
>
<
Styles:MenuItemStyleSelector
x:Key
=
"MenuItemStyleSelector"
TopLevel
=
"{StaticResource MenuItemTopLevelStyle}"
Title
=
"{StaticResource MenuItemTitleStyle}"
Link
=
"{StaticResource MenuItemLinkStyle}"
ParagraphImage
=
"{StaticResource ParagraphImageMenuItemStyle}"
TopLevelSection
=
"{StaticResource MenuItemTopLevelSectionStyle}"
/>
<
telerik:HierarchicalDataTemplate
x:Key
=
"MenuItemTemplate"
ItemsSource
=
"{Binding }"
>
<
telerik:ContainerBinding.ContainerBindings
>
<
telerik:ContainerBindingCollection
>
<
telerik:ContainerBinding
PropertyName
=
"Header"
Binding
=
"{Binding Content}"
/>
<
telerik:ContainerBinding
PropertyName
=
"IsSeparator"
Binding
=
"{Binding IsSeparator}"
/>
</
telerik:ContainerBindingCollection
>
</
telerik:ContainerBinding.ContainerBindings
>
<
HyperlinkButton
Content
=
"{Binding Path=Content}"
NavigateUri
=
"{Binding Path=Url}"
/>
</
telerik:HierarchicalDataTemplate
>
</
navigation:Page.Resources
>
<
StackPanel
>
<
telerik:RadMenu
Style
=
"{StaticResource MenuStyle}"
ItemsSource
=
"{Binding MenuItems}"
ItemTemplate
=
"{StaticResource MenuItemTemplate}"
ItemContainerStyleSelector
=
"{StaticResource MenuItemStyleSelector}"
/>
</
StackPanel
>
Does anyone know the soulution of the problem or what could be causing this issue?
I´m using telerik RadControls for Silverligt v 12.1.326.0, Silverlight 5 and C#.
Thx!