摘要: win8学习--------File 阅读全文
posted @ 2012-08-21 16:01 win_and_first 阅读(381) 评论(0) 推荐(0) 编辑
摘要: //计时器1---ThreadPoolTimerauto timerDelegate = [this](Windows::System::Threading::ThreadPoolTimer^ timer){ auto uiDelegate = [this]() { //设置时间到了所要做的事情 }; Dispatcher->RunAsync(Windows::UI::Core::CoreDispatcherPriority::Normal, ... 阅读全文
posted @ 2012-08-21 15:14 win_and_first 阅读(718) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2012-08-21 15:09 win_and_first 阅读(0) 评论(0) 推荐(0) 编辑
摘要: using namespace Windows::UI::Xaml::Media;using namespace Windows::UI::Xaml::Media::Imaging; Image图像处理 //Image property ImageSource^ Image { ImageSource^ get() { return _Image; } voi... 阅读全文
posted @ 2012-08-21 15:07 win_and_first 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 很久没写win8知识学习了感觉有好多不同win8的定义1、定义静态变量和静态方法 static property ResourceContext^ mContext ; static String^ GetProperty(String^ name); static property int highLight;2、弹出MessageDialog Windows::UI::Popups::MessageDialog^ _mes=ref new Windows::UI::Popups::MessageDialog("hello alert");_mes->showas. 阅读全文
posted @ 2012-08-21 15:02 win_and_first 阅读(259) 评论(0) 推荐(0) 编辑
摘要: win8 阅读全文
posted @ 2012-08-17 15:22 win_and_first 阅读(6) 评论(0) 推荐(0) 编辑
摘要: BitmapImage bt = new BitmapImage(new Uri(this.BaseUri, "/Images/SinaDefault.png"));ImageBrush im = new ImageBrush();im.ImageSource = bt;image.Background = im; 阅读全文
posted @ 2012-07-15 10:21 win_and_first 阅读(187) 评论(0) 推荐(0) 编辑
摘要: private void itemView_ItemClick(object sender, ItemClickEventArgs e) { // Navigate to the split page, configuring the new page // by passing the clicked item (FeedItem) as a navigation parameter this.Frame.Navigate(typeof(SplitPage), e.ClickedItem); ... 阅读全文
posted @ 2012-07-12 18:01 win_and_first 阅读(350) 评论(0) 推荐(0) 编辑
摘要: json解析数据1 public static T DataContractJsonDeSerializer<T>(string jsonString) 2 { 3 var ds = new DataContractJsonSerializer(typeof(T)); 4 var ms = new MemoryStream(Encoding.UTF8.GetBytes(jsonString)); 5 T obj = (T)ds.ReadObject(ms); 6 ms.Dispo... 阅读全文
posted @ 2012-07-11 16:17 win_and_first 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 实例URLhttp://news.ifeng.com/rss/world.xml 1 public async void LoadXmlToString(string xmlData, string rssKind) 2 { 3 DateTime now = DateTime.Now; 4 Debug.WriteLine(now); 5 XElement xelem = XElement.Parse(xmlData); 6 IEnumerable<XElement> items =... 阅读全文
posted @ 2012-07-11 12:56 win_and_first 阅读(514) 评论(0) 推荐(0) 编辑