I am writing this application where I want to change a material on content control with some animation that transfers the old content Does and brings new content but the problem is that, when I override it, the on -content changes will change the event content.
Is there a way to suspend the original content control class by changing material so that I can play my animation?
Here is my code:
Protected override zero on-content change (object old content, object new convent) {_oldUserControl = oldContent Sliding as Buzz; _oldUserControl.RaiseEvent (new routing extract (slidingbash.extension animation); _newUserControl = newContent Sliding as Buzz; _oldUserControl.RaiseEvent (new routing and arrays (slidingbase. Antivirus event); Base.OnContentChanged (Older Resource, Older Resource); }
Where sliding base is my base custom control in which animation events are defined.
You can launch the animation while handling the event.
Something like this:
OnContentChangeEvent () {functionAnimationLauncher (); } Private zero function animation () {// you fancy animation goes here}
Maybe one can help me understand a bit more of an explanation. Hope it helps!
No comments:
Post a Comment