ScrollBar.PageRightCommand 字段
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
public: static initonly System::Windows::Input::RoutedCommand ^ PageRightCommand;
public static readonly System.Windows.Input.RoutedCommand PageRightCommand;
staticval mutable PageRightCommand : System.Windows.Input.RoutedCommand
Public Shared ReadOnly PageRightCommand As RoutedCommand
字段值
示例
以下示例演示如何在自定义ScrollBar样式模板中指定PageRightCommand。
<Style x:Key="ScrollBar_RightTrack"
BasedOn="{StaticResource ScrollBar_TrackRepeater}"
TargetType="{x:Type RepeatButton}">
<Setter Property="Command" Value="ScrollBar.PageRightCommand" />
</Style>
注解
此命令 ValueTrackScrollBar 将增加属性的值 LargeChange 中的值。
当用户按下位于右侧 Thumb的页面按钮时,将发生此命令。 下图显示了页面按钮。ScrollBar
实现作为控件的一ScrollBarScrollViewer部分时,将ScrollViewer执行此命令。
XAML 文本用法
<
object属性="ScrollBar.PageRightCommand"/>