05 2023 档案
摘要:WPF全局样式 Theme目录下建立Style.xaml文件 <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft
阅读全文
摘要:WPF窗体右上角叉叉退出应用程序 WPF窗体右上角叉叉退出应用程序 记得xaml里的Window标签响应Closing事件 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { if
阅读全文
摘要:WPF中的密码框 XAML文件 <PasswordBox Name="PasswordBox" Margin="5" Padding="5" PreviewKeyDown="Txtpassword_PreviewKeyUp"/> 后台代码: IntPtr p = System.Runtime.Int
阅读全文
摘要:2023年05月28日 VS2022 WFP .NETFramework,Version=v4.6.2 测试通过 NUGET:EntityFramework 6.4.4 , Microsoft.AspNet.Identity.EntityFramework 2.2.3 //扩展内置的identity
阅读全文
摘要:2023-05-27测试 ,直接用百度文心一言搜索的,结果出来的代码能运行得通,不错不错 服务器端: using System.Net; using System.Net.Sockets; using System.Text; namespace tcpipdemo_server; class Pr
阅读全文