
WPF
文章平均质量分 80
kissjob
这个作者很懒,什么都没留下…
展开
-
Building User Interfaces by Using Windows® Presentation Foundation
Defining Page LayoutWPF provides an extensible layout model that enables you to develop user interfaces easily. The WPF infrastructure includes layout classes such as DockPanel, Grid, StackPanel, an转载 2010-04-27 15:09:00 · 444 阅读 · 0 评论 -
WPF Apps With The Model-View-ViewModel Design Pattern
<br />Josh Smith关于WPF MVVM的文章。<br />http://msdn.microsoft.com/zh-cn/magazine/dd419663.aspx<br /> Developing the user interface of a professional software application is not easy. It can be a murky blend of data, interaction design, visual design, connectiv转载 2010-06-05 21:29:00 · 1727 阅读 · 0 评论 -
WPF中如何创建多线程,响应速度更快
<br />http://msdn.microsoft.com/zh-cn/magazine/cc163328.aspx<br />http://www.a2zdotnet.com/View.aspx?Id=93<br />两篇文章。<br /> DispatcherObject enforces thread affinity and, therefore, thread safety among WPF objects. WPF uses a Dispatcher object to route mes转载 2010-09-10 09:58:00 · 3105 阅读 · 0 评论 -
Top 10 WPF Performance Tips
<br />Windows Presentation Foundation provides a very confortable way to develop rich user experiences. A drop shadow for example can added by inserting two simple lines of XML. But this simplicity can also mislead us to overuse them. This leads to perform原创 2010-09-15 16:19:00 · 1025 阅读 · 0 评论 -
WPF 里面如何管理Application Resource
<br />1.对于一个Typical WPF application,MSBuild会自动帮我们管理XAML file和Reource.<br />*.csproj file:<br />ApplicationDefinition Include=”App.xaml” /><br /><Compile Include=”App.xaml.cs”><br /><DependentUpon>App.xaml</DependentUpon><br /><SubType>Code</SubType><br /><原创 2010-09-09 10:40:00 · 7425 阅读 · 0 评论 -
From Dr.WPF 的Tabcontrol的MVVM性能问题
<br />(http://groups.google.com/group/wpf-disciples/browse_thread/thread/6f3531a1720252dd?pli=1)<br /> <br />(moving to public group) <br /><br /> This topic is on my todo list for my ItemsControl series. I just <br />need to find some blog time. <br转载 2010-10-25 21:24:00 · 2266 阅读 · 0 评论 -
Flow Document in WPF
<FlowDocument xmlns=’http://schemas.microsoft.com/winfx/2006/xaml/presentation’ xmlns:x=’http://schemas.microsoft.com/winfx/2006/xaml’>原创 2011-08-11 13:49:32 · 5619 阅读 · 0 评论 -
Convert XAML Flow Document to XPS with Style (multiple page, page size, header, margin)
http://blogs.msdn.com/b/fyuan/archive/2007/03/10/convert-xaml-flow-document-to-xps-with-style-multiple-page-page-size-header-margin.aspx转载 2011-08-11 14:06:07 · 1434 阅读 · 0 评论 -
WPF Datagrid Tooltip
常见设置:private ObservableCollection _parameterList;public ObservableCollection ParameterDisplay { get { if (_parameterList == null)原创 2011-10-19 17:10:48 · 4578 阅读 · 0 评论 -
How to automatically select all text on focus in WPF TextBox?
http://stackoverflow.com/questions/660554/how-to-automatically-select-all-text-on-focus-in-wpf-textboxWhy is focus in WPF so tricky? [managing and understanding focus in a WPF application]转载 2011-10-26 16:51:15 · 1573 阅读 · 0 评论 -
Using a Service Locator to Work with MessageBoxes in an MVVM Application
http://www.codeproject.com/KB/WPF/MessageBoxInMVVM.aspx Why might calling MessageBox.Show() from a ViewModel object not work out so well? The two most common issues are custom message boxes and u转载 2010-05-21 10:49:00 · 1084 阅读 · 0 评论 -
在WPF中实现INotifyPropertyChanged接口的辅助snippets
http://www.cnblogs.com/alexou/archive/2009/10/17/1585288.html在Silverlight与WPF的开发过程中,为了使用Binding技术,往往要将自己的实体类实现INotifyPropertyChanged接口。但为每一个Property书写调用接口,并不是省时省力的事情,而且在硬编码属性的NAME,也可能会在以后的重构过程中引入潜在的转载 2010-05-11 13:44:00 · 1326 阅读 · 0 评论 -
Understanding the Visual Tree and Logical Tree in WPF
The Visual TreeThe visual tree represents all of the elements in your UI which render to an output device (typically, the screen). The visual tree is used for many things like rendering, event routi原创 2010-04-27 15:46:00 · 809 阅读 · 0 评论 -
编译:XAML与程序代码结合(转载)
编译:XAML与程序代码结合(Compilation: Mixing XAML with Procedural Code) wpf应用程序完全可以用纯程序代码来实现。而XAML的数据绑定(第九章将介绍)和触发器(第三章将介绍)特性也使得我们能够用纯XAML代码创建简单的应用程序,并且这种松散结构的XAML文件(loose XAML pages)可以被IE来浏览。不过在实际情况翻译 2010-04-27 10:48:00 · 1820 阅读 · 0 评论 -
Dependency Property Overriew
1)The difference between CLR properties and Dependency PropertiesDP支持:Change Notification, Property Value Inheritance, Support for Multiple providers.结论: DPs are more than just simple CLR properti原创 2010-04-28 10:12:00 · 867 阅读 · 0 评论 -
Creating an Application by Using Windows Presentation Foundation
In this lab, you performed the following tasks:Created a stand-alone WPF application.Handled events and commands.Navigated between pages.What are some of the advantages of the WPF renderin转载 2010-04-26 17:06:00 · 434 阅读 · 0 评论 -
Routed Event & Routed Commands
WPF 的采取了路由事件机制,这样事件可以在可视树上层级传递。要知道 XAML 中控件都是由很多其他元素组合而成,比如我们单击了 Button 内部的 TextBlock 元素,Button 依然可以可以接收到该事件并触发 Button.Click。通常情况下,我们只是关心逻辑树上的事件过程。1)创建public abstract class ButtonBase : ContentCon原创 2010-04-28 15:51:00 · 1724 阅读 · 0 评论 -
Customizing Appearance by Using Windows® Presentation Foundation
Sharing Logical Resources in an ApplicationWPF enables you to separate common objects and resources so that you can reuse them across applications or isolate them for localization. You can reference转载 2010-04-29 10:45:00 · 518 阅读 · 0 评论 -
Binding Data to Controls by Using Windows® Presentation Foundation
Overview of Data BindingThe data-binding model in WPF provides a consistent and convenient way for applications to interact with data. Elements that are bound to the data can reflect changes autom转载 2010-04-29 14:18:00 · 538 阅读 · 0 评论 -
Binding Data to Collections by Using Windows® Presentation Foundation
Binding to Collections of ObjectsObservable collection classes implement the INotifyCollectionChanged interface. When you bind a control to an observable collection, the binding engine updates the c原创 2010-05-05 09:43:00 · 446 阅读 · 0 评论 -
Adding 3-D Graphics and Multimedia by Using Windows® Presentation Foundation
2D和3-D的比较:2d Type 3D typeDrawinig Model3DGeometry Geometry3DVisual Visual3DTransform Transform3DCreating 3-D Graphics3-D graphics content in WPF is encapsulated in th原创 2010-05-05 16:45:00 · 506 阅读 · 0 评论 -
Context-Sensitive Help Provider in Wpf
http://blogs.msdn.com/b/mikehillberg/archive/2007/07/26/a-context-sensitive-help-provider-in-wpf.aspxThe main idea is to simply use the built-in ApplicationCommands.Help command. This command is al转载 2011-11-08 15:50:01 · 912 阅读 · 0 评论