IBehaviour buildBehaviour(ITreeItem forEditor) { ItemProperties itemProperties = forEditor.ItemProperties; var behaviour = new FloatAnimationBehaviour( itemProperties, new FloatAnimationBehaviourProperties { DurationInSeconds = .75f, Easing = Easing.EaseInOut, From = 0, To = 0, Name = @"float_animation_{0}".FormatWith(IoC.Model.NextItemNumber), NameOfPropertyToModify = @"Foo", ClrTypeOfInterpolator = typeof(Quartic).AssemblyQualifiedName }); return(behaviour); }
IBehaviour buildBehaviour(ITreeItem forEditor) { ItemProperties itemProperties = forEditor.ItemProperties ; var behaviour = new FloatAnimationBehaviour( itemProperties, new FloatAnimationBehaviourProperties { DurationInSeconds = .75f, Easing = Easing.EaseInOut, From = 0, To = 0, Name = @"float_animation_{0}".FormatWith( IoC.Model.NextItemNumber ), NameOfPropertyToModify = @"Foo", ClrTypeOfInterpolator = typeof( Quartic ).AssemblyQualifiedName } ) ; return behaviour ; }