Jason Nadal

Restless C#ding

Longhorn RepeatButton Control

So, while I was scanning throught the Longhorn SDK, I came across a rather interesting gem of a control: the RepeatButton. This control shares a parent, ButtonBase, with it's siblings, Button, CheckBox, HyperLink, and RadioButton.

<RepeatButton Delay="100" Interval="100" Click="DoCount"
    DockPanel.Dock="Top"><Text>Count</Text></RepeatButton>

What this bit of code does, is call the DoCount(object, ClickEventArgs) method every second, after a delay of a second. I imagine this could be used to do some very interesting things with animation....

Posted: Apr 08 2004, 09:18 PM by thejay2 | with no comments
Filed under:

Comments

No Comments

Leave a Comment

(required) 

(required) 

(optional)

(required)