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() { ...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要: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() ...
阅读全文
摘要: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 .
阅读全文

浙公网安备 33010602011771号