Thumb.IsDragging 屬性
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得值,指出 Thumb 控制項是否具有邏輯焦點和滑鼠捕捉,以及是否已按下左滑鼠按鈕。
public: property bool IsDragging { public:
bool get(); protected:
void set(bool value); };
C#
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.Browsable(false)]
public bool IsDragging { get; protected set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.Browsable(false)>]
member this.IsDragging : bool with get, set
Public Property IsDragging As Boolean
如果 Thumb 控制項具有焦點和滑鼠捕捉,則為 true
,否則為 false
。 預設值是 false
。
- 屬性
IsDragging當屬性變更其值時, OnDraggingChanged 會呼叫 方法。
從 .NET Framework 3.0 版 Service Pack 1 開始, IsDragging 具有受保護的 setter。 若要使用這項功能,您的應用程式應以 .NET Framework 3.5 版為目標。 如需詳細資訊,請參閱版本和相依性。
識別碼欄位 | IsDraggingProperty |
中繼資料屬性設定為 true |
無 |
產品 | 版本 |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |