c# - 删除 TextBox 末尾的 "X"按钮

标签 c# xaml windows-8 windows-runtime windows-store-apps

enter image description here

我正在使用 C# + XAML 开发 Windows 应用商店应用。当我添加一个属性 TextWrapping 设置为 NoWrap 的 TextBox 时,当它获得焦点时,“X”出现在 TextBox 的末尾。

所以,我需要删除这个“X”,TextBox 不能换行。

最佳答案

正如每个人所说,您真的不应该删除“X”,除非您有充分的理由这样做。

要删除 X,而不是将 TextWrapping 设置为“NoWrap”,您必须将其设置为 TextWrapping="Wrap"

关于c# - 删除 TextBox 末尾的 "X"按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15096352/

相关文章:

c# - 主窗口中的 float 窗口

java - Eclipse 无法在 Windows 8 中运行

c# - .NET Core MVC 通用 Controller View

c# - 使用 WPF/C# 中的绑定(bind)获取更改的数据

c# - 如何在 wpf datagrid 中获取所选单元格的行标题值?

可以使用 Mingw 构建 Windows 应用商店应用程序吗?

windows-8 - Windows 8 RT - 动态生成 html 不呈现图像

c# - 授权 : Basic in client for SOAP Service

C#读取文件添加特殊字符

c# - GooglePlayGame 服务在 Unity 中无法正常工作