06 2012 档案

wp7 mvvm绑定跨线程错误解决方案
摘要:解决方法 private void ItemSearch(Category.FirstCategoryResult pCategoryResult) { Deployment.Current.Dispatcher.BeginInvoke(() => { foreach (Catego... 阅读全文

posted @ 2012-06-28 12:09 GIS-MAN 阅读(367) 评论(0) 推荐(0)

mvvm里面 mouse事件的绑定
摘要:首先要用到 xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" 这个dll 然后 <i:Interaction.Triggers> <i:EventTrigger EventName="MouseLeftButtonDown"> <i:Invo... 阅读全文

posted @ 2012-06-27 19:16 GIS-MAN 阅读(586) 评论(0) 推荐(0)

个人小电子设想
摘要:做专业导航的网页 建立一个移动设备上的浏览器,只能渲染文字不支持视频音频图片,这样可以加快相应时间和节省手机电量 做个windwos phone上的投票调查问卷的系统wcf 设想 今天注册了一个sae 帐号就是微博帐号 也搭建了一个博客 http://1.zhangbuchao.sinaapp.com/ 阅读全文

posted @ 2012-06-26 15:25 GIS-MAN 阅读(143) 评论(0) 推荐(0)

qq群之思考
摘要:你一个人是改变不了世界的 随意改变世界不应该只有我自己 所以 不愁吃不愁喝 的 , 我不知道 但是我知道靠我自己的力量改变世界是不可能的 骆驼与北斗星(344860032) 11:28:25 你的兴趣爱好是什么? 哈哈,这么大的志向。 那你准备用什么改变世界? 骆驼与北斗星(344860032) 11:27:28 这是你要走的方向啊 ... 阅读全文

posted @ 2012-06-26 15:24 GIS-MAN 阅读(144) 评论(0) 推荐(0)

微软程序分析tcp 之服务端
摘要:当启动服务端的时候 就需要在服务端创建socket 启动监听 Socket listener = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); IPEndPoint localEndPoint = new IPEndPoint(IPAddress.Any, 13001); lis... 阅读全文

posted @ 2012-06-21 11:42 GIS-MAN 阅读(181) 评论(0) 推荐(0)

微软程序分析之socket tcp tcp 之客户端
摘要:using System.Net.Sockets;Socket sock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); SocketAsyncEventArgs socketEventArg = new SocketAsyncEventArgs();socketEventArg.UserToken = sock; socketEventArg.RemoteEndPoint = hostEntry;DnsEndPoint hostEntry = new DnsEndPoint(_ser 阅读全文

posted @ 2012-06-21 11:23 GIS-MAN 阅读(490) 评论(1) 推荐(1)

InputScope枚举
摘要: 阅读全文

posted @ 2012-06-14 15:18 GIS-MAN 阅读(166) 评论(0) 推荐(0)

windwos phone 的多任务
摘要:理论上,程序的切换不难,但是程序占用的的资源共享很难——包括屏幕和输入设备 Let’s nail down some terminology that’s consistent with some events I’ll discuss later: • When an application is run from the Start screen, it is said to be... 阅读全文

posted @ 2012-06-14 14:33 GIS-MAN 阅读(193) 评论(0) 推荐(0)

导航基础
摘要:this.NavigationService.Navigate(new Uri("/SecondPage.xaml", UriKind.Relative)); 导航到SecondPage.xaml 页面间传递参数,通过new uri (string str)通过str 传递参数 string destination = "/SecondPage.xaml"; Color clr = (Co... 阅读全文

posted @ 2012-06-14 11:52 GIS-MAN 阅读(287) 评论(0) 推荐(0)

windows phone调用 rest风格的 服务
摘要:服务地址http://odata.netflix.com/v2/catalog/http://odata.netflix.com/catalog/http://odata.netflix.com/catalog/Titleshttp://developer.netflix.com/docs/oData_Catalog 此地址下有很多服务浏览器请求(返回的的数据格式如下)(1)新建个windwos phone程序 RestTestnetfix(2 ) 在命令行里面 使用windows phone sdk 里面的 DataSvcUtil ,在本地生成代理类F:\resttest\testone.c 阅读全文

posted @ 2012-06-08 15:28 GIS-MAN 阅读(1440) 评论(0) 推荐(2)

Windows Phone 7 页面旋转动画
摘要:<phone:PhoneApplicationPage.Projection> <PlaneProjection x:Name="planeProjection" CenterOfRotationX="0" /> </phone:PhoneApplicationPage.Projection> <phone:PhoneA... 阅读全文

posted @ 2012-06-08 10:39 GIS-MAN 阅读(1281) 评论(0) 推荐(0)

windows phone 多触控画图并保存到 手机图片库
摘要:http://code.msdn.microsoft.com/CSWP7MultiTouchDrawing-4513213a 原文 效果图 算法分析: 按下鼠标的时候 把这个点加入点的集合,当鼠标移动的时候,把加入的点集 画线 无论是移动鼠标还是按下鼠标都会触发 Touch.FrameReported += new TouchFrameEventHandler(Touch_Fra... 阅读全文

posted @ 2012-06-07 10:57 GIS-MAN 阅读(234) 评论(0) 推荐(0)

wp 的手势Gestures: flick, pan, and stretch
摘要:http://www.microsoft.com/windowsphone/en-us/howto/wp7/start/gestures-flick-pan-and-stretch.aspx 原文 阅读全文

posted @ 2012-06-07 09:45 GIS-MAN 阅读(533) 评论(0) 推荐(0)

wp 之path详细 以及一个关于LinearGradientBrush 的动画
摘要:首先LinearGradientBrush 画刷竟然包含Trsanslate 属性也就有x,y 属性 <Path HorizontalAlignment="Center" VerticalAlignment="Center" StrokeThickness="25" Data="M 1... 阅读全文

posted @ 2012-06-06 15:37 GIS-MAN 阅读(346) 评论(0) 推荐(0)

WP数据绑定
摘要:绑定到自己 首先source 变成RelativeSource , Text="{Binding RelativeSource={RelativeSource Self}, ,path 就是绑定的数据,vs会在编写xaml代码的时候 直接体现出来(不用编译) 阅读全文

posted @ 2012-06-06 15:12 GIS-MAN 阅读(241) 评论(0) 推荐(0)

一个小范围 滑动的动画
摘要:public void Transform(double from, double to, FrameworkElement target, double duration) { Storyboard sb = new Storyboard(); ScaleTransform scale = new ScaleTransform();... 阅读全文

posted @ 2012-06-06 10:56 GIS-MAN 阅读(194) 评论(0) 推荐(0)

wp toolkit 之 HubTile
摘要:<toolkit:HubTile GroupTag="QuickLink" Notification="{Binding Notification}" Message="{Binding Message}" Title="{Binding Title}" Source="{Binding Src}" Background="{StaticResource PhoneAccentBrush}"/... 阅读全文

posted @ 2012-06-06 10:43 GIS-MAN 阅读(258) 评论(0) 推荐(0)

windwos phone 的listbox 的各种细节
摘要:http://www.cnblogs.com/Watson/archive/2012/06/01/2531396.html 此处为原文 如果不给itemspanel 结果会是下面这样子,如果不注释掉的话 是下面这样子(这是itempanel里面放wrappanel 的结果) 遍历listbox里面的item , for (int i = 0; i < listBox.Items.Co... 阅读全文

posted @ 2012-06-06 10:20 GIS-MAN 阅读(243) 评论(0) 推荐(0)

wp 常用messagebox
摘要:// Show a warning MessageBoxResult result = MessageBox.Show("Strobe lights can trigger " + "seizures for people with photosensitive epilepsy. " + "Are you sure you want to star... 阅读全文

posted @ 2012-06-05 11:07 GIS-MAN 阅读(417) 评论(0) 推荐(0)

页面导航 页面内容的保存,
摘要:在页面导航中, ,通过后退按钮,不会new 一个page对象,通过后退按钮页面的内容不会有丢失 ,但是通过 private void button1_Click(object sender, RoutedEventArgs e) { this.NavigationService.Navigate(new System.Uri("/MainPage... 阅读全文

posted @ 2012-06-05 10:46 GIS-MAN 阅读(283) 评论(0) 推荐(0)

wp toolkit 之ContextMenu
摘要:<Grid Width="419" Height="86"> <toolkit:ContextMenuService.ContextMenu> <toolkit:ContextMenu Background="#FF494D49" Height="80"> <TextBlo... 阅读全文

posted @ 2012-06-04 14:42 GIS-MAN 阅读(288) 评论(0) 推荐(0)

导航