You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today it's possible for the DropShadowPanel's Content/casting element to change sizes without triggering an update to the shadow size...for instance, consider a DropShadowPanel whose HorizontalContentAlignment is set to Left, and then sometime later its HorizontalContentAlignment is changed to Stretch. In that case, the content's size will change, but DropShadowPanel.SizeChanged might not fire.
It seems just listening to the SizeChanged event on the casting FrameworkElement is the right thing to do, since the shadow's dimensions need to be updated any time the casting element's dimensions change.
The text was updated successfully, but these errors were encountered:
Today it's possible for the DropShadowPanel's Content/casting element to change sizes without triggering an update to the shadow size...for instance, consider a DropShadowPanel whose HorizontalContentAlignment is set to Left, and then sometime later its HorizontalContentAlignment is changed to Stretch. In that case, the content's size will change, but DropShadowPanel.SizeChanged might not fire.
It seems just listening to the SizeChanged event on the casting FrameworkElement is the right thing to do, since the shadow's dimensions need to be updated any time the casting element's dimensions change.
The text was updated successfully, but these errors were encountered: