You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.4 KiB
24 lines
1.4 KiB
<UserControl
|
|
x:Class="DiscordChatExporter.Gui.Views.Controls.RevealablePasswordBox"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:s="https://github.com/canton7/Stylet"
|
|
x:Name="Root"
|
|
mc:Ignorable="d">
|
|
<Grid>
|
|
<TextBox
|
|
materialDesign:TextFieldAssist.DecorationVisibility="Hidden"
|
|
BorderThickness="{Binding BorderThickness, ElementName=Root}"
|
|
Text="{Binding Password, ElementName=Root, UpdateSourceTrigger=PropertyChanged}"
|
|
Visibility="{Binding IsRevealed, ElementName=Root, Converter={x:Static s:BoolToVisibilityConverter.Instance}}" />
|
|
<PasswordBox
|
|
materialDesign:PasswordBoxAssist.Password="{Binding Password, ElementName=Root, UpdateSourceTrigger=PropertyChanged}"
|
|
materialDesign:TextFieldAssist.DecorationVisibility="Hidden"
|
|
BorderThickness="{Binding BorderThickness, ElementName=Root}"
|
|
IsEnabled="False"
|
|
Visibility="{Binding IsRevealed, ElementName=Root, Converter={x:Static s:BoolToVisibilityConverter.InverseInstance}}" />
|
|
</Grid>
|
|
</UserControl> |