上一页 1 ··· 6 7 8 9 10 11 12 下一页
摘要: 1,Expander 2、Decoration(修饰控件) 常用的修饰控件有Border, Viewbox, and BulletDecorator等 border viewBox BulletDecorator 运行结果如下 阅读全文
posted @ 2016-04-25 11:25 beautifulday 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 首先看一下根据个人理解画的一个工作原理图 一、首先看一下我这个简单的项目结构 二、下面来详细贴出代码,最重要的是Bootstrapper类 using System;using System.Collections.Generic;using System.Linq;using System.Tex 阅读全文
posted @ 2016-04-19 19:25 beautifulday 阅读(602) 评论(0) 推荐(0) 编辑
摘要: 传统事件publisher和listener是直接相连的,这样会对垃圾回收带来一些问题,例如listener已经不引用任何对象但它仍然被publisher引用 垃圾回收器就不能回收listener所占用的内存以及publisher仍然引用该listener向其触发事件。 而弱事件就解决了这个问题 W 阅读全文
posted @ 2016-04-15 15:09 beautifulday 阅读(1109) 评论(0) 推荐(0) 编辑
摘要: wpf使用依赖属性完成数据绑定、动画、属性变更通知、样式化等。对于数据绑定。绑定到.NET属性源上的UI元素的属性必须是依赖属性 .net的一般属性定义如下 private int val; public int Value { get { return val; } set { val = val 阅读全文
posted @ 2016-03-20 21:37 beautifulday 阅读(690) 评论(0) 推荐(0) 编辑
摘要: xmlReader的名称空间using System.Xml; xmlReader是通过流的方式来读取xml文件的内容 <?xml version="1.0" encoding="utf-8" ?><!--<!-–This file represents a fragment of a book s 阅读全文
posted @ 2016-03-16 15:58 beautifulday 阅读(2489) 评论(0) 推荐(0) 编辑
摘要: http://www.codeproject.com/Articles/140620/WPF-Tutorial-Dependency-Property 阅读全文
posted @ 2016-03-01 16:37 beautifulday 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-02-29 12:25 beautifulday 阅读(1049) 评论(0) 推荐(0) 编辑
摘要: 声明数组int[] myArray;初始化数组myArray = new int[4];数组是引用类型当初始化完毕后,将在托管堆上分配内存空间,其结构图如下声明和初始化放在一起int[] myArray = new int[4]int[] myArray = new int[4] {4, 7, 11... 阅读全文
posted @ 2016-01-11 10:54 beautifulday 阅读(2502) 评论(0) 推荐(0) 编辑
摘要: The ToString() MethodFor example:int i = 50;string str = i.ToString(); // returns "50"Here’s another example:enum Colors {Red, Orange, Yellow};// late... 阅读全文
posted @ 2016-01-08 11:26 beautifulday 阅读(547) 评论(0) 推荐(0) 编辑
摘要: using System.Security.AccessControl; //设置myFloder文件夹的iis访问权限 string userAccount = @"IIS_IUSRS"; string filePath = @"C:\inetpub\myFloder"; DirectorySec 阅读全文
posted @ 2016-01-04 17:12 beautifulday 阅读(379) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 下一页