Language

ScrollBar.DeferScrollToHorizontalOffsetCommand フィールド

定義

ユーザーが水平方向のScrollViewerのThumbをScrollBarで指定された値にドラッグしていることを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はCanExecuteのDeferScrollToHorizontalOffsetCommandを呼び出します。 CanExecuteがtrueを返した場合、ScrollBarはそのコマンドを実行します。 CanExecuteがfalseを返した場合、ScrollBarはScrollToHorizontalOffsetCommandを実行します。

ScrollViewerでは、このコマンドを使用して遅延スクロールを有効にします。 ScrollViewer.IsDeferredScrollingEnabledがtrueされ、ユーザーがThumbのScrollBarをドラッグすると、ユーザーがScrollViewerを解放するまで、Thumbの内容は変更されません。 遅延スクロールが有効になっている場合、ユーザーがScrollBarをドラッグすると、DeferScrollToHorizontalOffsetCommandは水平方向のScrollBarのThumbを実行します。

適用対象