polish animations and others
MODIFY
WalletWasabi.Fluent/Controls/DialogContentHost.xaml
WalletWasabi.Fluent/Controls/DialogContentHost.xaml
</ControlTemplate>
</Setter>
</Style>
-
-
<Style Selector="c|DialogContentHost /template/ Panel#PART_Overlay">
<Setter Property="Transitions">
<Transitions>
- <DoubleTransition Property="Opacity" Duration="0:0:1" Easing="0.1,0.9,0.2,1.0" />
+ <DoubleTransition Property="Opacity" Duration="0:0:0.4" />
</Transitions>
</Setter>
<Setter Property="IsHitTestVisible" Value="False"/>
<Style Selector="c|DialogContentHost /template/ Panel#PART_DialogHost">
<Setter Property="Transitions">
<Transitions>
- <TransformOperationsTransition Property="RenderTransform" Duration="0:0:5" Easing="0.1,0.9,0.2,1.0" />
- <DoubleTransition Property="Opacity" Duration="0:0:1" Easing="0.1,0.9,0.2,1.0" />
+ <TransformOperationsTransition Property="RenderTransform" Duration="0:0:0.5" Easing="0.1,0.9,0.2,1.0" />
+ <DoubleTransition Property="Opacity" Duration="0:0:0.75" Easing="0.1,0.9,0.2,1.0" />
</Transitions>
</Setter>
<Setter Property="Opacity" Value="0"/>
<Style Selector="c|DialogContentHost:open /template/ Panel#PART_DialogHost">
<Setter Property="RenderTransform" Value="scaleX(1) scaleY(1)" />
<Setter Property="Opacity" Value="1"/>
+ <Setter Property="IsHitTestVisible" Value="True"/>
</Style>
<Style Selector="c|DialogContentHost:not(:open) /template/ Panel#PART_DialogHost">
<Setter Property="RenderTransform" Value="scaleX(0.9) scaleY(0.9)" />
<Setter Property="Opacity" Value="0"/>
+ <Setter Property="IsHitTestVisible" Value="False"/>
</Style>
<Style Selector="c|DialogContentHost:open /template/ Panel#PART_Overlay">
<Setter Property="IsHitTestVisible" Value="True"/>

MODIFY
WalletWasabi.Fluent/ViewModels/Dialog/DialogViewModelBaseOfTResult.cs
WalletWasabi.Fluent/ViewModels/Dialog/DialogViewModelBaseOfTResult.cs
@@ -12,7 +12,7 @@ namespace WalletWasabi.Fluent.ViewModels.Dialog
/// <typeparam name="TResult">The type of the value to be returned when the dialog is finished.</typeparam>
public abstract class DialogViewModelBase<TResult> : DialogViewModelBase
{
- public DialogViewModelBase(MainViewModel mainViewModel) : base(mainViewModel)
+ public DialogViewModelBase(IDialogHost dialogViewModel) : base(dialogViewModel)
{
}

MODIFY
WalletWasabi.Fluent/ViewModels/TestDialogViewModel.cs
WalletWasabi.Fluent/ViewModels/TestDialogViewModel.cs
@@ -6,7 +6,7 @@ namespace WalletWasabi.Fluent.ViewModels
{
public class TestDialogViewModel : DialogViewModelBase<string>
{
- public TestDialogViewModel(MainViewModel mainViewModel) : base(mainViewModel)
+ public TestDialogViewModel(IDialogHost dialogViewModel) : base(dialogViewModel)
{
}

polish animations and others