摘要:
C#:{TextBlock A = new TextBlock();A.Text = "111";A.Foreground = new SolidColorBrush(Color.FromArgb(255, 255, 0, 0));Txt.Children.Add(A);A = null;TextBlockB = new TextBlock();B.Text = "222";B.Foreground = new SolidColorBrush(Color.FromArgb(255, 0, 255, 0));Txt.Children.Add(B);B= n 阅读全文
posted @ 2012-04-11 16:23
songtzu
阅读(845)
评论(0)
推荐(0)
摘要:
Winform实现登录窗体中记住密码的功能,如图:代码如下:1、窗体Form1加载: List<UserInfo> item=new List<UserInfo>(); UserInfo userInfo = new UserInfo(); BUserInfo bUserInfo = new BUserInfo(); Dictionary<string, UserInfo> users = new Dictionary<string, UserInfo>(); private void Form1_Load(object sender, Even 阅读全文
posted @ 2012-04-11 15:22
songtzu
阅读(478)
评论(0)
推荐(0)
摘要:
Windows Phone 7 - 页面间传值 分类: Windows Phone 7 2011-01-23 20:42 441人阅读 评论(0) 收藏 举报在页面间导航时传递参数的方式大致有3种,QueryString,全局变量和独立存储。本文只介绍前两种传值方式。一.QueryString方式在页面1中的Button事件处理程序中添加了如下代码:[c-sharp] view plaincopyprivatevoidbtnMain_Click(objectsender,RoutedEventArgse){stringtarget="/SubPage.xaml";targe 阅读全文
posted @ 2012-04-11 11:52
songtzu
阅读(190)
评论(0)
推荐(0)
摘要:
Margin 属性的一些边界情况说明 分类: Silverlight 2009-12-11 18:12 194人阅读 评论(1) 收藏 举报我们来看例子,下面的椭圆显示的将不是完整的一个椭圆。Xaml 文件:<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft. 阅读全文
posted @ 2012-04-11 09:46
songtzu
阅读(222)
评论(0)
推荐(0)

浙公网安备 33010602011771号