代码改变世界

Built-in command libraries in WPF

2011-12-29 20:16 by 一一九九, 217 阅读, 0 推荐, 收藏, 编辑
摘要:Aside from supporting the overall concept of commands, WPF has five built-in libraries of commands. ApplicationCommands this library contains commonly used commands such as Cut, Copy, paste, new,... 阅读全文

Properties Sepcific to RoutedEventArgs

2011-12-29 14:38 by 一一九九, 292 阅读, 0 推荐, 收藏, 编辑
摘要:Source: the object that raised the event. this is a property you will generally be interested in . it’s useful to note that with routed events this is likely to be different from the sender. Or... 阅读全文

What makes data binding work?

2011-12-25 23:34 by 一一九九, 188 阅读, 0 推荐, 收藏, 编辑
摘要:The Wpf property system allows properties to paritcipate in data binding, styling, animation, and server other exciting features. A property that is registerd with the wpf property system is called a ... 阅读全文

The property 'Content' is set more than once.

2011-12-25 10:49 by 一一九九, 765 阅读, 0 推荐, 收藏, 编辑
摘要:当采用如下的一段代码的时候,会出现报错“ Error 1 The property 'Content' is set more than once. ” 1: <Label Content="First Name" Target="{Binding ElementName=firstname}" Grid.Column="0" Grid.Row="0... 阅读全文

Building up a Layout–WPF Study

2011-12-24 16:02 by 一一九九, 174 阅读, 0 推荐, 收藏, 编辑
摘要:Following is a list of recommendations to help you in your interface design: begin by using the simplest and most explicti Panel. Do not be afraid to combine multiple panels to achieve the effe... 阅读全文

Tutorial:Function Sepcification-Define The Application

2011-12-06 17:23 by 一一九九, 196 阅读, 0 推荐, 收藏, 编辑
摘要:The information gathering process is the critical step of any successful functional spec. Just as important as the finished document is the thinking process you have to force yourself through in order... 阅读全文

Tutorial: Functional Specification—Introduction

2011-12-06 16:04 by 一一九九, 419 阅读, 0 推荐, 收藏, 编辑
摘要:From: http://www.mojofat.com/tutorial/ what is A Functional Sepcification? Functional specifications (functional specs), in the end, are the blueprint for how you want a particular web pr... 阅读全文

[转][Java 理论与实践: 垃圾收集简史]

2011-09-19 07:13 by 一一九九, 183 阅读, 0 推荐, 收藏, 编辑
摘要:From:http://www.ibm.com/developerworks/cn/java/j-jtp10283/ Java 理论与实践: 垃圾收集简史 垃圾收集是如何工作的? Brian Goetz (brian@quiotix.com), 首席顾问, Quiotix Corp 简介: Java 语言可能是使用最广泛的依赖于垃圾收集的编程语言,但是它并不是第一个。垃圾收集已经成为了包括... 阅读全文

[转]【内存垃圾收集算法的通俗解释】

2011-09-19 07:12 by 一一九九, 222 阅读, 0 推荐, 收藏, 编辑
摘要:From:http://www.bsdlover.cn/html/76/n-1776.html 引用计数( Reference Counting )算法 1960 年以前,人们为胚胎中的 Lisp 语言设计垃圾收集机制时,第一个想到的算法是引用计数算法。拿餐巾纸的例子来说,这种算法的原理大致可以描述为: 午餐时,为了把脑子里突然跳出来的设计灵感记下来,我从餐巾纸袋中抽出一张餐巾纸,打... 阅读全文

.net垃圾回收学习[Best Practices No 5: Detecting .NET application memory leaks][翻译&&学习]]

2011-09-18 13:14 by 一一九九, 399 阅读, 0 推荐, 收藏, 编辑
摘要:From:http://www.c-sharpcorner.com/UploadFile/shivprasadk/BestPractices509292009045327AM/BestPractices5.aspx Avoid task manager to detect memory leak 首先需要确认是不是存在内存泄漏。很多程序员使用任务管理器进行内存泄漏的确认,但是内存管理器... 阅读全文

