MaterialDesignInXamlToolkit icon indicating copy to clipboard operation
MaterialDesignInXamlToolkit copied to clipboard

DialogHost background fade out is to slow when using MaterialDesignEmbeddedDialogHost and TransitionAssist.DisableTransitions="True"

Open poralcode opened this issue 3 years ago • 4 comments

Bug explanation

I'd like to disable the transition of the DialogHost and at the same time, use the style MaterialDesignEmbeddedDialogHost.

<md:DialogHost
                Grid.Row="1"
                md:TransitionAssist.DisableTransitions="True"
                Identifier="ContainerDialogHost"
                SnackbarMessageQueue="{Binding ElementName=MySnackbar, Path=MessageQueue}"
                Style="{StaticResource MaterialDesignEmbeddedDialogHost}">

</md:DialogHost>

Together with md:TransitionAssist.DisableTransitions="True" and MaterialDesignEmbeddedDialogHost everything Is fast when opening the dialog. However, upon closing it, I noticed that the Background is slowly fading out. Are there any other settings I am missing?

Version

using version 4.5.0

poralcode avatar Aug 23 '22 17:08 poralcode

I'm just using that style

https://github.com/Erapchu/SinglePass.WPF/blob/develop/SinglePass.WPF/Themes/DialogHostTemplates.xaml

You can just remove PART_ContentCoverGrid and animations for it if you want the same effect but without that bug

Erapchu avatar Aug 24 '22 06:08 Erapchu

https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/pull/2829

Erapchu avatar Aug 24 '22 07:08 Erapchu

I'm just using that style

https://github.com/Erapchu/SinglePass.WPF/blob/develop/SinglePass.WPF/Themes/DialogHostTemplates.xaml

You can just remove PART_ContentCoverGrid and animations for it if you want the same effect but without that bug

Commenting

<DoubleAnimation
      Storyboard.TargetName="PART_ContentCoverGrid"
      Storyboard.TargetProperty="(UIElement.Opacity)"
      To="0" />

in <VisualState x:Name="Closed"> at the bottom of the style is enough to disabled the animation.

poralcode avatar Aug 24 '22 10:08 poralcode

Of course I just want to leave it for future changes

Erapchu avatar Aug 24 '22 10:08 Erapchu

Closing this issue because I believe it was included in the 4.6.0 release; see PR #2829.

nicolaihenriksen avatar Sep 23 '22 20:09 nicolaihenriksen