AnimatedTab control from the StockTraderRI

Topics: Prism v2 - WPF 3.5
May 21, 2010 at 5:06 PM
Edited May 21, 2010 at 5:14 PM


we like the AnimatedTab control from the StockTraderRI and use it in our own application.

However, when one of the  module contains Frame or WebBrowser control which injected into the MainRegion, the animation does not run very well when switching tabs.

What shall we do to solve it out?


May 31, 2010 at 9:18 PM


This behavior is caused by the fact that transformations can’t be applied to html content in WPF.

More in detail, some FrameworkElements don’t support transformations (you can find more information here under the title: Hwnds Inside WPF). These controls can be indentified because they inherit from HwndHost. Therefore, it is important to observe that WebBrowser is inheriting from HwndHost and that a Frame internally uses a WebBrowser for rendering HTML (you can check this page and navigate to the note named Caution for more information).

Since the AnimatedTab control uses transformations, it won’t display the animation smoothly when containing a Frame or WebBrowser control. 

Please let me know if this helps.

Fernando Antivero