摘要:
xml code <Page x:Class="MyApp.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/ 阅读全文
posted @ 2021-01-02 23:36
MaxBruce
阅读(85)
评论(0)
推荐(0)
摘要:
Xml code <Page x:Class="MyApp.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/ 阅读全文
posted @ 2021-01-02 21:50
MaxBruce
阅读(132)
评论(0)
推荐(0)
摘要:
泛型(Generic) 允许您延迟编写类或方法中的编程元素的数据类型的规范,直到实际在程序中使用它的时候。换句话说,泛型允许您编写一个可以与任何数据类型一起工作的类或方法。 您可以通过数据类型的替代参数编写类或方法的规范。当编译器遇到类的构造函数或方法的函数调用时,它会生成代码来处理指定的数据类型。 阅读全文
posted @ 2021-01-02 20:16
MaxBruce
阅读(111)
评论(0)
推荐(0)
摘要:
SortedList 类代表了一系列按照键来排序的键/值对,这些键值对可以通过键和索引来访问。 排序列表是数组和哈希表的组合。它包含一个可使用键或索引访问各项的列表。如果您使用索引访问各项,则它是一个动态数组(ArrayList),如果您使用键访问各项,则它是一个哈希表(Hashtable)。集合中 阅读全文
posted @ 2021-01-02 20:04
MaxBruce
阅读(396)
评论(3)
推荐(0)
摘要:
反射指程序可以访问、检测和修改它本身状态或行为的一种能力。 程序集包含模块,而模块包含类型,类型又包含成员。反射则提供了封装程序集、模块和类型的对象。 您可以使用反射动态地创建类型的实例,将类型绑定到现有对象,或从现有对象中获取类型。然后,可以调用类型的方法或访问其字段和属性。 优缺点 优点: · 阅读全文
posted @ 2021-01-02 19:44
MaxBruce
阅读(191)
评论(0)
推荐(0)
摘要:
xml code <Page x:Class="MyApp.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/ 阅读全文
posted @ 2021-01-02 19:06
MaxBruce
阅读(69)
评论(0)
推荐(0)
摘要:
xml code <Page x:Class="MyApp.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/ 阅读全文
posted @ 2021-01-02 18:30
MaxBruce
阅读(92)
评论(0)
推荐(0)
摘要:
C# code 后台任务 public sealed class BgTask : IBackgroundTask { #region 私有字段 SystemMediaTransportControls mdcontrol = null; BackgroundTaskDeferral deferra 阅读全文
posted @ 2021-01-02 15:27
MaxBruce
阅读(252)
评论(0)
推荐(0)
摘要:
xml code <Page x:Class="MyApp.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/ 阅读全文
posted @ 2021-01-02 14:24
MaxBruce
阅读(59)
评论(0)
推荐(0)
摘要:
xml <Page x:Class="MyApp.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/ 阅读全文
posted @ 2021-01-02 13:54
MaxBruce
阅读(68)
评论(0)
推荐(0)
摘要:
xml code <Page x:Class="MyApp.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/ 阅读全文
posted @ 2021-01-02 12:19
MaxBruce
阅读(222)
评论(0)
推荐(0)
摘要:
xml <Page x:Class="MyApp.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/ 阅读全文
posted @ 2021-01-02 12:08
MaxBruce
阅读(96)
评论(0)
推荐(0)
摘要:
虽说输入法不是什么新事物,各种语言版本都有,不过在C#不常见;这就会给人一种误会:C#不能做!其实C#能不能做呢,答案是肯定的——三种方式都行:IMM、TSF以及外挂式。IMM这种就是调windows的一些底层api,不过在新版本的windows中基本上已经不能用了,属于一种过时的操作方式。TSF是 阅读全文
posted @ 2021-01-02 09:31
MaxBruce
阅读(238)
评论(0)
推荐(0)
摘要:
访问image资源 BitmapImage bitmapImage = new BitmapImage(); img.Width = bitmapImage.DecodePixelWidth = 80; //natural px width of image source // don't need 阅读全文
posted @ 2021-01-02 00:26
MaxBruce
阅读(90)
评论(0)
推荐(0)

浙公网安备 33010602011771号