上一页 1 ··· 8 9 10 11 12 13 14 下一页
摘要: 桌面上的快捷方式大家都知道,当你新建一个新账号时,想他让出现或不出现旧账号上的快捷方式, 那么这里有个目录可以帮助你 如下(默认是隐藏的) C:\Users\Public\Desktop 所有User的桌面都会自动映射这里的快捷方式,所以增加或删除这里的快捷方式可以让你目标达成。 阅读全文
posted @ 2022-10-12 09:51 stweily 阅读(516) 评论(0) 推荐(0)
摘要: 项目中出现重启电脑后(软件自动启动)点击软件界面时偶尔出现锯齿噪点现象, 最后发现是图片硬解码绘制的BUG。使用软解就可以避开。 处理方法 :在窗口的Loaded事件加这句 var hwndSource = PresentationSource.FromVisual(this) as HwndSou 阅读全文
posted @ 2022-10-11 09:14 stweily 阅读(156) 评论(0) 推荐(0)
摘要: <Grid> <TabControl TabStripPlacement="Left"> <TabControl.Resources> <Style TargetType="{x:Type TabItem}"> <Setter Property="HeaderTemplate"> <Setter.V 阅读全文
posted @ 2022-09-14 09:21 stweily 阅读(159) 评论(0) 推荐(0)
摘要: 有时候Command需要多个参数,记录一下操作方式 <Button Content="Zoom" Command="{Binding BtnCommand"> <Button.CommandParameter> <MultiBinding Converter="{StaticResource MyC 阅读全文
posted @ 2022-09-13 15:45 stweily 阅读(1701) 评论(0) 推荐(0)
摘要: 在项目中有次听别人说因为GIF播放引起了重大BUG。今天看到了一个gif不知好用否,时间紧,待后面测试吧。 仓库地址:https://github.com/XamlAnimatedGif/WpfAnimatedGif Nuget 包:WpfAnimatedGif。 xaml使用 <Image gif 阅读全文
posted @ 2022-09-09 14:00 stweily 阅读(148) 评论(0) 推荐(0)
摘要: 经常我们需要设置一个程序运行以后 开机自动启动。代码实现如下 定时任务型 public static _TASK_STATE AutoStartup(string creator, string taskName, string path) { try { //实例化任务对象 TaskSchedul 阅读全文
posted @ 2022-09-08 08:49 stweily 阅读(146) 评论(0) 推荐(0)
摘要: 最近工作需要,边学边写WPF, 看到<Application.Resources>里的<ResourceDictionary.MergedDictionaries> ResourceDictionary source = uri 时看到URI好奇怪,查询了下 记录如下 引用自 http://www. 阅读全文
posted @ 2022-09-07 10:33 stweily 阅读(117) 评论(0) 推荐(0)
摘要: 记录一个我平时忽略了的系统查询 using System; using System.Management; public class Sample { public static void Main(string[] args) { ManagementObjectSearcher s = new 阅读全文
posted @ 2022-09-02 14:38 stweily 阅读(99) 评论(0) 推荐(0)
摘要: 一 系统启动文件夹 Win7、win8的系统,在系统的开始菜单里,有个“启动”文件夹,WIn10没有了,但是可以使用shell:startup【C:\Users\admin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup】打 阅读全文
posted @ 2022-08-26 10:24 stweily 阅读(785) 评论(0) 推荐(0)
摘要: 正常我们采用Nginx代理之后 ,API层获取的httpContext.GetRemoteIpAddressToIPv4()的逻辑返回的应该是代理Nginx的IP了.而这和我们最初设置相悖的,显然有时候这个需求是必然的. 帮记录一下相关这种的配制 配置localtion location /api 阅读全文
posted @ 2022-08-16 09:47 stweily 阅读(139) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 下一页