【发布时间】:2018-04-10 08:55:03
【问题描述】:
我在 UWP 应用中使用密码框控件。默认情况下,它会显示一个眼睛图标,借助该图标,用户可以看到密码以了解他是否输入正确。
这是我当前的代码:
<Page
x:Class="UwpApp.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:UwpApp"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<PasswordBox HorizontalAlignment="Left" VerticalAlignment="Top" />
</Grid>
</Page>
虽然我的应用程序针对的是 Windows 10,但我想根据我的应用程序要求摆脱此密码显示功能
有趣的是,passwordbox control available for WPF applications 中没有此密码显示功能?
【问题讨论】:
标签: c# uwp passwordbox