windows-phone

Map tap event / mouse down event in windows phone 8?

女生的网名这么多〃 提交于 2019-12-31 01:57:08
问题 I am using the windows phone emulator. I wrote a very simple program: draw a marker on the map when the user tap the map once. Then I used map_tap event, and get the tapped location as follows, private void map_Tap(object sender, System.Windows.Input.GestureEventArgs e) { Point p = e.GetPosition(null); GeoCoordinate s = map.ConvertViewportPointToGeoCoordinate(p); Ellipse myCircle = new Ellipse(); myCircle.Fill = new SolidColorBrush(Colors.Blue); myCircle.Height = 20; myCircle.Width = 20;

WP8.1 application crashes on calling RequestProductPurchaseAsync

[亡魂溺海] 提交于 2019-12-31 01:11:49
问题 I'm writing Audio Player for Windows Phone 8.1 (Runtime) and I use IBackgroundTask for audio . I want to use in-app purchase , but applications crashes on calling var result = await CurrentAppSimulator.RequestProductPurchaseAsync(ProProductId); without any exceptions. This method is called within try-catch block. It happens when application already start IBackgroundTask by calling for BackgroundMediaPlayer.Current (happens after few seconds after call RequestProductPurchaseAsync ). If I call

How to run the Windows Phone 10 Emulator?

故事扮演 提交于 2019-12-30 18:08:33
问题 I'm lost while searching how to start the Windows Phone 10 Emulator. What I already did: I downloaded the Emulator image and installed it (I know the location of the flash.vhd file) I'm running Windows 8.1 x64 Professional. The Hyper-V service seems to be running. If I run coreinfo -v I get this output: Coreinfo v3.31 - Dump information on system CPU and memory topology Copyright (C) 2008-2014 Mark Russinovich Sysinternals - www.sysinternals.com Note: Coreinfo must be executed on a system

How to create Tiles like UI within WP8 app?

非 Y 不嫁゛ 提交于 2019-12-30 11:21:30
问题 How to create Tiles like UI within our app. If I use a button with image, its showing with borders. If I create a secondary tile, then the tile is getting created on the start screen. Is there any way to create UI which looks similar to Tiles? Thanks. 回答1: You can use Hub Tile from Windows Phone Toolkit. If you want many tiles in your apps, all arranged like in the start screen of Windows Phone device, then you should use Wrap Panel as container for those Hub Tiles. You can also create Tile

How to create Tiles like UI within WP8 app?

帅比萌擦擦* 提交于 2019-12-30 11:21:06
问题 How to create Tiles like UI within our app. If I use a button with image, its showing with borders. If I create a secondary tile, then the tile is getting created on the start screen. Is there any way to create UI which looks similar to Tiles? Thanks. 回答1: You can use Hub Tile from Windows Phone Toolkit. If you want many tiles in your apps, all arranged like in the start screen of Windows Phone device, then you should use Wrap Panel as container for those Hub Tiles. You can also create Tile

Binding converter to XAML in windows phone 8 app

半世苍凉 提交于 2019-12-30 11:11:09
问题 my .xaml page code : <phone:PhoneApplicationPage x:Class="MVVM1Test.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns

WebClient doesn't exist on Windows Phone 8.1? Downloading html of site

别来无恙 提交于 2019-12-30 10:25:20
问题 I want to get source code of some website. I found this solution: var html = System.Net.WebClient().DownloadString(siteUrl); But VisualStudio tells that WebClient does not exist in System.Net. How to fix that? Or how to do it other way? PS: does windows phone have some special tag which developers usually use when they looking for some code/solutions? 回答1: WebClient does exist in WP8 like this: WebClient thisclient = new WebClient(); thisclent.DownloadStringAsync(new Uri("urihere");

How do I use the Bing Search API in Windows Phone?

点点圈 提交于 2019-12-30 02:29:06
问题 I'm trying to use the Bing Search API to find images as backgrounds to the tiles inside of my app. I've included the BingSearchContainer.cs in my Project but I can't make it work with the sample code provided here. Any guidelines for how to use the Bing Search API inside of my Windows Phone 8 app would be appriciated! Thanks for any answer. 回答1: I expect that you already have a AccountKey so I wont tell you have to get one. Implementation First of all, add the BingSearchContainer.cs to your

Remove Pages windows phone

大憨熊 提交于 2019-12-29 09:10:11
问题 I have a big project where my application keeps retaining a page which I navigated away from. The page is only used minimal, and have a lot of graphics, I therefore want it to be completely removed from memory. I therefore used the following NavigationService.RemoveBackEntry(); Using the profiler I saw that, the above snippet made sure that I would only have 1 instance of the page. But as it is heavy with graphics I still want it to be completely removed from memory, i.e. no instances in the

Facebook SDK for .NET - Security Warning Issue

南笙酒味 提交于 2019-12-29 08:22:49
问题 everyone. Today I encounter the following message in my Windows Phone App: Success SECURITY WARNING: Please treat the URL above as you would your password and do not share it with anyone. This happens when my users Login through the Web Browser Control, which get the Login URL from the GetLoginUrl method from the Facebook SDK for .net. This problem is not only happening in my Apps, I've seen users from other Apps having the same problem. Anyone found a solution to this? I'm running this SDK