Attention: We are retiring the ASP.NET Community Blogs. Learn more >

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....

No Comments