C#
文章平均质量分 79
youqingyike
这个作者很懒,什么都没留下…
展开
-
C# 获取鼠标坐标
功能:C# 获取鼠标坐标界面展示出来环境:vs2010,wpf界面代码: xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Ma原创 2015-07-26 12:01:09 · 1743 阅读 · 0 评论 -
C#,WPF note
WPF中UI上和后台代码中的换行符不同XAML中为 C#代码中为 \r\n 或者: Environment.NewLine转载 2015-11-03 16:16:32 · 486 阅读 · 0 评论 -
C#调C++动态库Dll C++回调C#函数
vs2010 新建项目 / Visual C++ / 类库; 项目名 MyCallbackDll头文件:定义类 成员函数// MyCallbackDll.h#pragma onceusing namespace System;#ifdef DLL#define DLL_API __declspec(dllexport)#else#define DLL_API#en原创 2015-10-14 14:24:54 · 2753 阅读 · 1 评论 -
C# 读写二进制文件
界面:<Window x:Class="BinaryReadWrite.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title转载 2015-10-26 12:25:47 · 567 阅读 · 0 评论 -
C# 泛型
泛型(C# 编程指南) https://msdn.microsoft.com/zh-cn/library/512aeb7t(VS.80).aspx转载 2015-09-15 17:49:16 · 276 阅读 · 0 评论 -
C# 对象销毁和垃圾回收
资源链接:c# -- 对象销毁和垃圾回收 http://www.cnblogs.com/yang_sy/p/3784151.htmlWPF中解决内存泄露的几点提示与解决方法 http://www.cnblogs.com/LastPropose/archive/2011/08/01/2124359.html浅谈C#托管程序中的资源释放问题转载 2015-09-14 15:41:43 · 3930 阅读 · 0 评论 -
WPF DataGrid 绑定 DataTable
DataGrid 绑定 DataTable:界面: xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Heigh原创 2015-08-22 23:52:22 · 21968 阅读 · 0 评论 -
WPF,C# 数据绑定
微软参考:数据绑定概述:https://msdn.microsoft.com/zh-cn/library/ms752347(v=vs.110).aspx数据绑定概述(XAML): https://msdn.microsoft.com/zh-cn/library/windows/apps/xaml/hh758320.aspx绑定源概述: https://msdn.micros转载 2015-08-05 21:04:25 · 544 阅读 · 0 评论 -
C/C++/C# 调用C/C++ Dll
C/C++/C# 调用C/C++ Dll原创 2014-09-13 13:24:34 · 672 阅读 · 0 评论 -
C# Unicode 编码转换
/// /// /// 作用:将字符串内容转化为16进制数据编码,其逆过程是Decode /// 参数说明: /// strEncode 需要转化的原始字符串 /// 转换的过程是直接把字符转换成Unicode字符,比如数字"3"-->0033,汉字"我"-->U+6211 /// 函数转载 2015-08-07 14:21:45 · 995 阅读 · 0 评论 -
WPF C# Button 加载图片,背景图片
vs2010 界面: xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" W原创 2015-08-04 14:27:56 · 10288 阅读 · 0 评论 -
telerik:RadGridView 数据绑定
界面: xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="450" Width="500" Wi转载 2015-08-08 22:14:01 · 4543 阅读 · 0 评论 -
bug记录
1. vs2010 fatal error C1189: #error : This file requires _WIN32_WINNT to be #defined at least to 0x0403. Value 0x0501 or higher is recommended.在工程的stdafx.h中添加(如有类似语句,需注释掉)#ifndef WINVER // Allo转载 2015-07-06 13:16:20 · 1733 阅读 · 0 评论 -
C# 调用C/C++ Dll(参数含char*指针,返回char*指针)
动态库://MyPointDll.hextern"C" _declspec(dllexport) char* strcpyTest(char* dest,char* sour);原创 2015-08-16 12:12:35 · 22014 阅读 · 0 评论 -
图片点击事件
图片点击事件方法1:界面: xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350"转载 2015-07-27 09:33:37 · 3663 阅读 · 0 评论 -
无标题窗口拖动
功能:拖动无标题窗口环境:vs2010,wpf前台代码: xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow原创 2015-07-26 13:59:27 · 577 阅读 · 0 评论 -
WPF ProgressBar 绑定
界面<Window x:Class="ProgressBarBindingTest.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" ...原创 2018-07-27 15:48:34 · 2717 阅读 · 0 评论