This project is read-only.

Blinking of the floatable window


Hi, thanks for this control. I have a problem that was already described but there was no reply to it. When I call Show() for the FloatableWindow sometimes it appears smoothly but sometimes you can see a part of the window that appears and disappears very quickly before the dialog will be shown. How can I fix that?


jrupp wrote Oct 14, 2010 at 8:14 PM

I ran into this on my co-workers windows machine and a Mac laptop (with Safari) we have for testing.

I was able to resolve the issue (for my non-modal popups, all we're using) bu setting the ScaleX and ScaleY properties on the ContentRoot Grid's ScaleTransform to 0 (for the Template in the generic.xaml file).

chernomordik wrote Nov 9, 2010 at 11:07 AM

Scale = 0 makes content disappear. I've tried
        <ScaleTransform ScaleX="0" ScaleY="0" />
Anyway it did not help

wrote Jul 19, 2012 at 3:17 PM

kevindpath wrote Jul 19, 2012 at 9:46 PM

I was getting this also, but I figured out a change that seems to work for me. The problem seemed to be that the window was being shown before the storyboard animation even started. I fixed it by setting the Opacity to 0 in the style, but setting it back to 1 immediately before the GoToState command that launched the storyboard.

So in generic.xaml, I added this Opacity line:
    <Setter Property="BorderThickness" Value="1"/>
    <Setter Property="Opacity" Value="0"/>
And in FloatableWindow.cs I added this Opacity line:
            this.Opacity = 1;
            VisualStateManager.GoToState(this, VSMSTATE_StateOpen, true);

wrote Feb 14, 2013 at 8:13 PM