The last thing I needed today was a distraction from the ASP.NET MVC work i've been doing...but an hour down and I had a control that mostly worked. I created the simple custom control so that users could specify a Text String, font properties, a blink interval and a blink color. For example the control can be used like so:
<useless:Blink Text=“Am I Blinking?”
FontSize=“24”
Interval=“0:0:0.25”
BlinkBrush=“Blue”
/>
But then I figured this was a good example of any how to create a simple template-supported control (e.g. supports ControlTemplates) and dependency properties. I will leave the discussion of whether this is a good idea for a control to another blog, but if you want a quick example of a small custom control, grab the code and take a look. I am open to any suggestions to put it up on CodePlex for the community to elaborate. The code is here:
[http://wilderminds.blob.core.windows.net/downloads/blinkctrl.zip](http://wilderminds.blob.core.windows.net/downloads/blinkctrl.zip)