08 2013 档案

摘要:1.Canvas面板using System;using System.Windows;using System.Windows.Controls;using System.Windows.Media;using System.Windows.Input;using System.Windows.Shapes;namespace LY.PaintTheButton{ public class PaintTheButton:Window { [STAThread] public static void Main() { ... 阅读全文
posted @ 2013-08-26 19:24 小p 阅读(417) 评论(0) 推荐(0)
摘要:1.DockPanel面板using System;using System.Windows;using System.Windows.Controls;using System.Windows.Input;using System.Windows.Media;namespace LY.DockAroundTheBlock{ class DockAroundTheBlock:Window { [STAThread] public static void Main() { new Application().Run(ne... 阅读全文
posted @ 2013-08-25 20:52 小p 阅读(535) 评论(0) 推荐(0)
摘要:1.StackPanel面板using System;using System.Windows;using System.Windows.Input;using System.Windows.Media;using System.Windows.Controls;namespace LY.StactTheButtons{ public class StackTheButton:Window { [STAThread] public static void Main() { new Application().Run(n... 阅读全文
posted @ 2013-08-24 22:36 小p 阅读(410) 评论(0) 推荐(0)
摘要:1.Button类using System;using System.Windows;using System.Windows.Media;using System.Windows.Input;using System.Windows.Controls;namespace LY.ClickTheButton{ public class ClickTheButton:Window { [STAThread] public static void Main() { Application app = new Applica... 阅读全文
posted @ 2013-08-19 00:35 小p 阅读(585) 评论(1) 推荐(0)
摘要:1.Content属性及字体相关的属性using System;using System.Windows;using System.Windows.Media;namespace LY.DisplaySomeText{ public class DisplaySomeText:Window { Brush brush = new LinearGradientBrush(Colors.Black, Colors.White, new Point(0, 0), new Point(1, 1)); [STAThread] public stati... 阅读全文
posted @ 2013-08-18 14:46 小p 阅读(329) 评论(1) 推荐(0)
摘要:1.Color结构using System;using System.Windows;using System.Windows.Input;using System.Windows.Media;namespace LY.VaryTheBackGround{ public class VaryTheBackGround : Window { SolidColorBrush brush = new SolidColorBrush(Colors.Beige); [STAThread] public static void Main() ... 阅读全文
posted @ 2013-08-17 00:06 小p 阅读(494) 评论(1) 推荐(0)
摘要:1.空白WPF项目的创建: 1)新建项目:在VS2010中,文件-新建-项目-visual c#-windows-空项目; 2)添加引用:PresentationFramework,PresentationCore,WindowsBase,System,System.Xaml,共5个。书中是4个,这是因为早期WindowsBase中的一些类后来放到了System.Xaml里。 3)添加文件:在项目中添加“新建项”,选择“代码文件"。2.SayHello程序 using System;using System.Windows;namespace LY.SayHello{ class . 阅读全文
posted @ 2013-08-13 00:28 小p 阅读(758) 评论(0) 推荐(0)