Gavin.han

致力于移动开发 技术改变生活

导航

上一页 1 ··· 9 10 11 12 13 14 下一页

2012年10月13日

摘要: <TextBoxText="请输入手机号"InputScope="TelephoneNumber"/> 阅读全文

posted @ 2012-10-13 08:42 gavin.han 阅读(226) 评论(0) 推荐(0) 编辑

摘要: publicvoidUpdate(stringstr){try{userDB=newUserDataContext(UserDataContext.DBConnectionString);vartables=userDB.UserTables.SingleOrDefault<UserTable>(x=>x.ID==1);if(tables!=null){tables.Name=str;}userDB.SubmitChanges();MessageBox.Show("修改姓名成功!");}catch{MessageBox.Show("数据库中表数据 阅读全文

posted @ 2012-10-13 08:41 gavin.han 阅读(161) 评论(0) 推荐(0) 编辑

摘要: 对于稍复杂的数据的存储的json数据方法1:单独获取,有点麻烦方法2:全部获取到,使用方便 阅读全文

posted @ 2012-10-13 08:40 gavin.han 阅读(177) 评论(0) 推荐(0) 编辑

摘要: 阅读全文

posted @ 2012-10-13 08:32 gavin.han 阅读(191) 评论(0) 推荐(0) 编辑

摘要: 方法1:MessageBox.Show("详细信息" + System.Environment.NewLine + "课程");方法2:MessageBox.Show("详细信息\r课程"); 阅读全文

posted @ 2012-10-13 08:31 gavin.han 阅读(1288) 评论(0) 推荐(0) 编辑

摘要: 完成和取消按钮。这两个按钮的图标有默认的路径和名称,但程序中不会自动添加,需要我们手动来做:在项目中添加目录,名称为:Toolkit.Content找两张图标的图片,分别命名为:ApplicationBar.Cancel.png和ApplicationBar.Check.png,设置图片属性中的Bulid Action和Copy to Output Directory标签即可 阅读全文

posted @ 2012-10-13 08:29 gavin.han 阅读(292) 评论(0) 推荐(0) 编辑

摘要: 1.在<phone:PhoneApplicationPage中写入BackKeyPress="PhoneApplicationPage_BackKeyPress"事件. 该事件在用户按下back实体键后触发.本身silverlight 没有程序退出机制,所以我们采用了龌龊抛异常的方法已达到退出应用程序目的2.实现这个PhoneApplicationPage_BackKeyPress事件 //退出应用 private void PhoneApplicationPage_BackKeyPress(object sender, System.ComponentModel.C 阅读全文

posted @ 2012-10-13 08:26 gavin.han 阅读(202) 评论(0) 推荐(0) 编辑

摘要: 两种常见错误导致以上错误!!!并且很难发现错误地方。1.导航代码 有误2.xaml页面有错误。如:margin 逗号写成了点号 阅读全文

posted @ 2012-10-13 08:24 gavin.han 阅读(131) 评论(0) 推荐(0) 编辑

摘要: /// <summary> /// 发送短信Task /// </summary> /// <param name="number"></param> /// <param name="smsBody"></param> public static void SmsTask(string smsBody) { SmsComposeTask smsComseTask = new SmsComposeTask() { Body... 阅读全文

posted @ 2012-10-13 08:21 gavin.han 阅读(207) 评论(0) 推荐(0) 编辑

2012年10月12日

摘要: 1.贴图为快:2.核心知识(1)声明代码:@property (strong, nonatomic) IBOutlet UILabel *userOutput;@property (strong, nonatomic) IBOutlet UITextField *userInput;- (IBAction)setOutput:(id)sender;实现代码:@synthesize userOutput;@synthesize userInput;void)viewDidUnload{ [self setUserOutput:nil];//重要知识点,释放内存!!! [self ... 阅读全文

posted @ 2012-10-12 23:14 gavin.han 阅读(286) 评论(0) 推荐(1) 编辑

上一页 1 ··· 9 10 11 12 13 14 下一页