Пример #1
0
 protected override void OnPropertyChanged(DependencyPropertyChangedEventArgs e)
 {
     base.OnPropertyChanged(e);
     if (e.Property == Control.PaddingProperty)
     {
         PaddingChanged?.Invoke(this.Padding);
     }
 }
Пример #2
0
 protected virtual void OnPaddingChanged(EventArgs e)
 {
     PaddingChanged?.Invoke(this, e);
 }
Пример #3
0
 protected virtual void OnPaddingChanged(EventArgs e)
 {
     PaddingChanged?.Invoke(this, e);
     OnRedraw(EventArgs.Empty);
 }