Kerwen Blog

Stay Hungry Stay Foolish

C# library project 不支持 config

You generally should not add an app.config file to a class library project; it won’t be used without some painful bending and twisting on your part. It doesn’t hurt the library project at all - it ...

C# 各种名词

线程 C# 线程 1 2 3 4 5 6 7 8 9 10 11 12 static void Main(string[] args) { Thread t = new Thread(Child); t.Start(); Console.WriteLine("This is main thread."); Console.ReadKey(); } sta...

WPF 基础

http://www.cnblogs.com/chillsrc/category/684419.html “WPF应用程序”会在“引用”里面自动添加下图中所示的 PresentationCore、PresentationFramework、WindowsBase三大核心程序集 在App.xaml中的“StartupUri”属性可以指定项目运行时的启动窗体。

WPF(2)依赖属性

http://www.cnblogs.com/chillsrc/category/684419.html 在WPF库实现中,依赖属性使用普通的C#属性进行了包装. WPF中的依赖属性主要有以下三个优点: 依赖属性加入了属性变化通知、限制、验证等功能。这样可以使我们更方便地实现应用,同时大大减少了代码量。许多之前需要写很多代码才能实现的功能,在WPF中可以轻松实现。 节约内存:在WinFor...

WPF布局

WFP布局 WPF布局包括两个阶段:一个测量(measure)阶段和一个排列(arrange)阶段。在测量阶段,容器遍历所有子元素,并询问子元素它们所期望的大小。在排列阶段,容器在合适的位置放置子元素。 Canvas Canvas面板是最轻量级的布局容器,它不会自动调整内部元素的排列和大小,不指定元素位置,元素将默认显示在画布的左上方。Canvas主要用来画图。 Canvas默认不会自动裁...

Soup

微软官方地址: https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/ 中文版: https://docs.microsoft.com/zh-cn/dotnet/csharp/whats-new/

C# 接口

微软官方地址: https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/ 中文版: https://docs.microsoft.com/zh-cn/dotnet/csharp/whats-new/

C# .Net Core

微软官方地址: https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/ 中文版: https://docs.microsoft.com/zh-cn/dotnet/csharp/whats-new/

C# 反射

微软官方地址: https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/ 中文版: https://docs.microsoft.com/zh-cn/dotnet/csharp/whats-new/

C# 线程通信

微软官方地址: https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/ 中文版: https://docs.microsoft.com/zh-cn/dotnet/csharp/whats-new/