1
Vote

Cinch crashing when using CompletedAwareGoToState in Silveright 5

description

Sacha,

Trying to use CompletedAwareGoToStateCommandTrigger with Silverlight 5 and Cinch 2.0.70832. When the application is initialized I get the following output error:

{System.NullReferenceException: Object reference not set to an instance of an object.
at Cinch.CompletedAwareGoToStateCommandTrigger.OnAttached()
at System.Windows.Interactivity.TriggerBase.Attach(DependencyObject dependencyObject)
at System.Windows.Interactivity.TriggerCollection.ItemAdded(TriggerBase item)
at System.Windows.Interactivity.AttachableCollection1.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
at System.Windows.DependencyObjectCollection
1.TryCollectionChanged(NotifyCollectionChangedEventArgs e)
at System.Windows.DependencyObjectCollection1.RaiseCollectionChanged(NotifyCollectionChangedAction action, Object item, Int32 index)
at System.Windows.DependencyObjectCollection
1.System.Collections.IList.Add(Object value)
at MS.Internal.XamlManagedRuntimeRPInvokes.Add(XamlQualifiedObject& qoCollection, XamlPropertyToken inCollectionProperty, XamlQualifiedObject& inValue)}

I attached a simple solution that shows the problem.

file attachments

comments