Hi Hayden,
Yes WPF will reapply templates whenever it connects a remote desktop session. Thanks for the repro steps in this case. I believe we found a workaround and have added it for the next maintenance release (build 662).
In the meantime, I wonder if adding a first-load only flag check would help until the next build?