会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
guchen-bky
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
13
下一页
2025年2月27日
自定义一个区域管理
摘要: 我有一个想法,是跟据Prism框架想到的 在Prism框架,我们经常会用到 <Grid DockPanel.Dock="Left"> <ContentControl prism:RegionManager.RegionName="{x:Static region:RegionNames.Header
阅读全文
posted @ 2025-02-27 23:48 孤沉
阅读(46)
评论(0)
推荐(0)
2024年12月22日
ContentControl的精彩使用
摘要: 先看效果 在WPF中ContentControl的Content属性是object,预示着它可以绑定任何类型,不管是View还是ViewModel都可以。 我们先看正确的代码 <Window.Resources> <DataTemplate DataType="{x:Type viewModel:U
阅读全文
posted @ 2024-12-22 22:49 孤沉
阅读(230)
评论(0)
推荐(0)
2024年12月9日
我的思想天马行空1
摘要: 1、WPF MarkupExtension的学习 public class StudentList: ObservableCollection<Student> { public StudentList() { Add(new Student() { Id=1,Name="张三"}); Add(ne
阅读全文
posted @ 2024-12-09 00:49 孤沉
阅读(19)
评论(0)
推荐(0)
2024年10月31日
使用EF6连接Sqlite
摘要: 1、前置条件 安装以下包 EntityFramework System.Data.Sqlite 以上包会自动生成或填充Config文件 App.Config配置如下 <?xml version="1.0" encoding="utf-8"?> <configuration> <configSecti
阅读全文
posted @ 2024-10-31 21:36 孤沉
阅读(799)
评论(0)
推荐(1)
2024年10月27日
我创建了一个交流群
摘要:
阅读全文
posted @ 2024-10-27 15:18 孤沉
阅读(18)
评论(0)
推荐(0)
2024年10月19日
C#异步计数器的使用
摘要: 1、 CancellationTokenSource cancellationToken = new CancellationTokenSource(); public void InitData() { cancellationToken.Token.Register(() => { Name =
阅读全文
posted @ 2024-10-19 11:29 孤沉
阅读(23)
评论(0)
推荐(0)
2024年10月17日
二维数组的简单用法
摘要: public class IntArrayDemo { public static void Print() { for (int i = 0; i<IntArray.Ints.Length; i++) { Console.WriteLine(i); } } public static void G
阅读全文
posted @ 2024-10-17 23:02 孤沉
阅读(23)
评论(0)
推荐(0)
2024年10月10日
Gitlab添加SSH密钥
摘要: 1、首先本地需要下载git,确保右键有git bash选项 2、在C盘用户文件夹下,找到.ssh目录(没有新建) 3、在此目录下打开git bash 4、生成密钥 ssh-keygen -t rsa -b 4096 -C "your_email@.com" ssh-keygen:这是生成SSH密钥对
阅读全文
posted @ 2024-10-10 13:47 孤沉
阅读(7270)
评论(0)
推荐(0)
2024年10月9日
struct的一种用法
摘要: 今天打开程序发现不对劲,三个按钮显示一样的Content。 查询代码,发现问题出现在 private void InitMenuData() { HomeMenuItem menuItem = new HomeMenuItem(); var dict = menuItem.ReadUnityConf
阅读全文
posted @ 2024-10-09 00:00 孤沉
阅读(38)
评论(0)
推荐(0)
2024年9月29日
out关键字和ref关键字的区别
摘要: 我们只需要知道一点,out经常用在多个参数的输出 ref用在数据的双向传递就好了 public string GetString() { return "Hello,World!"; } var s=GetString(); 这是一个简单输出string的方法,但是只输出了一个参数 我们输出两个参数
阅读全文
posted @ 2024-09-29 00:59 孤沉
阅读(23)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
13
下一页
公告