fix slidelock screen fade out
MODIFY
WalletWasabi.Gui/Controls/LockScreen/SlideLockScreenView.xaml
WalletWasabi.Gui/Controls/LockScreen/SlideLockScreenView.xaml
Duration="0:0:1.5"
Easing="QuarticEaseInOut">
<KeyFrame Cue="0%">
- <Setter Property="DoneAnimating"
- Value="False" />
+ <Setter Property="DoneAnimating" Value="False" />
</KeyFrame>
<KeyFrame Cue="100%">
- <Setter Property="Opacity"
- Value="{Binding TargetOpacity}" />
- <Setter Property="Offset"
- Value="{Binding TargetOffset}" />
- <Setter Property="DoneAnimating"
- Value="True" />
+ <Setter Property="Offset" Value="{Binding TargetOffset}" />
+ <Setter Property="DoneAnimating" Value="True" />
</KeyFrame>
</Animation>
</Style.Animations>

MODIFY
WalletWasabi.Gui/Controls/LockScreen/SlideLockScreenView.xaml.cs
WalletWasabi.Gui/Controls/LockScreen/SlideLockScreenView.xaml.cs
@@ -50,7 +50,7 @@ namespace WalletWasabi.Gui.Controls.LockScreen
private TranslateTransform TargetTransform { get; } = new TranslateTransform();
private Thumb DragThumb { get; }
- public SlideLockScreenView() : base()
+ public SlideLockScreenView()
{
InitializeComponent();
@@ -64,6 +64,15 @@ namespace WalletWasabi.Gui.Controls.LockScreen
OnDataContextChanged();
}
};
+
+ this.GetObservable(OffsetProperty)
+ .Subscribe(x =>
+ {
+ if (Bounds.Height > 0)
+ {
+ Opacity = ((Bounds.Height - -x) / Bounds.Height);
+ }
+ });
}
private void InitializeComponent()

fix slidelock screen fade out