
silverlight
soief
热爱公益事业,喜欢运动。
展开
-
The issue of ApplyTemplate
The issue is that the ApplyTemplate method is not called inthe order you are expecting. This appears to be a known issueand there is a work-around. If you manually call ApplyTemplate() in转载 2009-02-25 09:37:00 · 844 阅读 · 0 评论 -
Application.Current.RootVisual是什么
Application.Current.RootVisual这个属性可以在App.xaml.cs里面找到private void Application_Startup(object sender, StartupEventArgs e){ this.RootVisual = new Page();} this.RootVisual就是Application.Cur原创 2009-02-25 13:39:00 · 2920 阅读 · 0 评论 -
LinearGradientBrush的使用
LinearGradientBrush是倾斜的画笔 通过GradientStop来设置有几个颜色点,GradientStop有Color Offset两个属性,color 是设置这个点的颜色的,Offset是设置位移的。这个位移是相对的,通过LinearGradientBrush 的StartPoint, EndPoint来设置总的长度。例如原创 2009-02-24 14:46:00 · 2754 阅读 · 1 评论 -
Silverlight 的控件生命周期
微软的 Dave Relyea 在 blog 中解释了 Silverlight 中控件的生命周期,以及一些可以 override 的基类方法发生的时机。http://blogs.msdn.com/devdave/archive/2008/10/11/control-lifecycle.aspx ActionControl instantiated in XAML转载 2009-02-24 22:46:00 · 1194 阅读 · 0 评论 -
怎么创建silverlight custom control
这篇文章主要是介绍一下简单的Custom Control 的创建方法。 工具是vs20081. 首先建立一个siverlight应用程序,我这里暂时命名为CustomControl2. 然后再建立一个Siverlight Class Library, 在这个Library工程里面建一个名字为themes的文件夹,在这个文件夹里面建立一个名字为generic.x原创 2009-02-26 11:56:00 · 1802 阅读 · 3 评论 -
Silverlight custom control属性的配置
如果你的控件是继承于ContentControl的,那么这个控件就会有Content属性。我就以这个属性为例介绍一下如何实现属性的配置。 类文件如下: public class LiScrollViewer : ContentControl 父类是ContentControl. 这样的话我们就可以直接用这个父类的Content属性了。在generic.xaml文件中定义这个原创 2009-02-27 10:56:00 · 992 阅读 · 0 评论 -
Data Binding Overview
Windows Presentation FoundationData Binding OverviewUpdated: July 2008Windows Presentation Foundation (WPF) data binding provides a simple and consistent way for applications to转载 2009-02-28 10:04:00 · 1623 阅读 · 0 评论 -
YCbCr色彩格式
正如几何上用坐标空间来描述坐标集合, 色彩空间用数学方式来描述颜色集合。常见的3 个基本色彩模型是 RGB , CMYK和YUV。 YCbCr 则是在世界数字组织视频标准研制过程中作为ITU - R BT1601建议的一部分, 其实是YUV经过缩放和偏移的翻版。其中Y与YUV 中的Y含义一致, Cb , Cr 同样都指色彩,只是在表示方法上不同而已。在YUV 家族中, Y转载 2009-05-07 12:16:00 · 2310 阅读 · 0 评论