摘要:XAML代码:<UserControl x:Class="SilverlightApplication50.EventMouse" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc=
阅读全文
摘要:介绍Silverlight 2.0 其它:RenderTransform - 呈现位置的转换(System.Windows.Media.Transform类型)TranslateTransform - 平移转换RotateTransform - 旋转转换(顺时针)ScaleTransform - 缩放转换SkewTransform - 扭曲转换MatrixTransform - 仿射矩阵变换TransformGroup - 多个 Transform 组成的复合转换RenderTransformOrigin - 位置转换的中心点Clip - 容器的剪辑区域(System.Windows.Medi
阅读全文
摘要:TextBlock.xaml<UserControl x:Class="Silverlight20.Control.TextBlock" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <StackPanel HorizontalAlignment="Left"> <!-- Text - Te
阅读全文
摘要:Calendar.xaml<!--Calendar控件的命名空间和其他控件一样,都是在System.Windows.Controls下但是其是在System.Windows.Controls.dll程序集中定义的所以要引入相应的xml命名空间--><UserControl x:Class="Silverlight20.Control.Calendar" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schema
阅读全文
摘要:动态向Canvas添加布局对象和元素前台代码:<UserControl x:Class="SilverlightApplication45.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008&q
阅读全文