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