I can understand if Frame does not support this, but why make it possible to write the code if it just isn't going to work?
On a related note, anybody any suggestions on applying Animations to WindowsHost controls? Or am I dreaming?
Nope, no joy.
The Begin method take the container though, so 'this' should be appropriate, it is the Window containing the Frame.
The animation worked when applied on other elements in a test project I made, including a Frame element with just a solid red background. I think it's just a limitation of the Frame element when rendering HTML. It uses the WebBrowser control which is
just a wrapper around the MSHTML ActiveX control, I believe.
Hmm, it might be fun to write a Web browser in WPF...
Frame element is wrapping window with handle, thus it can not have animated opacity. However, you can create VisualBrush over Frame and Animate it
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.