SplitButton change VisualState errorr

2 posts, 0 answers
  1. Marco
    Marco avatar
    1 posts
    Member since:
    May 2011

    Posted 22 Jul 2011 Link to this post


    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?

  2. Zarko
    Zarko avatar
    755 posts

    Posted 27 Jul 2011 Link to this post

    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,
    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!

Back to Top