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
posted @ 2008-03-08 21:36 包建强 Views(378) Comments(0) Diggs(0) Edit
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
posted @ 2008-03-08 21:02 包建强 Views(744) Comments(0) Diggs(0) Edit
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
posted @ 2008-03-08 20:36 包建强 Views(390) Comments(0) Diggs(0) Edit
每个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
posted @ 2008-03-08 20:18 包建强 Views(892) Comments(0) Diggs(0) Edit
预感到,这次要出书了,因为市面上没有这方面的技术书籍。 我做事向来没有常性,总是半途而废,一本书看二年多的故事也发生过。这个WPF技术一年前我就在研究,可是中途又遇到了WF,SharpDevelop,以及Ajax,一个比一个华丽,带走了我的眼球;后来又用了三个月研究CLR,设计模式,于是时间就到了现在。 一个程序员,28岁是最辉煌的时间。我今年已经26了,写一本书的想法越来越成型。 我本来想写Sh... Read More
posted @ 2008-03-08 20:10 包建强 Views(1216) Comments(0) Diggs(0) Edit
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
posted @ 2008-03-08 19:54 包建强 Views(429) Comments(0) Diggs(0) Edit
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
posted @ 2008-03-08 19:28 包建强 Views(457) Comments(0) Diggs(0) Edit
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
posted @ 2008-03-08 19:22 包建强 Views(492) Comments(0) Diggs(0) Edit
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
posted @ 2008-03-08 19:09 包建强 Views(501) Comments(0) Diggs(0) Edit
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
posted @ 2008-03-08 18:57 包建强 Views(442) Comments(0) Diggs(0) Edit
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
posted @ 2008-03-08 18:56 包建强 Views(582) Comments(0) Diggs(0) Edit
本目录持续更新中,每写完一章都会添加到Blog以及这个目录。估计本系列会在20章左右。 Read More
posted @ 2008-03-08 18:23 包建强 Views(1265) Comments(3) Diggs(1) Edit
EnumerateSubsetOfPrintQueues shows how to use the EnumeratedPrintQueueTypes enumeration to get a subset of available print queues 这个Sample倒也简单,只有一个Main函数,讲的是EnumeratedPrintQueueTypes枚举,通过其两个值L... Read More
posted @ 2008-03-08 18:21 包建强 Views(507) Comments(0) Diggs(0) Edit
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
posted @ 2008-03-08 18:16 包建强 Views(907) Comments(2) Diggs(0) Edit