MediaElement.ScrubbingEnabled 屬性

定義

取得或設定值,這個值表示 MediaElement 是否會在暫停時更新框架以進行搜尋作業。

public:
 property bool ScrubbingEnabled { bool get(); void set(bool value); };
public bool ScrubbingEnabled { get; set; }
member this.ScrubbingEnabled : bool with get, set
Public Property ScrubbingEnabled As Boolean

屬性值

Boolean

如果框架於暫停時更新,則為 true,否則為 false。 預設為 false

備註

當設定為 false 時,搜尋至特定位置時,只有在媒體現正播放時,才會更新顯示的畫面。

設定 ScrubbingEnabledtrue 可能會產生一些效能成本,特別是在以互動方式控制媒體播放時。

相依性屬性資訊

識別碼欄位 ScrubbingEnabledProperty
設定為 的中繼資料屬性 true

適用於