WPF
文章平均质量分 75
Eric_Jiang
目前在做.NET开发的相关工作。
展开
-
WPF Cover Flow Tutorial : Part 1
Disclaimer : if you don't know anything about WPF, you should read this excellent tutorial. This should be considered as Part 0.Now, I will describe how to develop a Cover Flow component in WPF.转载 2012-08-29 15:00:13 · 1425 阅读 · 0 评论 -
WPF中图形表示语法详解(Path之Data属性语法)
老规矩,看图说话。先看显示效果:(图1)XAML(代码A):http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" > PathFigureCollection的表示方法-->P转载 2013-02-17 15:01:07 · 1620 阅读 · 0 评论 -
WPF Animations and Performance
I’ve been working on a WPF application that is fully skinned to make everything in the application look custom. WPF makes this really easy…almost too easy. We’ve been adding a lot of animations and转载 2013-02-17 15:02:46 · 725 阅读 · 0 评论 -
Silverlight 4 Binding and StringFormat in XAML
I discovered this amazing feature almost by accident and it has made this one part of my design so much easier that I had to share it.A new feature in Silverlight 4 is the ability to using the Str转载 2013-01-31 10:17:29 · 992 阅读 · 0 评论 -
WPF中的换行符
WPF中UI上和后台代码中的换行符不同。其中:XAML中为 C#代码中为\r\n或者:Environment.NewLine原创 2012-08-28 10:39:04 · 28789 阅读 · 1 评论 -
C#计时利器:Stopwatch的使用
本文演示C#计时器:Stopwatch的使用。 页面代码:<Window x:Class="TestStopwatch.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/原创 2012-08-23 15:28:31 · 5804 阅读 · 0 评论 -
WPF Cover Flow Tutorial : Part 6
After building a standalone component in Part 5, I wanted to improve performance.I've read many blogs about IScrollInfo, ItemsContainerGenerator, Generator, Selector and ItemsControlclasses. I转载 2012-08-29 15:26:58 · 788 阅读 · 0 评论 -
WPF Cover Flow Tutorial : Part 5
After Part 4, we will partly refactor the code to build a custom component.We define a new assembly called FlowComponent where we will move most of the code. First, the c# code will be part of转载 2012-08-29 15:24:45 · 1443 阅读 · 0 评论 -
WPF Cover Flow Tutorial : Part 6 (bis)
I'll start with some Cover refactoring :Class becomes internalI add the ICover interface, mainly for unit testing with a fake class implementing ICover :view plainprint?public inte转载 2012-08-29 15:29:55 · 926 阅读 · 0 评论 -
WPF Cover Flow Tutorial : Part 7 (source)
Before disclosing sources of Part 7, here a few notes.I provide a sample ThumbnailManager, working with an IsolatedStorageFile.view plainprint?public class ThumbnailManager : I转载 2012-08-29 15:33:19 · 790 阅读 · 0 评论 -
WPF Cover Flow Tutorial : Part 7
After some improvements in the Cover class, let's describe how virtualization works.We do not keep all covers in memory. Remember the drawing in Part 2. At a given time, we only keep a few c转载 2012-08-29 15:32:18 · 670 阅读 · 0 评论 -
WPF Cover Flow Tutorial : Part 4
We can improve the HCI from Part 3 with some mouse handling.We add a MouseDown handler method to our Viewport3D :view plainprint?private void OnViewportMouseDown(object sender,转载 2012-08-29 15:22:34 · 925 阅读 · 0 评论 -
WPF Cover Flow Tutorial : Part 3
In Part 2, we miss the animation part of the flow.In the main TestWindow, we save all the covers in a List :view plainprint?private readonly List coverList = new List(); pub转载 2012-08-29 15:16:24 · 756 阅读 · 0 评论 -
WPF Cover Flow Tutorial : Part 2
Since Part 1, we now know how to display a cover in 3D.In order to display a reflection mirror, we add another GeometryModel3D to our Model3DGroup. This new element will be based on these points :转载 2012-08-29 15:14:06 · 1104 阅读 · 0 评论 -
C#中只启动一个程序实例
当我们需要只启动一个C#程序实例的时候,一个比较标准的做法是原创 2014-05-04 11:36:31 · 1862 阅读 · 0 评论