2007年10月19日

摘要: Page1.xaml Click Me 在这个例子中,在[DockPanel]中添加了一个按钮,并为按钮添加了最简单的事件处理函数HandleClick 其中x:Class="QuickStart_4.Page1指定了对应处理类为QuickStart_4名字空间下的Page1 这个例子还出现了一个.cs的C#源代码文件 Page1.xaml.cs using System;... 阅读全文
posted @ 2007-10-19 17:16 舞舞 阅读(1632) 评论(0) 推荐(0) 编辑
摘要: Page1.xaml Some Text Some text at the bottom of the page. Some More Text Button1 Button2 Some Text Below the Buttons 这个例子的MyApp.xaml文件... 阅读全文
posted @ 2007-10-19 17:08 舞舞 阅读(2652) 评论(1) 推荐(0) 编辑
摘要: MyApp.xaml QuickStart2中的MyApp.xaml文件和QuickStart1一样,没有变化 Page1.xaml --> Button 1 Button 2 Button 3 --> 下面介绍一下[StackPanel]布局,[StackPanel]可以把内部的元素水平或者垂直的放置。 默认情况下是垂直放置的,如图所示: 5... 阅读全文
posted @ 2007-10-19 17:06 舞舞 阅读(1461) 评论(0) 推荐(0) 编辑
摘要: 代码所在位置:WPFSamples"Intro"QuickStart1 这个例子,可以认为是WPF应用的Hello Worldchen 程序 目录下面一共有两个XAML文件MyApp.xaml和Page1.xaml XAML是XML的一个子集,如果熟悉XML或者HTML的人会很容易看懂,不熟悉的也能很容易看懂J MyApp.xaml MyApp.xaml 文件中 使用[App... 阅读全文
posted @ 2007-10-19 17:04 舞舞 阅读(3218) 评论(0) 推荐(0) 编辑
摘要: Windows Vista已经于2007年1月30正式发行零售版本,安装Vista的计算机将会大量出现。在Vista时代,身为编程员,就一定要具备Vista桌面应用开发的能力。而开发Vista桌面应用,最重要的就是要会WPF。本系列文章整理WPF技术的精华,以连载的方式,介绍如何使用WPF编写微软Windows平台。 什么是WPF? WPF是Windows Presentation Founda... 阅读全文
posted @ 2007-10-19 16:57 舞舞 阅读(798) 评论(0) 推荐(1) 编辑

2007年9月29日

摘要: WPF提供了丰富的控件,包括: Editing:CheckBox, ComboBox, PasswordBox, RadioButton, RichTextBox, Slider, TextBox. List Selection: ListBox, ListView, TreeView. User Information:Label, ProgressBar, Popup, ToolTip. A... 阅读全文
posted @ 2007-09-29 12:21 舞舞 阅读(3343) 评论(1) 推荐(1) 编辑

导航