Closed gencer closed 12 years ago
No, its not possible due to "airspace" issues with WindowsFormsHost
in .NET 4. What is the particular control you're hosting inside the WindowsFormHost
? There may be a suitable alternative that'll play nicely with WPF.
I want to deploy a standard "Windows Forms User Control" inside of this host. UserControl has some dependencies like DevExpress controls. (Due to DevExpress WPF limitations like theming and some disabled features i want to use fully qualified grid on my WPF by using WF User Control).
Unfortunately, not a chance from me, and I don't have any recommendations on alternatives. If the animations is effecting the user experience, try rolling your own metrowindow without the animation.
Hmm. Actually the animation on WindowsFormsHost
is not necessary. I could just hide
it and show
it instantly just after the animation stops. Does MahApps.Metro has events for animation (start, during, stop) on Form starting?
Not on MetroWindow
, no.
Thanks for the fast replies.
I'm sure i will find a way to handle this issue.
I recently found myself in a similar situation, where I'm stuck with a UserControl. Would it be possible to somehow disable all animations instead of completely recreating the default MetroWindow except for the animations?
Hi Gencer and Quipeace, have you solved this issue in the end? I faced the same problem now, was digging a lot before understand that it's all because of this animation!
As an animation (via Resource) When form is opened all objects fade in and came from left to right a little bit. Except one thing. WindowsFormsHost.
If i draw or create WindowsFormsHost control, every single control is animated except this one. But the fact is after animation is done, if i click to the form (anywhere) WindowsFormsHost control basically jump from left to right (a little bit) instantly like 10-15px.
Is it possible to fix this or enable the feature for this control or override this like; ++ IsAnimationDone? ++ Yes ++++ Show WindowsFormsHost ++ No ++++ Hide and wait until animation is done.