弹来弹去跑马灯!

上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 39 下一页
摘要: 参考文字: https://mtaulty.com/2016/08/10/windows-10-uwp-and-composition-light-and-shade/ <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBr 阅读全文
posted @ 2020-09-15 18:06 wgscd 阅读(387) 评论(0) 推荐(0)
摘要: c# Progress<T> 用于显示进度。。。。。。。。主要是利用IProgress<T> 的Report(T)方法: private void BtnDownload_Click(object sender, RoutedEventArgs e) { var pp = new Progress< 阅读全文
posted @ 2020-09-08 17:45 wgscd 阅读(1401) 评论(0) 推荐(0)
摘要: uwp 下载文件显示进度并解压文件 阅读全文
posted @ 2020-09-08 15:53 wgscd 阅读(452) 评论(0) 推荐(0)
摘要: async void test() { Color replaceBlack = Color.FromArgb(224,233,55,6); Color replaceWhite = Color.FromArgb(224, 233, 222, 222); // BitmapImage bmpimg 阅读全文
posted @ 2020-09-04 17:34 wgscd 阅读(301) 评论(0) 推荐(0)
摘要: . 远程调用 1. 创建一个远程的可序列化的类,这个类可以在远程调用中用于传输来去,似乎是个公共的类: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System 阅读全文
posted @ 2020-08-27 14:55 wgscd 阅读(1261) 评论(1) 推荐(0)
摘要: c# 3.0 get set 默认值 .NET Framework 3.5 使用的是 C# 3.0,C# 3.0 有一些新的语言特性,其中有一项就是快捷属性。 之前的写法: private int _id = 0; public int Id { get { return _id; } set { 阅读全文
posted @ 2020-08-24 16:14 wgscd 阅读(1263) 评论(0) 推荐(0)
摘要: 一、SignalR是什么 Asp.net SignalR是微软为实现实时通信的一个类库。一般情况下,SignalR会使用JavaScript的长轮询(long polling)的方式来实现客户端和服务器通信,随着Html5中WebSockets出现,SignalR也支持WebSockets通信。另外 阅读全文
posted @ 2020-08-20 11:02 wgscd 阅读(1312) 评论(0) 推荐(0)
摘要: // <Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/ 阅读全文
posted @ 2020-08-11 16:44 wgscd 阅读(341) 评论(0) 推荐(0)
摘要: 老版本的写法经常是以BeginXXX, EndXXX, 或者xx.xxxAsycn(........) 新的支持 async异步关键字配合Task可读性和易用性比老板好多了。 新旧例子: using System; using System.Collections.Generic; using Sy 阅读全文
posted @ 2020-08-11 13:46 wgscd 阅读(509) 评论(0) 推荐(0)
摘要: ..在VS debug 模式下会“无法捕获” System.NullReferenceException。。。。。。但是在release 或者外部运行是能捕获的。 test code : Form2 f = null; try { f.Dispose(); } catch (NullReferenc 阅读全文
posted @ 2020-08-10 16:22 wgscd 阅读(2210) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 39 下一页