随笔分类 - WPF
摘要:1、Button等自带Command属性的控件,直接绑定命令 <Button HorizontalAlignment="Left" Width="105" Height="32"Command="{Binding ClickCommand}"> <TextBlock Text="点击" Foregr
阅读全文
摘要:WPF中ComboBox设置IsEditable="True"后,ComboBox变的可以输入文本,但是在输入@$等字符时,监听ComboBox内部样式中的TextBox的TextChanged事件(以@为例),会发现输入一次@,Text改变了3次,分别为“ ”、“@”、“@”。 记录一下
阅读全文
摘要:https://docs.microsoft.com/zh-cn/dotnet/api/system.windows.shell.windowchrome?redirectedfrom=MSDN&view=windowsdesktop-6.0
阅读全文
摘要:<Window x:Class="WpfApplication6.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w
阅读全文
摘要:1、通过添加应用程序清单文件: Vista 和 Windows 7 操作系统为了加强安全,增加了 UAC(用户账户控制) 的机制,如果 UAC 被打开,用户即使是以管理员权限登录,其应用程序默认情况下也无法对系统目录,系统注册表等可能影响系统运行的设置进行写操作。这个机制大大增强了系统的安全性,但对
阅读全文
摘要:System.Windows.Forms.Application.ExitThread(); System.Windows.Forms.Application.Exit(); System.Windows.Forms.Application.Restart(); Process.GetCurrent
阅读全文
摘要:参考: wpf passwordbox控件 光标移到最后 WPF学习笔记-TextBox光标位置如何放到最后? PasswordBox /// <summary> /// 设置光标位置 /// </summary> /// <param name="passwordBox"></param> ///
阅读全文

浙公网安备 33010602011771号