2013年6月18日

c# 对数据库的操作

摘要: 1.首先需要引用using System.Data.SqlClient;2.创建连接SqlConnection connection = new SqlConnection();connection.ConnectionString = "Data Source= IP地址; Initial Catalog = 数据库名称; User ID = 数据库用户名; Password=密码";connection.Open(); //开启连接3.执行操作数据库表名称:Test 参数:ID(主键),Name,Age //添加数据private void button1_Click( 阅读全文

posted @ 2013-06-18 13:35 Hai_阔天空 阅读(282) 评论(0) 推荐(0)

Windows Phone 上拉刷新、下拉刷新

摘要: ScrollViewer scrollViewer = new ScrollViewer();// 构造函数public MainPage(){ InitializeComponent(); for (int x = 0; x <= 30; x++) { listBox1.Items.Add(x); }}private double actuableOffset, validStartOffset;private bool mplStarted;protected override void OnManipulationStarted(Manipulati... 阅读全文

posted @ 2013-06-18 09:36 Hai_阔天空 阅读(257) 评论(0) 推荐(0)

Windows Phone 有关独立存储(一)

摘要: private const string foldername = "temp1";private const string filename = foldername + "/address.txt";private const string settingname = "sname"; 1.创建文件夹private void button1_Click(object sender, RoutedEventArgs e) { using (IsolatedStorageFile file = IsolatedStorageFile. 阅读全文

posted @ 2013-06-18 09:21 Hai_阔天空 阅读(225) 评论(0) 推荐(0)

Windows Phone 独立存储查看器

摘要: 1.为了查看我们存放在独立存储的数据,我们需要借助独立存储查看器。2.简单介绍下,IsoStoreSpy下载地址:http://download.csdn.net/download/lhb109743470/5601485 阅读全文

posted @ 2013-06-18 09:07 Hai_阔天空 阅读(170) 评论(0) 推荐(0)

2013年6月17日

Windows Phone 几种弹出框提示方式

摘要: 首先,我们需要在网络上下载一个Coding4Fun然后,引用 using Coding4Fun.Phone.Controls.Toolkit; using Coding4Fun.Phone.Controls; //第一种:AboutPrompt:说明弹出框,特点是弹出框会在屏幕中间,其他的弹出框是在屏幕的上方。private void About_Click(object sender, RoutedEventArgs e){ var about = new AboutPrompt(); about.Completed += baseObject_Completed; abo... 阅读全文

posted @ 2013-06-17 18:12 Hai_阔天空 阅读(364) 评论(0) 推荐(0)

Windows Phone 自定义一个启动画面

摘要: 1.新建一个UserControl<UserControl x:Class="LoadingPage.PopupSplash" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc=&q 阅读全文

posted @ 2013-06-17 18:02 Hai_阔天空 阅读(364) 评论(0) 推荐(0)

Windows Phone 几种页面间传递数据的方式

摘要: 首先,我们要引用:using Microsoft.Phone.Shell;第一种:// 导航到新页面NavigationService.Navigate(new Uri("/DetailsPage.xaml?selectedItem=" + MainListBox.SelectedIndex, UriKind.Relative));DetailPage.xaml.cs// 导航页面以将数据上下文设置为列表中的所选项时protected override void OnNavigatedTo(NavigationEventArgs e){ string selectedInd 阅读全文

posted @ 2013-06-17 17:56 Hai_阔天空 阅读(259) 评论(0) 推荐(0)

Windows Phone 页面切换动画

摘要: 1.首先引用Microsoft.Phone.Toolkit2.将App.xaml.cs 中的 RootFrame = new PhoneApplicationFrame(); 改成RootFrame = new TransitionFrame();3.引用toolkit xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"4.toolkit中一共有5中动画效果☻SlideTransition 飞入动画 ☻RotateTransition 阅读全文

posted @ 2013-06-17 17:40 Hai_阔天空 阅读(299) 评论(0) 推荐(0)

Windows Phone 在读取网络图片之前先显示默认图片

摘要: 1.新建一个控件WindowsPhoneControl1WindowsPhoneControl1.xaml<UserControl x:Class="DefaultImage.WindowsPhoneControl1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microso 阅读全文

posted @ 2013-06-17 15:24 Hai_阔天空 阅读(351) 评论(0) 推荐(0)

ios开发 点击文本(TextField)输入的时候向上推以及输入之后恢复的动画

摘要: 1.添加委托UITextFieldDelegate2.-(BOOL)textFieldShouldReturn:(UITextField *)textField { [textField resignFirstResponder]; return YES;} //隐藏键盘- (void... 阅读全文

posted @ 2013-06-17 10:45 Hai_阔天空 阅读(569) 评论(0) 推荐(0)

导航