会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
guchen-bky
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
6
7
8
9
10
11
12
13
14
15
下一页
2024年4月25日
串口通信
摘要: 1、下载软件vspd.exe 打开我的电脑,点击管理,点击设备管理器,点击端口,发现为空, 打开软件,添加端口, Physical ports是本机端口, Virtual ports是虚拟端口 添加COM1和COM2后,设备管理器端口出现COM1< >COM2 PLC仿真可以使用NetToPLCsi
阅读全文
posted @ 2024-04-25 00:52 孤沉
阅读(98)
评论(0)
推荐(0)
2024年4月22日
记录一次Prism报错
摘要: 前提:我的WPF程序在进入主程序之前显示登录界面 此时不想登录,点击退出的时候报错了 报错提示 An exception occurred while initializing module 'ShellModule'. - The exception message was: An excepti
阅读全文
posted @ 2024-04-22 21:27 孤沉
阅读(411)
评论(0)
推荐(0)
选择电脑_希望自己可以快速买电脑
摘要: 1、外包装没动 2、封箱胶带没动 3、查看SN码,在Windows系统中,可以通过命令提示符输入 wmic bios get serialnumber 来查询BIOS中的序列号。 2、查看硬盘使用时间 3、事件管理器,Windows日志,系统,筛选当前日志们6005,6006查看开机关机时间 4、D
阅读全文
posted @ 2024-04-22 19:55 孤沉
阅读(33)
评论(0)
推荐(0)
2024年4月21日
WPF的事件命令
摘要: WPF通常使用 xmlns:i="http://schemas.microsoft.com/xaml/behaviors" 来做一些奇形怪状的绑定,比如对TextBlock的命令绑定 而命令事件如下 路由事件 (Routed Events): 这些是 WPF 中最常用的事件类型,可以沿着元素树路由。
阅读全文
posted @ 2024-04-21 20:20 孤沉
阅读(139)
评论(0)
推荐(0)
2024年4月19日
WPF关联Mvvm
摘要: WPF在不使用任何框架去关联View和ViewModel的时候,最常用的2种写法是 this.DataContext=new MainViewModel(); 或者 <Window.DataContext> <viewModels:MainWindowViewModel/> </Window.Dat
阅读全文
posted @ 2024-04-19 23:28 孤沉
阅读(63)
评论(0)
推荐(0)
2024年3月31日
List和ObservableCollection的转换
摘要: 1、我们后台查询全部List数据的时候,前台需要ObservableCollection展示 这个时候List需要转换成ObservableCollection public static ObservableCollection<T> ToObservableCollection<T>(this
阅读全文
posted @ 2024-03-31 13:54 孤沉
阅读(689)
评论(0)
推荐(0)
2024年3月30日
记录一次在设计服务层和仓储层报错
摘要: 1、首先,使用SqlSugar.IOC连接 SugarIocServices.AddSqlSugar( new IocConfig() { ConnectionString=GetConnectionObject(), DbType = IocDbType.SqlServer, IsAutoClos
阅读全文
posted @ 2024-03-30 23:21 孤沉
阅读(166)
评论(0)
推荐(0)
2024年3月26日
聊一下Button事件、命令、行为的触发顺序
摘要: 1、我们新建一个xaml <StackPanel Width="200" Margin="20"> <Button Height="30" Content="按钮" Command="{Binding MsgCommand}" x:Name="btn" Margin="10"/> </StackPa
阅读全文
posted @ 2024-03-26 10:49 孤沉
阅读(99)
评论(0)
推荐(0)
2024年3月25日
WPF的所有绑定
摘要: 一、静态绑定 1、新建一个资源字典ButtonStyle <Style x:Key="btn" TargetType="Button"> <Setter Property="Width" Value="200"/> <Setter Property="Height" Value="30"/> <Se
阅读全文
posted @ 2024-03-25 15:11 孤沉
阅读(93)
评论(0)
推荐(1)
2024年3月21日
对上次的自动扫描进行改造
摘要: 1、现在有多个程序集 lib1、lib2、lib3、lib4 每个程序集都有类标注了特性ScanningAttribute 特性的代码是 [AttributeUsage(AttributeTargets.Class, Inherited = false)] public class Scanning
阅读全文
posted @ 2024-03-21 10:24 孤沉
阅读(15)
评论(0)
推荐(0)
上一页
1
···
6
7
8
9
10
11
12
13
14
15
下一页
公告