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,請將其 @no__t 的 Name 屬性設定為2,並使用 ControllableStoryboardAction 物件(例如 PauseStoryboardResumeStoryboardStopStoryboard)來參考此名稱。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. 如果未指定 BeginStoryboard 的 @no__t,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. 請參閱[如何:在啟動 @ no__t-0 之後,使用事件觸發程式來控制分鏡腳本,以取得詳細資訊。See How to: Use Event Triggers to Control a Storyboard After It Starts for more information.