10 2012 档案

摘要:IntroductionData bindings is one of the most widely used features of WPF. However, debugging data bindings is not as well known, which I'll attempt to rectify with this article.There are essentially two methods we can use to debug our data bindings, when they do not throw an exception.Using IVal 阅读全文
posted @ 2012-10-31 17:20 sunnyboy 阅读(488) 评论(0) 推荐(0)
摘要:The WPF and Silverlight platforms use late bound data binding resolution for bindings in XAML files. This feature allows a DataContext to be set at run-time and the objects within that DataContext to resolve their property bindings then. This late binding enables cool features like DataTemplates, co 阅读全文
posted @ 2012-10-29 20:44 sunnyboy 阅读(472) 评论(0) 推荐(0)
摘要:Lesson01 Call StackLesson02 Breakpoints in SubExpressionslesson03 BreakPoint HitCountLesson04 Debugging ThreadsLesson05 Using TracePointsLesson06 Watch and Immediate Windows...from:http://blogs.msdn.com/b/brunoterkaly/ 阅读全文
posted @ 2012-10-28 17:47 sunnyboy 阅读(178) 评论(0) 推荐(0)
摘要:关系图中的PresentationFramework、PresentationCore 和 milcore是 WPF 的主要代码部分。在这些组件中,只有一个是非托管组件– milcore。milcore是以非托管代码编写的,目的是实现与DirectX 的紧密集成。WPF中的所有显示是通过 DirectX 引擎完成的,可实现高效的硬件和软件呈现。WPF还要求对内存和执行进行精确控制。milcore中的组合引擎受性能影响关系大,需要放弃CLR 的许多优点来提高性能WPF基本控件集合的类层次结构WPF类层次中主要包括:System.Threading.DispatcherObject、Syst... 阅读全文
posted @ 2012-10-28 17:22 sunnyboy 阅读(400) 评论(0) 推荐(0)
摘要:理想情况下,应用程序应用更高的像素密度显示更多的细节:一个高分辨率的显示器可以显示相同大小的工具栏图标,但使用更多的像素显示更清晰的图形。从而可以保持相同的基本布局但增加了清晰度和细节。WPF根据系统DPI设置进行缩放,而不是根据物理显示设备的DPI进行缩放来实现上述效果。 WPF单位 WPF使用设备无关单位(Device-Independent Unit)进行度量,一个设备无关单位被定义为1/96英寸。例如:使用WPF创建一个尺寸为96×96单位的按钮,如果使用标准的Windows DPI(96dpi)设置,每个设备无关单位实际上对应一个物理像素。 [物理单位尺寸]=[设备无关单位 阅读全文
posted @ 2012-10-26 22:19 sunnyboy 阅读(771) 评论(0) 推荐(0)
摘要:WPF包含一套面向编程人员的高级服务:类似Web布局的模型。与通过特定的坐标将控件固定在具体位置不同,WPF加强了流式布局,根据控件的内容灵活地排列控件。丰富的绘图模型。与逐个像素进行绘制不同,WPF中直接处理图元——基本形状、文本块以及其他图形元素。也可以使用其他新特性:透明控件,放置多层并且具有不同透明度内容的功能,以及本地3D的支持。丰富的文本模型。WPF为Windows应用程序提供了在用户界面的任何位置显示丰富的样式文本的功能。作为首要编程概念的动画。WPF中,不再需要使用计时器来强制窗体重绘自身;反而动画称为WPF框架的固有部分。支持音频和视频媒体。WPF支持播放让你和Windows 阅读全文
posted @ 2012-10-26 21:59 sunnyboy 阅读(374) 评论(0) 推荐(0)
摘要:Microsoft针对User32和GDI/GDI+库的限制,提供一个解决方案:DirectX。DirectX在设计上关注的是速度,为此,Microsoft与显卡供应商紧密合作,以便DirectX提供复杂的纹理映射、渐变等特殊效果以及三维图形所需的硬件加速功能。DirectX现在不仅用于Windows平台上的游戏开发,且成为Windows的基本组成部分,支持所有的现代的显卡。 在WPF中,底层的图形技术不再是GDI/GDI+,而是DirectX。因为对特定服务的依赖,WPF中User32依然被保留了下来。所以WPF不再是一个GDI/GDI+的封装器,而是GDI/GDI+的替代技术,是通过... 阅读全文
posted @ 2012-10-26 21:43 sunnyboy 阅读(1026) 评论(0) 推荐(0)
摘要:Project Description The Microsoft® .NET Micro Framework combines the reliability and efficiency of managed code with the premier development tools of Microsoft Visual Studio® to deliver exceptional productivity for developing embedded applications on small devices. The Microsoft .NET Micro 阅读全文
posted @ 2012-10-18 14:56 sunnyboy 阅读(262) 评论(0) 推荐(0)
摘要:The following example creates a tab control that positions the tabs on the left side. <TabControl TabStripPlacement="Bottom" Margin="0, 0, 0, 10"> <TabItem Name="fontweight" Header="FontWeight"> <TabItem.Content> <TextBlock TextWrapping=&q 阅读全文
posted @ 2012-10-09 08:53 sunnyboy 阅读(205) 评论(0) 推荐(0)