fancy animations finally
MODIFY
WalletWasabi.Fluent/Controls/DialogContentHost.xaml
WalletWasabi.Fluent/Controls/DialogContentHost.xaml
<Styles.Resources>
</Styles.Resources>
<Style Selector="c|DialogContentHost">
- <Setter Property="Opacity" Value="0" />
- <Setter Property="Transitions">
- <Transitions>
- <TransformOperationsTransition Property="RenderTransform" Duration="0:0:1" 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" />
- </Transitions>
- </Setter>
<Setter Property="Template">
<ControlTemplate>
<Panel>
- <Panel Background="#3A3A3A" Name="Overlay" IsHitTestVisible="False" />
+ <Panel Background="#3A3A3A" Name="PART_Overlay" />
+ <Panel Name="PART_DialogHost">
<Border VerticalAlignment="Center" HorizontalAlignment="Center" CornerRadius="5" BoxShadow="4 11 30 1 #90000000" Background="#212121" >
<ContentPresenter Content="{TemplateBinding Content}"/>
</Border>
</Panel>
+ </Panel>
</ControlTemplate>
</Setter>
</Style>
- <Style Selector="c|DialogContentHost:open">
+
+
+ <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" />
+ </Transitions>
+ </Setter>
+ <Setter Property="IsHitTestVisible" Value="False"/>
+ <Setter Property="Opacity" Value="0"/>
+ </Style>
+ <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" />
+ </Transitions>
+ </Setter>
+ <Setter Property="Opacity" Value="0"/>
+ </Style>
+
+ <Style Selector="c|DialogContentHost:open /template/ Panel#PART_DialogHost">
+ <Setter Property="RenderTransform" Value="scaleX(1) scaleY(1)" />
+ <Setter Property="Opacity" Value="1"/>
+ </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"/>
+ </Style>
+ <Style Selector="c|DialogContentHost:open /template/ Panel#PART_Overlay">
+ <Setter Property="IsHitTestVisible" Value="True"/>
<Setter Property="Opacity" Value="0.8"/>
</Style>
- <Style Selector="c|DialogContentHost:not(:open)">
+ <Style Selector="c|DialogContentHost:not(:open) /template/ Panel#PART_Overlay">
+ <Setter Property="IsHitTestVisible" Value="False"/>
<Setter Property="Opacity" Value="0"/>
</Style>
</Styles>
\ No newline at end of file

fancy animations finally