2012年9月3日

页面嵌套

摘要: <StackPanel Orientation="Vertical" Grid.Column="1"> <TextBlock Style="{StaticResource HeaderTextStyle}" Margin="10" Text="Item Detail"/> <Frame x:Name="ItemDetailFrame"/> </StackPanel>在LISTpage 的onavigated 的方法里面, Ite 阅读全文

posted @ 2012-09-03 17:10 GIS-MAN 阅读(242) 评论(0) 推荐(0) 编辑

win8 metro 弹出一个部分

摘要: <Popup x:Name="AddItemPopup" IsLightDismissEnabled="True" Width="435" Height="265" > <StackPanel Background="Black"> <Border Background="#85C54C" BorderThickness="4"> <Grid Margin="10"> <Grid.R 阅读全文

posted @ 2012-09-03 16:52 GIS-MAN 阅读(370) 评论(0) 推荐(0) 编辑

win8 获得地理坐标

摘要: using Windows.Devices.Geolocation; Geolocator geoloc = new Geolocator();Geoposition position = await geoloc.GetGeopositionAsync();//h获得地理坐标 HttpClient httpClient = new HttpClient(); httpClient.BaseAddress = new Uri("http://nominatim.openstreetmap.org"); HttpResponseM... 阅读全文

posted @ 2012-09-03 16:25 GIS-MAN 阅读(371) 评论(0) 推荐(0) 编辑

2012年7月18日

windows phone pivot 开发过程中的使用心得

摘要: 首先pivot的的selection changed 事件 触发 pivotindex 的时间 比较晚,他是在完全进入另一pivotitem的时候 才会触发pivotindex改变next ManipulationCompleted事件 触发 pivotindex 的时间要早的很多 ,嘿嘿 阅读全文

posted @ 2012-07-18 11:03 GIS-MAN 阅读(162) 评论(0) 推荐(0) 编辑

2012年7月12日

asynChronous delegaTes 异步委托

摘要: static int TakesAWhile(int data, int ms) { Console.WriteLine("TakesAWhile started"); Thread.Sleep(ms); Console.WriteLine("TakesAWhile completed"); return ++data; } ... 阅读全文

posted @ 2012-07-12 16:56 GIS-MAN 阅读(139) 评论(0) 推荐(0) 编辑

正则表达式基础 之 ?

摘要: Console.WriteLine (Regex.Match ("color", @"colou?r").Success); // True Console.WriteLine (Regex.Match ("colour", @"colou?r").Success); // True Console.WriteLine (Regex.Match ("colouur", @"... 阅读全文

posted @ 2012-07-12 16:56 GIS-MAN 阅读(156) 评论(0) 推荐(0) 编辑

线程不安全

摘要: class ThreadUnsafe { static int _val1 = 1, _val2 = 1; static void Go() { if (_val2 != 0) Console.WriteLine (_val1 / _val2); _val2 = 0; } }///方法的定义和分配的内存地... 阅读全文

posted @ 2012-07-12 16:55 GIS-MAN 阅读(157) 评论(0) 推荐(0) 编辑

2012年7月10日

线程基础知识

摘要: Semaphores can be useful in limiting concurrency—preventing too many threads from executing a particular piece of code at once. In the following example, five threads try to enter a nightclub that a... 阅读全文

posted @ 2012-07-10 17:57 GIS-MAN 阅读(153) 评论(0) 推荐(0) 编辑

linq TO XML 基础

摘要: 这样写可以用在linq 查询里面 阅读全文

posted @ 2012-07-10 17:09 GIS-MAN 阅读(121) 评论(0) 推荐(0) 编辑

linq 查询表达式

摘要: 阅读全文

posted @ 2012-07-10 16:01 GIS-MAN 阅读(113) 评论(0) 推荐(0) 编辑

导航