Rename RevealContent => IsContentRevealed
MODIFY
WalletWasabi.Fluent/Controls/PrivacyContentControl.axaml
WalletWasabi.Fluent/Controls/PrivacyContentControl.axaml
<Style Selector="controls|PrivacyContentControl">
<Setter Property="Template">
- <ControlTemplate>
+ <ControlTemplate TargetType="controls:PrivacyContentControl">
<Panel Background="Transparent">
<ContentPresenter Name="PART_Content"
- IsVisible="{Binding RevealContent^, RelativeSource={RelativeSource Mode=TemplatedParent}}"
+ IsVisible="{Binding IsContentRevealed^, RelativeSource={RelativeSource Mode=TemplatedParent}}"
ContentTemplate="{TemplateBinding ContentTemplate}"
Content="{TemplateBinding Content}"
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" />
<Panel Name="PART_PrivacyReplacement"
- IsVisible="{Binding !RevealContent^, RelativeSource={RelativeSource Mode=TemplatedParent}}">
+ IsVisible="{Binding !IsContentRevealed^, RelativeSource={RelativeSource Mode=TemplatedParent}}">
<Viewbox Name="PART_Icon">
<PathIcon Data="{StaticResource incognito_pathicon}" />
</Viewbox>

MODIFY
WalletWasabi.Fluent/Controls/PrivacyContentControl.axaml.cs
WalletWasabi.Fluent/Controls/PrivacyContentControl.axaml.cs
@@ -51,7 +51,7 @@ public class PrivacyContentControl : ContentControl
isForced,
(privacyModeEnabled, pointerOver, forced) => !privacyModeEnabled || pointerOver || forced);
- RevealContent = displayContent
+ IsContentRevealed = displayContent
.ObserveOn(RxApp.MainThreadScheduler)
.Replay(1).RefCount();
@@ -94,5 +94,5 @@ public class PrivacyContentControl : ContentControl
set => SetValue(ForceShowProperty, value);
}
- private IObservable<bool> RevealContent { get; } = Observable.Empty<bool>();
+ private IObservable<bool> IsContentRevealed { get; } = Observable.Empty<bool>();
}

Rename RevealContent => IsContentRevealed