Edward_jie

for you, my Hall of Frame

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  92 随笔 :: 45 文章 :: 539 评论 :: 43万 阅读
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

随笔分类 -  windows phone 7

1 2 下一页

摘要:在开始这个题目之前,先给大家再次扫扫盲,扫的不是坐标系统的盲,而是我们国家所使用的坐标系统。大家都知道,美国GPS使用的是WGS84的坐标系统,以经纬度的形式来表示地球平面上的某一个位置,这应该是国际共识。但在我国,出于国家安全考虑,国内所有导航电子地图必须使用国家测绘局制定的加密坐标系统,即将一个真实的经纬度坐标加密成一个不正确的经纬度坐标,我们在业内将前者称之为地球坐标,后者称之为火星坐标,具体的说明可以参看百度百科中关于火星坐标系统的解释(文中的两段还是对我原文的摘录)。所以,本文所要讨论的坐标系统,是关于地球坐标和火星坐标的事情。以前使用Google Maps API开发习惯了,就觉得 阅读全文
posted @ 2013-05-21 18:08 Edward_诺 阅读(433) 评论(0) 推荐(0) 编辑

摘要:<Canvas > <Canvas.Triggers> <EventTrigger RoutedEvent="Canvas.Loaded" > <BeginStoryboard> <Storyboard x:Name="animation" Storyboard.TargetProperty="(Canvas.Left)" RepeatBehavior="Forever" > <DoubleAnimation Storyboard.TargetNam 阅读全文
posted @ 2013-04-27 23:05 Edward_诺 阅读(300) 评论(0) 推荐(0) 编辑

摘要:There’s something a little peculiar about how unit tests work in Silverlight when the debugger is attached – when an Assert fails in one of your unit tests, the Visual Studio debugger breaks the execution and brings up the debugger dialog.If you want to run a whole bunch of unit tests to see which o 阅读全文
posted @ 2013-03-20 22:18 Edward_诺 阅读(217) 评论(0) 推荐(0) 编辑

摘要:1.IOS个人开发者帐号,需要准备好有关传真的信息,主要是需要拿出master信用卡护着visa信用卡的所有信息,另外需要传真卡主的身份证复印件,通过传真或者邮件发送到apple都可以,可以使用网络的免费传真,只要按照apple个人开发者方式写上需要的信息就好了。最需要注意的地方就是申请者最好需要与需要付款的卡主姓名是同一个,也就是填写first name和last name的地方要与填写的卡主的姓名一致,除了填写信用卡信息的地方和需呀发票的时候填写的公司名字可以使用汉字名字之外,其他的所有地方都要使用英文,不然需要发送卡主身份证的复印件等信息到apple进行核实。2.WP公司开发者帐号,一切 阅读全文
posted @ 2012-12-31 23:08 Edward_诺 阅读(11223) 评论(1) 推荐(1) 编辑

摘要:c#写表结构的时候,在主键id的column()中一定要加入AutoSync = AutoSync.OnInsert, DbType = "INT NOT NULL Identity", CanBeNull = false, IsDbGenerated = true, IsPrimaryKey = true [Column] public double latitude { get { return _latitude; } set { if (_latitude != value) { NotifyPropertyChanging("latitude" 阅读全文
posted @ 2012-11-14 13:47 Edward_诺 阅读(287) 评论(0) 推荐(0) 编辑

摘要:1.研发有关listbox滚动最底的项目功能的时候,需要判断listbox垂直偏移和listbox自身高度做比较,注意如果有listbx中有textblock,切设置了Textwrap为wrap的时候,listbox垂直偏移和listbox自身高度做比较就会出现问题,因为它只是按照textblock为一行来计算的高度和偏移,此时设置Textwrap依旧为nowrap,然后在长的textblock后面加省略号作为解决方案吧 阅读全文
posted @ 2012-11-11 01:56 Edward_诺 阅读(290) 评论(0) 推荐(0) 编辑

摘要:Supported Place TypesThe following table lists supported types for Place searches and Place adds. Additional types listed in table #2 can be used when searching for a Place, but not when adding a Place.accountingairportamusement_parkaquariumart_galleryatmbakerybankbarbeauty_salonbicycle_storebook_st 阅读全文
posted @ 2012-11-10 23:01 Edward_诺 阅读(603) 评论(0) 推荐(0) 编辑

摘要:使用panaroma控件, <controls:PanoramaItem Foreground="{StaticResource MainTitle}" Header="我的帐号"> <Grid Height="650" Margin="12,0,0,0" VerticalAlignment="Top"> <Grid x:Name="userHomeLogined" Visibility="Collapsed"> < 阅读全文
posted @ 2012-11-08 15:47 Edward_诺 阅读(1010) 评论(0) 推荐(0) 编辑

