上一页 1 ··· 41 42 43 44 45 46 47 48 49 ··· 60 下一页
第四章数据绑定 任何应用程序都存在允许用户操作的数据,无论其来自对象,还是不同等级的或相关的资源。不管数据来自何处或者无论以什么格式,你可以对这些数据做很多事情,包括显示,转换,排序,过滤,关联,时常还会编辑它们。如果没有一种数据绑定的引擎,你将要手动地在UI和数据之间进行大批量的往返转换。适当的使用数据绑定,你只需要少量优雅的代码就可以获取更多的绑定样式——这样做通常是值得的。 4.1不使用... Read More
posted @ 2008-03-17 13:05 包建强 Views(1138) Comments(0) Diggs(1)
第6章资源(Resource) WPF为我们架构一个应用程序的用户界面提供了相当大的弹性。但是,功能越强大,需要注意的就越多。我们必须避免使用户迷失在不协调而且过分装饰的前端。一个应用程序的用户界面应该是内在协调的,而且,应用程序之间不光区别在视觉化上,更多的是,对于用户所选择的操作系统的视觉主题,在感观上都是一致的。 在上章,我们已经看到样式和模板是如何允许我们控制应用程序的外观。这些都是基于W... Read More
posted @ 2008-03-14 12:14 包建强 Views(1278) Comments(0) Diggs(0)
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(398) Comments(0) Diggs(0)
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(766) Comments(0) Diggs(0)
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(410) Comments(0) Diggs(0)
每个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(908) Comments(0) Diggs(0)
预感到,这次要出书了,因为市面上没有这方面的技术书籍。 我做事向来没有常性,总是半途而废,一本书看二年多的故事也发生过。这个WPF技术一年前我就在研究,可是中途又遇到了WF,SharpDevelop,以及Ajax,一个比一个华丽,带走了我的眼球;后来又用了三个月研究CLR,设计模式,于是时间就到了现在。 一个程序员,28岁是最辉煌的时间。我今年已经26了,写一本书的想法越来越成型。 我本来想写Sh... Read More
posted @ 2008-03-08 20:10 包建强 Views(1245) Comments(0) Diggs(0)
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(451) Comments(0) Diggs(0)
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(470) Comments(0) Diggs(0)
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(511) Comments(0) Diggs(0)
上一页 1 ··· 41 42 43 44 45 46 47 48 49 ··· 60 下一页