GridComplex This sample shows how to create a complex Grid by using Extensible Application Markup Language (XAML). The output of the sample is a calendar. 本例介绍基于Grid设计的一个月历。其中,使用到了Grid.Resour... Read More
Guid This sample shows how to create and use an instance of the Grid element in Windows Presentation Foundation. WPF中Guid的使用方法 1)纯xaml ... Read More
WordGame2 This sample is the second of two related samples, with accompanying walkthroughs. They are intended to be covered in order. The first, Wordgame, introduces you to Windows Presentation Fo... Read More
每个Solution都会自动创建一个MyApp.xaml,在Application标签中,指定启动文件Page1.xaml。 有两种情况: 1.如果Page1.xaml指定了x:Class,则StartupUri="Page1.xaml" 2.如果Page1.xaml没有指定x:Class,则Startup="On_Startup",在后台的代码中: private voi... Read More
预感到,这次要出书了,因为市面上没有这方面的技术书籍。 我做事向来没有常性,总是半途而废,一本书看二年多的故事也发生过。这个WPF技术一年前我就在研究,可是中途又遇到了WF,SharpDevelop,以及Ajax,一个比一个华丽,带走了我的眼球;后来又用了三个月研究CLR,设计模式,于是时间就到了现在。 一个程序员,28岁是最辉煌的时间。我今年已经26了,写一本书的想法越来越成型。 我本来想写Sh... Read More
WordGame1 This sample is the first of two related samples, with accompanying walkthroughs. It introduces you to Windows Presentation Foundation programming by implementing a basic version of the w... Read More
QuickStart5 This sample shows you how to use Hyperlink elements to create a simple two-page Extensible Application Markup Language (XAML) application. 该实例使用Hyperlink控件实现了两个页面的跳转,请在xaml中注意Hyper... Read More
QuickStart4 This sample shows you how to implement a button with an associated Click event handler. 本例介绍如何在xaml的button上绑定后台的事件 xaml代码: Click Me 后台代码: namespace Qu... Read More
QuickStart3 This sample shows you how to construct a complex Extensible Application Markup Language (XAML) layout by nesting TextBlock, Button, and DockPanels within a parent DockPanel. 这个例子用来... Read More
QuickStart2 This sample shows how to use a DockPanel element to arrange three Button in a vertical stack. 区别于上一个Sample,这个例子在StackPanel里,居左对齐,垂直排列3个按钮。 Button 1 Button 2 Button ... Read More
QuickStart1 This sample shows you how to create an Extensible Application Markup Language (XAML) page that displays "Hello World." 一个用xaml做出的WPF,"Hello world!"。 注意,在StackPanel中使用TextBlock显... Read More
本目录持续更新中,每写完一章都会添加到Blog以及这个目录。估计本系列会在20章左右。 Read More
EnumerateSubsetOfPrintQueues shows how to use the EnumeratedPrintQueueTypes enumeration to get a subset of available print queues 这个Sample倒也简单,只有一个Main函数,讲的是EnumeratedPrintQueueTypes枚举,通过其两个值L... Read More
PrintDialog This sample illustrates how to create an instance of a simple PrintDialog and then display it. The sample uses both Extensible Application Markup Language (XAML) and procedural code. ... Read More