上一页 1 2 3 4 5 6 7 ··· 15 下一页

2023年5月10日

C# BeginInvoke EndInvoke

摘要: 如遇到以下两种需求时,可以试试 BeginInvoke 方法 1.某些时候需要开线程处理,需要主线程子线程配合完成 1-1.投票 using System; using System.Collections.Generic; using System.Linq; using System.Text; 阅读全文

posted @ 2023-05-10 17:08 wu.g.q 阅读(47) 评论(0) 推荐(0) 编辑

2023年5月8日

Batocera教程(踩坑情况记录)

摘要: 一、什么是快乐星球 Batocera Batocera是专门为复古游戏开发的、基于Linux的操作系统,由于windows系统需要预存一部分资源确保系统正常运行,a56爆大奖在线娱乐在很多老式电脑上装模拟器(例如nds)就会很卡。 其次是把游戏和系统装到u盘或是其他储存介质中,可以轻松做到随时随地摸鱼,岂不是爽爆( 阅读全文

posted @ 2023-05-08 15:13 wu.g.q 阅读(1284) 评论(0) 推荐(0) 编辑

2023年5月5日

WPF 源码查看链接

摘要: wpf 源码链接: Reference Source (microsoft.com) 阅读全文

posted @ 2023-05-05 16:44 wu.g.q 阅读(3) 评论(0) 推荐(0) 编辑

C# 获取本地共享目录和网络共享目录

摘要: 1.在工程添加对应的cs文件 using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Li 阅读全文

posted @ 2023-05-05 15:07 wu.g.q 阅读(595) 评论(0) 推荐(0) 编辑

Wpf Datagrid 操作总结

摘要: 1. 行选中时,.SelectedIndex可以获取行索引,多行选中可用 SelectedItems 2.单元格选中时,获取行索引可以用以下(Grid为DataGrid的对象) DataGridCellInfo selectedCell = Grid.SelectedCells.FirstOrDef 阅读全文

posted @ 2023-05-05 14:48 wu.g.q 阅读(223) 评论(0) 推荐(0) 编辑

2023年4月3日

C# 压缩与解压操作

摘要: 依赖:.NET Framework 4.5及以上,引用 - 添加引用 - 程序集System.IO.CompressionSystem.IO.Compression.FileSystem 针对文件夹的最简单的压缩与解压缩1、目录必须存在2、无法覆盖文件 public static void DoZi 阅读全文

posted @ 2023-04-03 10:54 wu.g.q 阅读(53) 评论(0) 推荐(0) 编辑

2023年3月31日

C# Wpf list 前移后移一个元素的操作

摘要: //List 向后移动一个元素 private void MoveBehindUtilityDataList(List<T> UtilityRecordList, int MoveIndex, T MovedData) { T Current, tmp; tmp = T[MoveIndex]; fo 阅读全文

posted @ 2023-03-31 10:10 wu.g.q 阅读(196) 评论(0) 推荐(0) 编辑

2023年2月23日

WPF BackSpace 回退到上一个页面

摘要: 在Wpf程序中,有时候点击到某些控件后,再按下【BackSpace】键,画面会回到上一个 TextBox可能自己处理了,a56爆大奖在线娱乐没有这一个现象。 解决方案是: 在App.xaml.cs 的 InitializeComponent()或OnStartup中添加如下代码: // 禁用Backspace快捷键 阅读全文

posted @ 2023-02-23 15:33 wu.g.q 阅读(178) 评论(0) 推荐(0) 编辑

2022年12月15日

wpf DataGrid cell 背景色修改参考

摘要: <DataTemplate.Triggers> <DataTrigger Binding="{Binding Path=IsSelected, RelativeSource={RelativeSource AncestorType=DataGridRow}}" Value="True"> <Sett 阅读全文

posted @ 2022-12-15 16:16 wu.g.q 阅读(276) 评论(0) 推荐(0) 编辑

wpf 自定义Messagebox时,对话框显示不居中问题

摘要: 在自定义Messagebox(有属性Window.SizeToContent="WidthAndHeight")时,对话框显示不居中,经过尝试,应设置如下: msgBox.WindowStartupLocation = WindowStartupLocation.Manual; 在显示的时候用以下函 阅读全文

posted @ 2022-12-15 10:00 wu.g.q 阅读(325) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 ··· 15 下一页

导航