protected internal virtual void OnStyleChanged(Style oldStyle, Style newStyle) { if (oldStyle != null) { oldStyle.Detach(this); } if (newStyle != null) { newStyle.Attach(this); } }
public Style(Type targetType, Style basedOn) : this() { this.TargetType = targetType; this.BasedOn = basedOn; }