windows-phone

windows phone bing maps crashing

[亡魂溺海] 提交于 2019-12-11 10:38:44
问题 My app crashes in the emulator when u load the map and then move the map and zoom in instantly. ive tried many different soulutions i found on the internet as the only error i get is Catastrophic Failure and no further information (no line number or any error information whatsoever) C# code public sealed partial class MapView : MvxWindowsPage { double lat=0; double lon=0; Geolocator gl = new Geolocator(); MapIcon Micon = new MapIcon(); Geopoint blo; public MapView() { this.InitializeComponent

“not found” error calling mongohq rest api from windows phone

﹥>﹥吖頭↗ 提交于 2019-12-11 10:36:53
问题 I am having a problem calling the mongohq REST API from a windows phone (7.1) application. I POSTing to a URL of the following form: https://api.mongohq.com/databases/[database]/collections/[collection]/documents?_apikey=XXXXXXXXXXX Exactly the same URL, when called from a browser-based REST client works for both GET and POST requests. But when I POST or GET to that URL from a windows phone app using either HttpWebRequest or WebClient, I get back a weird error that says simply "the server

Loading maptiles into a BingMap silverlight control

大憨熊 提交于 2019-12-11 10:27:42
问题 I am new to Windows Phone development and I am currently building an application for a company that want to use its own map (build up of maptiles). I want to use the BingMap silverlight control in the solution. My question is: Is this really possible? I have tried to override the "GetUri" method by inherit from the MapTiles class like this; public class MyTiles : Microsoft.Phone.Controls.Maps.TileSource { public override Uri GetUri(int x, int y, int zoomLevel) { if (zoomLevel > 0) { var Url =

How to remove a specific page from Navigation cache in Windows Phone 8.1 RT?

亡梦爱人 提交于 2019-12-11 10:26:52
问题 I have set NavigationCacheMode to Required in some pages of my WP 8.1 XAML app. How can I remove a specific page from that? This is not Navigation stack. 回答1: If a page has NavigationCacheMode set to Required , there is currently no way to remove it explicitly. If you use Enabled , you can reset the cache using the cache mode: private void ResetPageCache() { var cacheSize = ((Frame) Parent).CacheSize; ((Frame) Parent).CacheSize = 0; ((Frame) Parent).CacheSize = cacheSize; } 回答2: I couldn't

How to do image collision in C# for Windows Phone 8 using Windows Phone App?

戏子无情 提交于 2019-12-11 10:18:14
问题 I have 2 images(bar and greenBall1). bar can be move up and down depends on the user response. While, greenBall1 is moving around the screen. I want to do an image collision if both the images touch each other, greenBall1 will change its velocity. The codes that I have for greenBall1 are as below. private void OnUpdate(object sender, object e) { Canvas.SetLeft(this.GreenBall1, this.greenBallVelocityX + Canvas.GetLeft(this.GreenBall1)); Canvas.SetTop(this.GreenBall1, this.greenBallVelocityY +

How to check from scheduled agent if the foreground app is running

て烟熏妆下的殇ゞ 提交于 2019-12-11 09:58:21
问题 Is it possible to check if the foreground app is running from a scheduled task? In my case, it duplicates a functionality of the app - so I could skip that part in the agent to preserve resources. Thanks 回答1: You cannot access a list of processes or anything similiar that would give you the info if your app is running. You can do smething like storing a flag to the settings when your app starts and erasing it when your app exists and check this flag in the background agent. 来源: https:/

Vertical scrolling for HubSection content

落爺英雄遲暮 提交于 2019-12-11 09:57:41
问题 I am working on Windows Phone 8.1 app (Windows Runtime)and I have created a page with the following layout : <Grid Grid.Row="1" Margin="0, 10, 0, 5" > <Grid> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <maps:MapControl x:Name="LocationMap" Grid.Row="0" Height="220" MapServiceToken="..."/> <Hub Grid.Row="1" Margin="0, 25, 0, 0"> <HubSection Header="ABOUT" x:Name="AboutHubSection"> <DataTemplate> <Grid> <Grid.RowDefinitions>

ApplicationBarIconButton not displaying

﹥>﹥吖頭↗ 提交于 2019-12-11 09:55:33
问题 This question was migrated from Windows Phone Stack Exchange because it can be answered on Stack Overflow. Migrated 5 years ago . I create images from online at picresize.com to use as application bar icons. I made them 48 x 48. The only thing I didn't do was make the background transparent. Now the icons just show as white blocks and nothing else. This page, http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff431806(v=vs.105).aspx, specifies what should be done but doesn't say a

The scrollviewer “locks” when scrolling vertically or horizontally

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 09:45:23
问题 If I start the scrolling vertically or horizontically the scroller "locks", such that you can only scroll horizontically or vertically, untill you let go. If I however start of by scrolling diagonally, there is no problem, in thhese cases I can manouvre the scrollviewer how i want. How do I make sure that the scrollViewer doesn't "lock" if I start of scrolling vertically or horizontically. Here is my scrollViewer: <StackPanel> <TextBlock x:Name="MainPageTitle" Text="{Binding title}" Height=

Panorama Image Title (bind image path)

流过昼夜 提交于 2019-12-11 09:42:50
问题 This question was migrated from Windows Phone Stack Exchange because it can be answered on Stack Overflow. Migrated 7 years ago . I was wondering if it's possible to bind the image path when using an Image as the Panorama Title, the reason why I need a bind for the Source is that when the user have the phone background to "white" the logo would be black, and vice versa. This is the code I'm using: <controls:Panorama.TitleTemplate> <DataTemplate> <Image Source="/PanoramaApp5;component/Images