Skip to content

Commit

Permalink
feat: (macOS) Add default property state to the Style
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpinedam committed May 4, 2020
1 parent a087a21 commit a52d326
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Uno.UI/UI/Xaml/Controls/PasswordBox/PasswordBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ private void RegisterSetPasswordScope()
_revealButton.RemoveHandler(PointerCanceledEvent, endReveal);
_revealButton.RemoveHandler(PointerCaptureLostEvent, endReveal);
});

#if __MACOS__
IsPasswordRevealButtonEnabled = false;
#endif
}

SetPasswordScope(true);
Expand Down
3 changes: 3 additions & 0 deletions src/Uno.UI/UI/Xaml/Style/Generic/Generic.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -4803,6 +4803,9 @@
Value="Hidden" />
<Setter Property="Padding"
Value="{ThemeResource TextControlThemePadding}" />
<!-- macOS PasswordBox implemeentation will not display the RevealButton -->
<macos:Setter Property="IsPasswordRevealButtonEnabled"
Value="False" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="PasswordBox">
Expand Down

0 comments on commit a52d326

Please sign in to comment.