wpf - 如何使用 mvvm 模式在 wpf 中的文本框上闪烁光标
问题描述
如何在文本框上使用 MVVM 模式专注于鼠标输入时在文本框上闪烁光标。以下是我的代码
<TextBox Name="txtUserName" IsManipulationEnabled="True" Tag="{lex:Loc Key=EnterYourUsername}" TextAlignment="Center" Style="{StaticResource LoginByDomaintxt}" HorizontalAlignment="Right" Text="{Binding UserName, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Foreground="#111111">
解决方案
默认样式下,您将让光标闪烁。
<Textbox Name="Name"/>
推荐阅读
- html - 使用 CSS 打印半张 A4 页面
- reactjs - 将 Route 中的多个参数与 WordPress 中的 React Router Dom 匹配
- laravel - 如何在 Laravel 中使用主管处理作业?
- r - 根据条件使用其他列的值创建列
- javascript - 如何使用数组方法 foreach() 或 map() 将数独板打印到控制台上?
- javascript - 无法使用 javascript 中的 fetch() API 从我的本地目录中获取文件
- html - 我的代码中有什么东西阻止
- python - 高阶函数 - 接收 lambda func 以进行导数计算
- c# - 需要帮助,我正在尝试压缩图像
- javascript - 如何在js中获取多个照片名称?