You can try to use the single instance mode for the two views. Creating new instance of the view frequently will cause memory leak easily.
↧
Comment by Liyun Zhang - MSFT on Changing ContentView's source programatically causes memory leaks
↧