我也没用过相关功能,lz看看msdn上的解释有没有帮助:第一个参数的解释
containingObject
Type: System.Windows.FrameworkElement
An object contained within the same name scope as the targets of this storyboard's animations. Animations without a TargetName are applied to containingObject.备注的内容:
If the targeted properties are already animated, they are replaced using the SnapshotAndReplace handoff behavior.
To interactively control this storyboard, you must use the same containingObject parameter when calling the interactive methods that you used to begin the storyboard
When this method is called, Clock objects are created for the storyboard and any timelines it contains. These clocks are stored with containingObject.
Beginning a storyboard triggers the CurrentStateInvalidated and CurrentGlobalSpeedInvalidated events.