.net 垃圾回收学习[http://www.codeproject.com/KB/dotnet/idisposable.aspx][翻译&&学习][2]

2011-09-18 12:18 by 一一九九, 252 阅读, 0 推荐, 收藏, 编辑
摘要:From :http://www.codeproject.com/KB/dotnet/idisposable.aspx 注: 非一字一句的翻译,纯属过程中的记录和学习。 A Brief Hiatus - Where We Are "But, of course, this is all far too messy. It runs counter to the goals for ou... 阅读全文

.net 垃圾回收学习[http://www.codeproject.com/KB/dotnet/idisposable.aspx][翻译&&学习][2]

2011-09-18 12:00 by 一一九九, 284 阅读, 0 推荐, 收藏, 编辑
摘要:From :http://www.codeproject.com/KB/dotnet/idisposable.aspx 注: 非一字一句的翻译,纯属过程中的记录和学习。 A Brief Hiatus - Where We Are "But, of course, this is all far too messy. It runs counter to the goals for ou... 阅读全文

.net 垃圾回收学习[http://www.codeproject.com/KB/dotnet/idisposable.aspx][翻译&&学习][2]

2011-09-18 12:00 by 一一九九, 168 阅读, 0 推荐, 收藏, 编辑
摘要:From :http://www.codeproject.com/KB/dotnet/idisposable.aspx 注: 非一字一句的翻译,纯属过程中的记录和学习。 A Brief Hiatus - Where We Are "But, of course, this is all far too messy. It runs counter to the goals for ou... 阅读全文

.net垃圾回收学习【IDisposable: What Your Mother Never Told You About Resource Deallocation】[翻译&学习]

2011-09-18 10:12 by 一一九九, 676 阅读, 0 推荐, 收藏, 编辑
摘要:From: http://www.codeproject.com/KB/dotnet/idisposable.aspx 注: 非一字一句的翻译。纯属记录个人过程中的一些理解。 The Boring Stuff - IDisposable Gone Awry 这篇文章分为两个部分: 第一部分是由于IDisposable自身带来的一些问题,第二部分是写IDispoable Code的最佳实践。 ... 阅读全文

asp.mvc 随记

2011-09-17 20:03 by 一一九九, 228 阅读, 0 推荐, 收藏, 编辑
摘要:from: http://www.asp.net/mvc/tutorials MVC stands for model-view-controller. MVC is a pattern for developing applications that are well architected and easy to maintain. MVC-based applications conta... 阅读全文

数据库连接错误: The provider did not return a ProviderManifestToken string.

2011-09-15 19:53 by 一一九九, 4076 阅读, 0 推荐, 收藏, 编辑
摘要:这两天在学习Asp.mvc, 学习到了Model这一章节了,使用EF进行数据库连接操作,仿照例子,修改了一下字符串,然后修改在Web.config文件中,大体如下: <connectionStrings> <add name="ApplicationServices" connectionString="data source=.;Integrated S... 阅读全文

Finalize 和Dispose方式的理解

2011-09-12 22:05 by 一一九九, 709 阅读, 0 推荐, 收藏, 编辑
摘要:由于.net中存在托管资源和非托管资源的释放,两种不同类型的资源释放的方式是不一样的,而由于.net释放非托管资源的时候,如果是在析构函数中释放的话,会导致GC的双倍访问,资源的生命周期会延长,系统内存占用也会增多,而如果用户手动的释放非托管资源的时候,此时GC不需要在访问析构函数,也就不需要将对象的生命周期提升了,此时,出现的一个问题是:存在两种不同的释放资源的方式,如果在这两种方式中... 阅读全文

.net垃圾回收学习【NET Best Practice No: 3:- Using performance counters to gather performance data】【翻译&&学习】

2011-09-12 11:03 by 一一九九, 290 阅读, 0 推荐, 收藏, 编辑
摘要:From:http://www.c-sharpcorner.com/UploadFile/shivprasadk/3253453409022009023755AM/32534534.aspx 注: 非一字一句的翻译,纯粹记录和学习。 如果你要描述一个程序的性能,需要对程序的性能有比较精准的描述:“with 2 gb ram, xyz processor and 2000 customer re... 阅读全文

.net垃圾回收学习【.NET Best Practice No: 2:- Improve garbage collector performance using finalize/dispose pattern】【翻译&&学习】

2011-09-11 13:40 by 一一九九, 355 阅读, 0 推荐, 收藏, 编辑
摘要:From: http://www.c-sharpcorner.com/UploadFile/shivprasadk/657567608232009132704PM/6575676.aspx 注: 非一字不漏的翻译,主要是记录过程中的学习,方便加深理解。 在析构函数中进行非托管资源的清理工作会对性能和内存消耗造成较大的影响,在析构函数中编写清理代码会导致GC双倍的访问,自然导致性能的影响。 首... 阅读全文

.net垃圾回收学习【C# 中的Stack和Heap】【翻译&&学习】

2011-09-09 20:54 by 一一九九, 343 阅读, 0 推荐, 收藏, 编辑
摘要:From:http://www.c-sharpcorner.com/UploadFile/rmcochran/csharp_memory_401282006141834PM/csharp_memory_4.aspx Graphing 垃圾回收器如果需要进行垃圾回收的操作,就需要知道哪些是垃圾,而我们这里假定那些不再被使用的对象是垃圾,不再被使用的对象是指那些没有被其他对象引用的对象。(递归的)... 阅读全文