05 2013 档案

摘要:本来想做一个模态提示窗口;结果成这样了黑呼呼的难看死了,找了白天在网上,都没有解决实际上很简单:只要把这个属性设为True就行了AllowsTransparency="True"实际效果图 阅读全文
posted @ 2013-05-30 13:06 幕三少 阅读(1078) 评论(0) 推荐(0) 编辑
摘要:MSDN离线版 阅读全文
posted @ 2013-05-29 13:20 幕三少 阅读(942) 评论(0) 推荐(0) 编辑
摘要:TextBox圆角 阅读全文
posted @ 2013-05-29 12:44 幕三少 阅读(4621) 评论(0) 推荐(0) 编辑
摘要://全屏代码:private void Window_Loaded(object sender, RoutedEventArgs e){ // 设置全屏 this.WindowState = System.Windows.WindowState.Normal; this.WindowStyle = System.Windows.WindowStyle.None; this.ResizeMode = System.Windows.ResizeMode.NoResize; this.Topmost = true; this.Left = 0.0; this... 阅读全文
posted @ 2013-05-29 08:30 幕三少 阅读(23656) 评论(1) 推荐(1) 编辑
摘要:1.构造函数2.静态变量3.增加窗体属性public string name{set;get;}例如: public partial class Window1 : Window { public string name { get; set; } public int age { get; set; } public Window1() { InitializeComponent(); } }传值: private void Button_Click(object sender, Rou... 阅读全文
posted @ 2013-05-27 08:34 幕三少 阅读(4251) 评论(0) 推荐(0) 编辑
摘要:<Window.Background> <ImageBrush ImageSource="../pic/main_backgroud.jpg"/> </Window.Background>先把图片设为把图片设为始终赋值,不然就会报错 阅读全文
posted @ 2013-05-24 08:38 幕三少 阅读(2481) 评论(0) 推荐(1) 编辑
摘要:可以在form_load事件里把this传给UserControl,然后在usercontrol里调用form的各种方法,不过这种做法不太好,耦合性较高。标准做法是用事件传递UserControl里加如下代码:public delegate void FormCloseEventHandler(object sender, EventArgs e);public event FormCloseEventHandler FormClose;private void button_quit_Click(object sender, EventArgs e){if (this.FormClose ! 阅读全文
posted @ 2013-05-20 17:58 幕三少 阅读(2933) 评论(0) 推荐(0) 编辑
摘要:下面有两个页面,转化成xaml界面要求:会设计的美工,懂一点xaml,界面很简单,主要要设计的美观,我们提供简单的功能截图,按照截图做成xaml页,将这两个页面做好,发我邮箱,留上QQ,方便联系,具体价格面议。hbbliyong@163.com 阅读全文
posted @ 2013-05-15 13:09 幕三少 阅读(907) 评论(3) 推荐(0) 编辑
摘要:/// <summary> /// 获取本地IP地址信息 /// </summary> void GetAddressIP() { ///获取本地的IP地址 string AddressIP = string.Empty; foreach (IPAddress _IPAddress in Dns.GetHostEntry(Dns.GetHostName()).AddressList) { if (_IPAddress.... 阅读全文
posted @ 2013-05-10 08:54 幕三少 阅读(4101) 评论(1) 推荐(2) 编辑
摘要:1.首先先建立一个WCF服务应用程序 2.再建立一个宿主程序,这里用控制台,添加服务引用,这里会报错: 点击页面确定,回到添加服务页面 点击箭头有如下内容: 这里告诉我们问题的所在,我们只要重新生成解决方案就行了。 好,重新生成解决方案,ok,问题解决,添加引用服务成功。 3.在控制台程序里启动服务 阅读全文
posted @ 2013-05-07 11:01 幕三少 阅读(2507) 评论(9) 推荐(2) 编辑
摘要:先上代码 public MainWindow() { InitializeComponent(); //跳动的文字 Storyboard perChar = new Storyboard(); _text.TextEffects = new TextEffectCollection(); for (int i = 0; i < _text.Text.Length; i++) { TextEffect effect = n... 阅读全文
posted @ 2013-05-06 14:16 幕三少 阅读(1073) 评论(1) 推荐(0) 编辑

点击右上角即可分享
微信分享提示