WPF—ControlTemplate

作者:追风剑情 发布于:2019-8-27 14:19 分类:C#

示例 <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/express...

阅读全文>>

标签: C#

评论(0) 浏览(4661)

WPF—模板Template

作者:追风剑情 发布于:2019-8-27 12:16 分类:C#

示例:渐变按钮 <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/ex...

阅读全文>>

标签: C#

评论(0) 浏览(4664)

WPF—定义Style

作者:追风剑情 发布于:2019-8-27 10:41 分类:C#

MainWindow.xaml <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://sche...

阅读全文>>

标签: C#

评论(0) 浏览(3940)

TCP解包与封包

作者:追风剑情 发布于:2019-8-26 16:32 分类:C#

示例 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TestConsole { class Program { static void Main(strin...

阅读全文>>

标签: C#

评论(0) 浏览(5046)

TcpClient

作者:追风剑情 发布于:2019-8-26 11:57 分类:C#

示例:聊天室 服务端代码 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Threading; using System.Net; using System.Net.So...

阅读全文>>

标签: C#

评论(0) 浏览(4651)

WPF—数据双向绑定

作者:追风剑情 发布于:2019-8-23 18:29 分类:C#

MainWindow.xaml <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schema...

阅读全文>>

标签: C#

评论(0) 浏览(5683)

C语言—文件操作

作者:追风剑情 发布于:2019-8-22 15:33 分类:C

示例一:向文件中写入字符串 #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main(void) { FILE *fp; //打开文件,如果文件不存在,则自动创建 if ((fp = fopen("D:\\demo.txt", "at+")) == NULL) { puts("Fail ...

阅读全文>>

标签: C语言

评论(0) 浏览(3581)

WPF—DispatcherTimer

作者:追风剑情 发布于:2019-8-20 21:55 分类:C#

示例 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Window...

阅读全文>>

标签: C#

评论(0) 浏览(3839)

WPF—截屏

作者:追风剑情 发布于:2019-8-20 17:01 分类:C#

示例 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Window...

阅读全文>>

标签: C#

评论(0) 浏览(4554)

Task.Delay()

作者:追风剑情 发布于:2019-8-20 11:00 分类:C#

示例 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Window...

阅读全文>>

标签: C#

评论(0) 浏览(3431)

WPF—延迟执行

作者:追风剑情 发布于:2019-8-19 22:43 分类:C#

示例: 参考https://www.cnblogs.com/qldsrx/archive/2013/02/22/2922682.html using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System....

阅读全文>>

标签: C#

评论(0) 浏览(4904)

WPF—ComboBox

作者:追风剑情 发布于:2019-8-19 12:05 分类:C#

示例 MainWindow.xaml <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="ht...

阅读全文>>

标签: C#

评论(0) 浏览(3229)

WPF—ResourceDictionary

作者:追风剑情 发布于:2019-8-16 17:40 分类:C#

一、新建资源字典文件 Dictionary1.xaml <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/x...

阅读全文>>

标签: C#

评论(0) 浏览(4196)

WPF—INotifyPropertyChanged

作者:追风剑情 发布于:2019-8-16 14:45 分类:C#

示例 XAML <Window x:Class="WpfTest.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xm...

阅读全文>>

标签: C#

评论(0) 浏览(3937)

WPF—PropertyMetadata

作者:追风剑情 发布于:2019-8-14 21:30 分类:C#

示例 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Window...

阅读全文>>

标签: C#

评论(0) 浏览(3521)

C语言—常量和预处理器

作者:追风剑情 发布于:2019-7-21 14:39 分类:C

示例 //Visual Studio中加上这句才可以使用scanf() //否则只能使用scanf_s() #define _CRT_SECURE_NO_WARNINGS //用#define定义的常量称为明示常量 #define PI 3.14 //引入printf()、scanf_s() #include <stdio.h> #includ...

阅读全文>>

标签: C语言

评论(0) 浏览(3927)

C语言—scanf_s()

作者:追风剑情 发布于:2019-7-20 21:36 分类:C

示例 //Visual Studio中加上这句才可以使用scanf() //否则只能使用scanf_s() #define _CRT_SECURE_NO_WARNINGS //引入printf()、scanf_s() #include <stdio.h> #include <stdint.h> //引入bool类型,C99标准新增 #include ...

阅读全文>>

标签: C语言

评论(0) 浏览(11227)

C语言—bool类型

作者:追风剑情 发布于:2019-7-20 15:16 分类:C

示例 #include <stdio.h> #include <stdint.h> //引入bool类型,C99标准新增 #include <stdbool.h> #include <windows.h> //对于不支持C99的编译器可以通过宏定义bool类型 //#define bool int //#define tr...

阅读全文>>

标签: C语言

评论(0) 浏览(4027)

C语言—控制台中显示进度值

作者:追风剑情 发布于:2019-7-19 20:57 分类:C

示例 #include <stdio.h> #include <windows.h> int main(void) { for (int i = 0; i <= 100; i++) { //\r使光标回到行首 printf("load: %d%% \r", i); Sleep(200);//暂停200毫秒 } ...

阅读全文>>

标签: C语言

评论(0) 浏览(3385)

C语言—char类型

作者:追风剑情 发布于:2019-7-18 22:22 分类:C

示例 #include <stdio.h> int main(void) { //美国最常用的是ASCII编码 //其他国家的计算机系统可能使用完全不同的编码 //标准ASCII码的范围是0~127,只需7位二进制数即可表示。 char c = 'A'; char c_ASCII = 65; //'A' //用%c打印字符,用%d打印字符...

阅读全文>>

标签: C语言

评论(0) 浏览(5392)

委托与匿名方法

作者:追风剑情 发布于:2019-7-18 16:14 分类:C#

示例 using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; namespace Test { delegate void Printer(string s); class Prog...

阅读全文>>

标签: C#

评论(0) 浏览(4315)

C语言—转义序列

作者:追风剑情 发布于:2019-7-17 23:07 分类:C

转义序列 转义序列 含义 \a C90新增,警报 (ANSI C),发出蜂鸣声(能否听到或看到警报取决于计算机硬件),对应的ASCII码为'\007'或'\07'或'\7',如果编译器不识别警报字符(\a),可以使用ASCII码来代替。代码示例:...

阅读全文>>

标签: C语言

评论(0) 浏览(4736)

Powered by emlog  蜀ICP备18021003号-1   sitemap

川公网安备 51019002001593号