HandyControl icon indicating copy to clipboard operation
HandyControl copied to clipboard

TransitioningContentControl does not transition on content change

Open DarthMazut opened this issue 2 years ago • 1 comments

Hello, I'd like to propose an important improvement for TransitioningContentControl:

Actual:

TransitioningContentControl does not transition with cool animation when Content dependency property changes.

Expected:

TransitioningContentControl should also transition with cool animation when content changes (specifically when change is invoked by DataBinding mechanism)

Remarks:

Right now the cool animation of transition is started only when visibility of the TransitioningContentControl changes. I think it should also play transitrion animation when content is changed. This is very desirable behavior for extension of ContentControl. Please see https://mahapps.com/docs/controls/transitioningcontentcontrol for example.

Also the fix seems very simple, just invoke StartTransition() in TransitioningContentControl.cs when content changes.

Thanks

DarthMazut avatar Aug 06 '21 20:08 DarthMazut

This would be very useful. In fact, when I started using this control for the first time I thought It wasn't working because this was the behavior I was expecting.

jhm-ciberman avatar Oct 12 '21 17:10 jhm-ciberman

Thanks @NaBian for the work! Amazing!

jhm-ciberman avatar Oct 15 '22 22:10 jhm-ciberman