会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Exceedingly's blog
博客园
首页
新随笔
联系
订阅
管理
2023年2月2日
WPF使用微软官方CommunityToolkit.Mvvm的源生成器Bug
摘要: 使用特性来对ViewModel内的部分标记的时候会出现两种情况。(下图是官方文档内容) 1、显示绑定失败 这个是因为WPF程序为.Framework版本,更换成.net 6版本后问题解决。 2、 报CS0102错误,显示已存在属性,导致程序无法编译运行 这个错误是因为VS版本和.net6版本的问题。
阅读全文
posted @ 2023-02-02 16:42 Exceedingly
阅读(501)
评论(0)
推荐(0)
2022年12月2日
关于Unity使用sqlite打包后程序无法读取数据库的问题
摘要: 这个问题一年前就发生过一次,在编译环境下可以读取Sqlite数据库,然后打包在自己的研发电脑上也可正常运行,但是部署到客户电脑上时,就会出现数据库无法读取的问题。 当然问题现象可能并不是报数据库无法读取的错误,可能不会报任何错误,只是无法显示数据。这时候就要考虑是否是数据库无法读取的问题。 解决办法
阅读全文
posted @ 2022-12-02 11:18 Exceedingly
阅读(473)
评论(0)
推荐(0)
2022年8月18日
WPF将控件转为图片(Visual试图转Bitmap)
摘要: RenderTargetBitmap target = new RenderTargetBitmap((int)grid.ActualWidth, (int)grid.ActualHeight, 96d, 96d, PixelFormats.Default); target.Render(grid)
阅读全文
posted @ 2022-08-18 14:36 Exceedingly
阅读(178)
评论(0)
推荐(0)
2022年8月10日
WPF实现无缝循环滚动
摘要: 如果用ScrollViewer来进行滚动的话,会出现滚动到底部,然后直接跳到最开始,这样跳动的情况发生。 有时候我们需求的是无缝滚动,滚动到最底部,最顶部可以连着最底部接着滚动。 基于Canvas的TranslateTransform实现,并且结合WPF的 CompositionTarget.Ren
阅读全文
posted @ 2022-08-10 11:25 Exceedingly
阅读(1323)
评论(0)
推荐(1)
2022年6月16日
Unity2022使用HttpWebRequest请求http报Insecure connection not allowed错误
摘要: 在unity2022 .1.0a5以后的版本,系统设置默认不支持http请求,只支持https请求。 可以使用一下路径更改系统设置。 Edit -> Project Settings -> Player -> Other Settings -> Configuration -> Allow down
阅读全文
posted @ 2022-06-16 18:37 Exceedingly
阅读(6535)
评论(0)
推荐(0)
2021年10月12日
C#遍历枚举类
摘要: List<string> list = new List<string>(); foreach (var item in Enum.GetNames(typeof(MyEnum))) { list.Add(item.ToString()); }
阅读全文
posted @ 2021-10-12 16:27 Exceedingly
阅读(83)
评论(0)
推荐(0)
2021年9月8日
Unity打包后的路径问题
摘要: 将untiy程序打包到PC端,Application类下的路径问题 void Start() { text = transform.Find("Text").GetComponent<Text>(); text.text = "temporaryCachePath:" + Application.t
阅读全文
posted @ 2021-09-08 15:27 Exceedingly
阅读(999)
评论(0)
推荐(0)
2021年7月15日
Unity与Android通信
摘要: Unity与Android通信 1、版本 Unity 2020.1.0f1 Android方面我用的是VsCode直接编辑Java文件,所以不存在版本问题。 2、Unity所做工作 (1)新建Unity工程 新建一个Unity工程,然后建立文件夹路径Assets/Plugins/Android,如图
阅读全文
posted @ 2021-07-15 17:23 Exceedingly
阅读(233)
评论(0)
推荐(0)
2021年7月8日
Html学习记录
摘要: 1. 元素显示与不显示 var button = document.getElementById("button") button.style.display = "none" //不占位不显示 button.style.visibility = "hidden" //占位不显示 var ob =
阅读全文
posted @ 2021-07-08 17:28 Exceedingly
阅读(22)
评论(0)
推荐(0)
2021年6月7日
WPF学习记录
摘要: 目录 1. 获取Debug文件目录 string str = System.Environment.CurrentDirectory; 输出结果:X:/工程/bin/debug 2. npoi简单操作 public OutExcel(List<OutExcelModel> list) { IWork
阅读全文
posted @ 2021-06-07 18:23 Exceedingly
阅读(109)
评论(0)
推荐(0)
公告