This is a migrated thread and some comments may be shown as answers.

SplitButton change VisualState errorr

1 Answer 69 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
Marco
Top achievements
Rank 1
Marco asked on 22 Jul 2011, 05:39 PM
Hi,

I'm currently migrating an application from version 2011 Q1 to 2011 Q2.
When changing the dataform state the RadSplitButton that is iniside it, thows the following error,

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MS-RTC LM 8; InfoPath.3; .NET4.0C; .NET4.0E)
Timestamp: Fri, 22 Jul 2011 14:42:45 UTC

Message: Unhandled Error in Silverlight Application
Code: 4004   
Category: ManagedRuntimeError      
Message: System.InvalidOperationException: Cannot resolve TargetName Content.
   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.RadSplitButton.GoToState(String stateName, Boolean useTransitions)
   at Telerik.Windows.Controls.RadSplitButton.UpdateVisualStates(Boolean useTransitions)
   at Telerik.Windows.Controls.RadSplitButton.UpdateVisualState(Boolean useTransitions)
   at Telerik.Windows.Controls.RadSplitButton.OnApplyTemplate()
   at System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)  


On the previous version this did not happened.
How can I catch the cause for this?

1 Answer, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 27 Jul 2011, 03:04 PM
Hello Marco,
From the stack trace it looks like that some VisualState is trying to access an UIElement with name Content, but such UIElement is missing. I would like to ask you if you could give us some code snippets so that we could help you better (the custom SplitButton template that you use will be very useful)?

Best wishes,
Zarko
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Buttons
Asked by
Marco
Top achievements
Rank 1
Answers by
Zarko
Telerik team
Share this question
or