WPF: 定制datagrid, 让他更漂亮些 & WPF其他资料整理
?
?
?
在 Creating custom glass buttons with XAML in WPF这篇博客中,? 作者给出了一个使用wpf制作玻璃效果按钮的示例.
?
?
?
?
?
在WPF C# InputBox @stackoverflow这个连接中,? 给出了一个弹出菜单的效果, 效果图如下.
当点击按钮时, 背景变灰, 然后橙色的自己绘制的对话框弹出, 提示用户进行输入.
这个连接中也有这个效果对应的source和xaml文件.
?
?
?
?
其他资源
?
?这次调查中, 还发现了下面这些连接比较有用.
Windows Presentation Foundation@MSDN
Control Styles and Templates @msdn
通过浏览这个连接的内容, 可以得到这个连接地址Styling with ControlTemplates Sample.
这个sample中有各种控件的示例.
?
ControlTemplate Class @MSDN
Customizing the Appearance of an Existing Control by Creating a ControlTemplate
?
WPF DataGrid Practical Examples @codeproject
在这个连接里面, 有一个完整的示例展示如何将DataGrid和Database绑定到一起.
?
http://www.wpftutorial.net/
这个连接里面有不少关于wfp的文档
关于DataGird的介绍在这里: WPF DataGrid Control
?
?
WPF模式与框架
?
除了在界面开发方面, WPF具有自己的优势以外,
目前关于如何组织WPF UI和他们背后的业务模型之间, 也存在一些模式和最佳实践.
可以参考下面这几个链接:
WPF Apps With The Model-View-ViewModel Design Pattern? @MSDN
Prism 4.0 For Visual Studio 2010, .NET Framework 4.0, WPF & Silverlight 4 @Microsoft patterns & practices
WPF Application Framework (WAF)?? @codeplex
?
?
?