using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls.Primitives; namespace CustomUI { public class AnimationButton : ToggleButton { #region Private属性 #endregion #region 依赖属性定义 #endregion #region 依赖属性set get #endregion #region Constructors static AnimationButton() { DefaultStyleKeyProperty.OverrideMetadata(typeof(AnimationButton), new FrameworkPropertyMetadata(typeof(AnimationButton))); } #endregion #region Override方法 #endregion #region Private方法 #endregion } }