BeginStoryboard.Name 属性


获取或设置 BeginStoryboard 对象的名称。Gets or sets the name of the BeginStoryboard object. 通过命名 BeginStoryboard 对象,可在 Storyboard 启动后对其进行控制。By naming the BeginStoryboard object, the Storyboard can be controlled after it is started.

 property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
public string Name { get; set; }
member this.Name : string with get, set
Public Property Name As String



BeginStoryboard 的名称。The name of the BeginStoryboard. 默认为 nullThe default is null.


若要能够暂停、继续或以交互方式控制 Storyboard ,请设置其的 Name 属性, BeginStoryboard 并使用 ControllableStoryboardAction 、或之类的 PauseStoryboard 对象 ResumeStoryboard StopStoryboard 来引用此名称。To be able to pause, resume, or otherwise interactively control a Storyboard, set the Name property of its BeginStoryboard and use a ControllableStoryboardAction object like PauseStoryboard, ResumeStoryboard, or StopStoryboard to reference this name. 如果 Name 的未 BeginStoryboard 指定,则 Storyboard 不能在它开始后以交互方式受到影响; 此外,当 Storyboard 结束或进入其填充期时,动画时钟会被释放。If the Name of BeginStoryboard is unspecified, the Storyboard cannot be interactively affected after it is begun; furthermore, when the Storyboard ends or enters its Fill period, the animation clocks are disposed of. 有关详细信息,请参阅 如何:在演示图板启动后使用事件触发器控制情节提要See How to: Use Event Triggers to Control a Storyboard After It Starts for more information.