static void EnsureDesignMode () { if (!DesignerProperties.GetIsInDesignMode (Application.Current.RootVisual)) throw new NotImplementedException (); }