Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

how to connect Custom Shapes in run time ?

$
0
0

Hi, I was having the same problem with the connector on a custom shape so I updated my code with what you have above.  I can connect from a custom shape to a regular shape, but when the custom shape is the target of the connection I get a runtime error: TargetInvocationException:

 Inner Exception: {"'ActiveSelectedBorder' name cannot be found in the name scope of 'System.Windows.Controls.Grid'."}

Stack Trace:    at System.Windows.Media.Animation.Storyboard.ResolveTargetName(String targetName, INameScope nameScope, DependencyObject element)
   at System.Windows.Media.Animation.Storyboard.ClockTreeWalkRecursive(Clock currentClock, DependencyObject containingObject, INameScope nameScope, DependencyObject parentObject, String parentObjectName, PropertyPath parentPropertyPath, HandoffBehavior handoffBehavior, HybridDictionary clockMappings, Int64 layer)
   at System.Windows.Media.Animation.Storyboard.ClockTreeWalkRecursive(Clock currentClock, DependencyObject containingObject, INameScope nameScope, DependencyObject parentObject, String parentObjectName, PropertyPath parentPropertyPath, HandoffBehavior handoffBehavior, HybridDictionary clockMappings, Int64 layer)
   at System.Windows.Media.Animation.Storyboard.BeginCommon(DependencyObject containingObject, INameScope nameScope, HandoffBehavior handoffBehavior, Boolean isControllable, Int64 layer)
   at System.Windows.VisualStateGroup.StartNewThenStopOld(FrameworkElement element, Storyboard[] newStoryboards)
   at System.Windows.VisualStateManager.GoToStateInternal(FrameworkElement control, FrameworkElement stateGroupsRoot, VisualStateGroup group, VisualState state, Boolean useTransitions)
   at System.Windows.VisualStateManager.GoToStateCommon(FrameworkElement control, FrameworkElement stateGroupsRoot, String stateName, Boolean useTransitions)
   at System.Windows.VisualStateManager.GoToState(FrameworkElement control, String stateName, Boolean useTransitions)
   at Telerik.Windows.Controls.Diagrams.RadDiagramShapeBase.UpdateVisualStates()
   at Telerik.Windows.Controls.Diagrams.RadDiagramShapeBase.OnConnectorActivationChanged(Object sender, RadRoutedEventArgs e)


Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>