【问题标题】:Hiding contents of a TextBox in C# (Windows Store App)在 C# 中隐藏文本框的内容(Windows 应用商店应用程序)
【发布时间】:2014-07-28 21:25:07
【问题描述】:

可以这样做吗?在 Windows 窗体中,您将使用 PasswordChar 属性,但是当我键入 passwordTextBox1. 时,Visual Studio 不会在自动完成列表中显示此属性。是否有等效的属性,或者我需要使用 PasswordBox 类?

我正在使用适用于 Windows 8.1 的 Visual Studio 2013 Express。

提前致谢。

【问题讨论】:

    标签: c# visual-studio-2013 winrt-xaml windows-8.1


    【解决方案1】:

    您需要使用PasswordBox 来满足您的需求。

    你可以这样使用它:

    <PasswordBox Name="MyPasswordBox" Height="35" Width="400" />
    

    【讨论】:

      【解决方案2】:

      使用 PasswordBox 控件。

      details

      【讨论】:

        猜你喜欢
        • 2015-06-02
        • 1970-01-01
        • 2015-12-10
        • 2016-10-22
        • 1970-01-01
        • 1970-01-01
        • 2013-10-19
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多