分类 文档 下的文章

UWP 自定义Popup控件的自适应

0x00.前提自定义了一个查看图片细节的控件,本质是一个Image控件,但是应为采用了左侧为NavigationView右侧为Frame的导航模式,为了使该控件能覆盖到左侧的NavigationView之上,只能采用Popup。 这也导致该控件的容器不能是Frame/Page中的Grid,从而不能直接随窗体一起拉伸,可以采用SizeChanged事件和INotifyPropertyChanged接

C# Json反序列化

0x00.使用工具将Json格式化Json作为一种数据交换格式,具有简洁和清晰的结构。 在线Json格式化校验工具:http://tool.chinaz.com/tools/jsonformat.aspx 在线转换C#类工具:http://json2csharp.chahuo.com/Json数据 { "code": "00", "

WPF C# 获取机器信息

 0x00.添加引用 using System; using System.Collections.Specialized; using System.IO; using System.Management; using System.Net; using System.Net.Sockets; using System.Windows; using System.Windo

C# 获取必应每日一图

 0x00.添加引用 using System; using System.Net.Http; using System.Threading.Tasks; using Windows.Networking.BackgroundTransfer; using Windows.Storage; using System.Xml;0x01.模仿请求 public static Task<