摘要:private void decryption(string mima) { IsolatedStorageFileStream stream = new IsolatedStorageFileStream("aaa.zip加密", FileMode.Open, FileAccess.Read, this.storgfile); IsolatedStorageFileStream stream2 = new IsolatedStorageFileStream("aaa.zip" + "解密", FileMode.OpenOrCreat 阅读全文
posted @ 2012-10-22 17:42 Edward_诺 阅读(876) 评论(1) 推荐(0) 编辑

摘要:有关windows phone使用toolkit的expanderview的设置和修改,在generic文件里面设置有关 <Line x:Name="Line" Grid.Row="0" Grid.Column="1" Grid.RowSpan="3" HorizontalAlignment="Left" Stroke="DarkBlue" ... 阅读全文
posted @ 2012-10-12 08:48 Edward_诺 阅读(429) 评论(0) 推荐(0) 编辑

摘要:What steps will reproduce the problem?1.I'm using the latest version of csharp-sqlite2.I want to select a row from db ,just like SELECT * FROM test where name='大',but i can insert '大' to database..3.大 is a Chinese character.What is the expected output? What do you see instead?It 阅读全文
posted @ 2012-10-10 22:19 Edward_诺 阅读(1742) 评论(5) 推荐(0) 编辑

摘要:Silverlight团队的Toolkit中为我们提供了这样一套组件,叫做TransitionServices服务,我们可以用它来实现页面间的跳转动画。该服务提供了一下几个跳转动画:SlideTransition : 上下或者左右滑动效果,具体有Mode值决定:SlideUpFadeIn 向上飞入SlideUpFadeOut 向上飞出SlideDownFadeIn 向下飞入SlideDownFadeOut 向下飞出SlideLeftFadeIn 向左飞入SlideLeftFadeIn 向左飞出SlideRightFadeIn 向右飞入SlideRightFadeIn 向右飞出RollTrans 阅读全文
posted @ 2012-10-10 00:04 Edward_诺 阅读(575) 评论(0) 推荐(1) 编辑

摘要:在使用多线程的时候,经常会报错OpenFile Operation not permitted on IsolatedStorageFileStream,原因是IsolatedStorageFile和IsolatedStorageFileStream在多线程中被多处调用而出现不可预知的内存崩溃,此时需要进行加锁,代码如下: private static readonly object _readLock = new object(); using (IsolatedStorageFile myIsolatedStorage = IsolatedStorageFile.GetUserStore. 阅读全文
posted @ 2012-09-29 11:16 Edward_诺 阅读(489) 评论(0) 推荐(0) 编辑

摘要:In the current version of Windows Phone, there’ s no support for a built-in local database. This will be taken care of in the next release of the OS (codename “Mango”), which will be released late this year. Mango will have a built-in SQL CE (-like) database which can be accessed using LINQ to SQL. 阅读全文
posted @ 2012-09-28 16:40 Edward_诺 阅读(616) 评论(0) 推荐(0) 编辑

摘要:windows phone使用profiler分析器很方便的测试代码运行时间,很具体,安装profiler之后找到对应项目的debug文件为build路径,然后点击运行app的时候,报错conmanui.dll没有找到的问题解决办法:win7 x64 C:\Program Files (x86)\Common Files\microsoft shared\Phone Tools\CoreCon\10.0\Bin\2052路径下有conmanui.dll;而profiler要找的路径是C:\Program Files (x86)\Common Files\microsoft shared\Pho 阅读全文
posted @ 2012-09-28 11:31 Edward_诺 阅读(210) 评论(0) 推荐(0) 编辑

摘要:This week I have checked in a port of NLog 2.0 for Windows Phone 7. It’s still very experimental and the intention of this release is to get feedback from people. Please use at your own risk.Current build supports 8 targets:Console – can be used to write logs to the console (only works in Emulator – 阅读全文
posted @ 2012-09-27 13:05 Edward_诺 阅读(318) 评论(0) 推荐(0) 编辑

摘要:A while ago as part of my post http://nicksnettravels.builttoroam.com/post/2010/07/24/Howe28099s-my-Windows-Phone-7-application-being-used-Getting-started-with-the-Microsoft-Silverlight-Analytics-Framework-for-Windows-Phone-development.aspxdiscussed how you can enable the console window for the Wind 阅读全文
posted @ 2012-09-27 11:03 Edward_诺 阅读(284) 评论(1) 推荐(0) 编辑

摘要:1.用DBHelper和sqlite数据库的时候,如果拷贝物理文件到存储区,而不是在程序里面运行语句生成表来进行操作的时候,会报unable to open the database的错误,这是因为sqlconectioin里面运行sql语句的时候默认是有权限限制的,我们打开源码的oc_win文件,修改795行的代码第二个参数为,openorcrearte就可以了。2.在user control中运用数据绑定的时候,比如text="{binding name}",这需要首先在xaml上面加入DataContext="{Binding RelativeSource= 阅读全文
posted @ 2012-09-20 00:31 Edward_诺 阅读(163) 评论(0) 推荐(0) 编辑

摘要:Uri uri = new Uri("background.png", UriKind.Relative); var source = new BitmapImage(); source.CreateOptions = BitmapCreateOptions.None; System.Windows.Resources.StreamResourceInfo s = Application.GetResourceStream(uri); source.SetSource(s.Stream); WriteableBitmap bmp = new WriteableBitmap( 阅读全文
posted @ 2012-09-12 11:44 Edward_诺 阅读(218) 评论(0) 推荐(0) 编辑

摘要:/// <summary>/// 判断网络是否可用/// </summary>/// <returns>true or false</returns>public static bool queryNetWorkStatus(){ return Microsoft.Phone.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable();//当前网络是否可用 }/// <summary>/// 获取当前网络的类型/// </summary>/// <r 阅读全文
posted @ 2012-02-08 13:02 Edward_诺 阅读(1456) 评论(3) 推荐(1) 编辑

1 2 下一页
点击右上角即可分享
微信分享提示