
Windows Phone
文章平均质量分 52
renyg25
这个作者很懒,什么都没留下…
展开
-
Windows Phone推送
使用推送通知的好处1、节省用户的电池电量。2、你可以通过推送通知来告知你的用户在程序中发生了一些有趣的事,即使程序没有运行。 推送通知的过程用户在手机中首次运行程序时,应用程序会调用微软的推送通知服务,请求一个用于通信的定制URI。 当在你的Web Service中激发了一个事件时,你应该向那个URI传递信息(附带一个特定的负载),然后推送转载 2013-04-29 21:16:52 · 518 阅读 · 0 评论 -
How to increase Memory usage for an App in Windows Phone
Windows Phone is gradually getting matured day by day. Considering the current situation, the Windows Phone environment gives a restrictive environment where app developers are restricted to do certai转载 2014-05-01 17:07:17 · 662 阅读 · 0 评论 -
Windows Phone(WP) Loading 加载层用户控件
直接看源码更直观。。http://download.youkuaiyun.com/detail/renyg25/6900799FROM: http://developer.nokia.com/community/wiki/Create_simple_overlay_with_UserControl_in_Windows_Phone转载 2014-02-07 00:02:33 · 622 阅读 · 0 评论 -
WP添加请求链接来路 WP7/8(Windows Phone) and Http-Referer and WebClient-referer
WP添加请求链接来路:string referer = "http://www.baidu.com/"; WebClient wb; wb = new WebClient(); wb.Headers[HttpRequestHeader.Referer] = referer; wb.OpenRea转载 2014-01-20 15:23:10 · 825 阅读 · 0 评论 -
View绑定VM中属性下的属性
当View绑定的ViewModel中的属性是一个类,而又想绑定该属性下的属性,怎么办呢?欲绑定ViewModle中名为MyCar中的Name属性(DataContext为VM):VM: private Car _myCar; public Car MyCar { get { return _myCar; }原创 2014-01-16 12:22:33 · 1128 阅读 · 0 评论 -
wp8 点击ListBoxItem动画
[Windows (Phone) 8] Start an animation on the selected ListBoxItem during ListBox’ Ok, I admit the title is a bit long and you may wonder what I’m talking about so let me explain.On the转载 2014-01-16 19:25:35 · 696 阅读 · 0 评论 -
Windows Phone(WP) 内存使用报告
IntroductionSometimes apps crash because they use too much memory, throwing an OutOfMemoryException. Most of the app memory is consumed by data, so you should plan for this in advance. Code re转载 2014-01-22 13:56:43 · 778 阅读 · 0 评论 -
Image Tips for Windows Phone 7 / 8
Image Tips for Windows Phone 7If you are developing for Windows Phone you have probably been using the the Image element in various places of your UI already. Using the Image element is very eas转载 2014-01-13 21:55:41 · 785 阅读 · 0 评论 -
Windows Phone (WP) 跨线程更新界面(UI)
((App)App.Current).RootFrame.Dispatcher.BeginInvoke(new Action(() => { }));App.Current.RootVisual.Dispatcher.BeginInvoke(原创 2014-01-11 16:22:50 · 1285 阅读 · 0 评论 -
WP独立文件资源字典
有时候,开发者想把资源字典定义在单独的XAML文件中,在网上找了找,没找到比较详细的,自己弄了许久。1. 新建xaml资源字典文件,如在根目录下“ResourceDictionary1.xaml”,也可以建在文件夹中,只要路径对应就可以了。 <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/x原创 2013-12-10 21:20:33 · 777 阅读 · 0 评论 -
Windows Phone 下ViewModel直接获取View下的控件
WP开发,在使用MVVM时有时候想直接在ViewModel下获取View的控件,那怎么获取呢,请看下文。1. 在VM中添加以下代码 public object getView { get; set; } public MainVM(object host) { getView = host;原创 2013-12-16 18:37:50 · 1370 阅读 · 0 评论 -
Windows Phone 7(WP7)开发 在ViewModel中使用NavigationService
在WP7 APP的开发中,页面之间的跳转是一个再常见不过的操作啦,在Xaml中能实现,在Xaml背后的cs文件中用NavigationService能实现,但是在使用MVVM开发模型之后,在ViewModel中就不如前面的实现起来直观了。 其实在ViewModel中实现页面的跳转也很简单,下面的代码:using Microsoft.Phone.Controls; var root转载 2013-11-18 19:41:42 · 743 阅读 · 0 评论 -
Windows phone 应用开发[14]-调用WebBrowser
http://www.cnblogs.com/chenkai/archive/2012/04/04/2432120.html转载 2013-05-14 13:03:58 · 705 阅读 · 0 评论 -
WP7固定到开始屏幕
StandardTileData secondaryTile = new StandardTileData { Title = "title", BackgroundImage = new Uri("tile.png", UriKind.Relative), BackTitle原创 2013-05-12 22:22:30 · 737 阅读 · 0 评论 -
[windows phone][wp]Image缩放显示
1.引用toolkit2. 在xaml文件中添加toolkit的命名空间xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"3.在xaml中写一个image控件原创 2013-05-24 21:20:53 · 970 阅读 · 2 评论 -
Windows Phone 下载网络图片
1. 使用WebClient, image1是Image控件 private void Button_Click_1(object sender, RoutedEventArgs e) { WebClient wc = new WebClient(); wc.OpenReadAsync(new Uri("http原创 2013-05-14 13:26:43 · 984 阅读 · 0 评论 -
Windows Phone 调整屏幕亮度的简单实现
之前看到以及其它应用都有调节屏幕亮度的功能,还以为MS有相关的API,就去MSDN找了下,但是怎么都找不到。今天突然想到做自定义MessageBox时,由于要突出弹出框部分,所以会改变LayoutRoot的opacity属性,以达到屏幕暗下来的效果,于是马上试了下,结果是可行的。添加一个Slider,并将其Value熟性绑定到LayoutRoot的Opcity属性上,这样一来,在滑动Slider时转载 2013-05-02 19:38:13 · 894 阅读 · 0 评论 -
后台cs代码创建Storyboard动画
canvas控件: <TextBlock x:Name="txb_message" Width="480" TextWrapping="Wrap" VerticalAlignment="Center" TextAlignment="Cent原创 2014-05-01 21:43:13 · 702 阅读 · 0 评论