Method OnInitializingShadowStyle
OnInitializingShadowStyle(ValueChangingEventArgs<ShadowStyles?>)
Called before the Button's initial ShadowStyle is applied during construction. Override to change or suppress the default shadow — set NewValue to the desired style, or set Handled to true to skip applying any shadow.
protected virtual void OnInitializingShadowStyle(ValueChangingEventArgs<ShadowStyles?> args)
Parameters
argsValueChangingEventArgs<ShadowStyles?>Event args whose NewValue is pre-set to DefaultShadow. Subclasses that never display a shadow (e.g. ScrollButton or internal buttons used by arrangement UI) should set
args.NewValue = nullto avoid the create-then-destroy allocation pattern.