RepeatButton.Delay 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置在开始重复之前按下等待的时间量(以 RepeatButton 毫秒为单位)。 该值必须为非负值。
public:
property int Delay { int get(); void set(int value); };
[System.ComponentModel.Bindable(true)]
public int Delay { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.Delay : int with get, set
Public Property Delay As Integer
属性值
在开始重复之前按的时间量(以毫秒为单位 RepeatButton )。 默认为 KeyboardDelay 的值。
- 属性
示例
以下示例演示如何使用该 Delay 属性设置在开始重复之前等待的时间 RepeatButton 。
<RepeatButton Width="100" DockPanel.Dock="Top"
Delay="500" Interval="100"
Click="Increase">
Increase
</RepeatButton>
<TextBlock Name="valueText"
Width="100" DockPanel.Dock="Top"
TextAlignment="Center" FontSize="16">
0
</TextBlock>
<RepeatButton Width="100" DockPanel.Dock="Top"
Delay="500" Interval="100"
Click="Decrease">
Decrease
</RepeatButton>
注解
Dependency 属性信息
| 物品 | 价值 |
|---|---|
| 标识符字段 | DelayProperty |
元数据属性设置为 true |
没有 |