ScrollBar.DeferScrollToHorizontalOffsetCommand 欄位

定義

這個命令會告知 ScrollViewer,使用者正在將水平 ThumbScrollBar 拖曳至 Parameter 中所指定的值。

public: static initonly System::Windows::Input::RoutedCommand ^ DeferScrollToHorizontalOffsetCommand;
public static readonly System.Windows.Input.RoutedCommand DeferScrollToHorizontalOffsetCommand;
 staticval mutable DeferScrollToHorizontalOffsetCommand : System.Windows.Input.RoutedCommand
Public Shared ReadOnly DeferScrollToHorizontalOffsetCommand As RoutedCommand 

欄位值

備註

當使用者拖曳 的 ScrollBar 指紋時,會 ScrollBar 呼叫 CanExecuteDeferScrollToHorizontalOffsetCommand 如果 傳 CanExecutetrue ,則會 ScrollBar 執行該命令。 如果 傳 CanExecutefalse ,則會 ScrollBar 執行 ScrollToHorizontalOffsetCommand

ScrollViewer 使用此命令來啟用延後捲動。 當 是 trueScrollViewer.IsDeferredScrollingEnabled 且使用者拖曳 ThumbScrollBar 時, 的內容 ScrollViewer 不會變更,直到使用者釋放 Thumb 為止。 如果已啟用延後捲動,當使用者 ScrollBar 拖曳 Thumb 時,會針對 水準 ScrollBar 執行 DeferScrollToHorizontalOffsetCommand

適用於