protected internal virtual void OnStyleChanged(Style oldStyle, Style newStyle)
        {
            if (oldStyle != null)
            {
                oldStyle.Detach(this);
            }

            if (newStyle != null)
            {
                newStyle.Attach(this);
            }
        }
Exemple #2
0
 public Style(Type targetType, Style basedOn)
             : this()
 {
     this.TargetType = targetType;
     this.BasedOn = basedOn;
 }