Enum dependency property caveat

Hi all, A while ago I was creating a custom control in Silverlight with an enum Dependency property. It looked like this: public partial class SomeCustomControl { public static readonly DependencyProperty OnOrOffDependencyProperty = DependencyProperty.Register(“OnOrOff”, typeof (OnOff), typeof (SomeCustomControl), new PropertyMetadata(OnPropertyChangedCallback)); public SomeCustomControl() { this.InitializeComponent(); } public OnOff OnOrOff { get { return (OnOff) this.GetValue(OnOrOffDependencyProperty); } […]