TickBar.IsSelectionRangeEnabled 屬性

定義

取得或設定 TickBar 是否顯示選取範圍。

public:
 property bool IsSelectionRangeEnabled { bool get(); void set(bool value); };
[System.ComponentModel.Bindable(true)]
public bool IsSelectionRangeEnabled { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.IsSelectionRangeEnabled : bool with get, set
Public Property IsSelectionRangeEnabled As Boolean

屬性值

如果會顯示選取範圍,則為 true;否則為 false。 預設值是 false

屬性

備註

SelectionStartSelectionEnd 屬性會定義選取範圍。 當 設定 true 為 時 IsSelectionRangeEnabled ,必須設定這些屬性,才能顯示選取範圍。

下圖顯示 Slider 控制項,其中包含 TickBar 已定義選取範圍的 。

滑杆選取範圍滑

相依性屬性資訊

識別碼欄位 IsSelectionRangeEnabledProperty
中繼資料屬性設定為 true AffectsRender

適用於

另請參閱