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

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