windows-phone-8.1

How to get nearby locations using query API in windows phone 8.1

十年热恋 提交于 2019-12-25 03:42:06
问题 Using this query api how to get the nearby places in to our mapcontrol in windows phone 8.1. When I placed the code from the above link it shows the 404 error (i.e resource not found). I got bing maps key. But how to place the access id. How the data source are named. Please help me. string BingMapsKey = "MY_BING_MAPS_KEY"; string DataSourceID = "20181f26d9e94c81acdf9496133d4f23"; string dataSourceName = "petrolbunk"; string dataEntityName = "petrolbunk"; string accessId = DataSourceID;

Passing a string parameter to a textblock

前提是你 提交于 2019-12-25 03:32:57
问题 I am trying to pass a string parameter from another xaml page (upon click of a button) into a content dialog and display it inside a textblock in another colour. Example of the textblock text: Hey -parameter in red colour-, well -parameter in blue colour-, ... some text... -parameter in another colour- My current method is to create several textblocks with different properties and then programmatically set the text to the corresponding textblock in the constructor. There are too much

Adding reference to windows phone class library via project will build; adding the dlls directly fails

試著忘記壹切 提交于 2019-12-25 03:32:30
问题 I wasn't quite sure how to word the title as I'm very confused about this problem, edits or suggestions to clarify are welcome... Anyway, the problem is that I have a Windows Phone 8.1 (RT) application, and I'm attempting to use add a reference to a class library so that I can make use of code and XAML views in that project. If I add the entire class library project to my visual studio solution, and then add a reference to that project in my app, everything works fine. However, if I remove

Center map between two points WinRT

陌路散爱 提交于 2019-12-25 03:26:43
问题 im trying to center the windows phone map between two points, adjusting center and zoom to make that points visible at the same time. Im Android and IOS there are functions to do it, as example this is how to do it in Android: LatLngBounds.Builder builder = new LatLngBounds.Builder(); builder.include(myPos.getPosition()); builder.include(defaultPos.getPosition()); mapa.animateCamera(CameraUpdateFactory.newLatLngBounds(builder.build(), 50)); How can i do the same in WinRT? Thanks in advance.

Google.Apis SDK: Google+ sharing in windows phone

穿精又带淫゛_ 提交于 2019-12-25 03:14:04
问题 I have integrated Google.Apis SDK in my windows phone 8.1 store app. I have not found any API to share interactive posts on google+. Is that API is available in Google.APis SDK? If yes, Which one? For iOS GPPNativeShareBuilder is used for sharing. For Android PlusShare.Builder](https://developers.google.com/+/mobile/android/share/interactive-post) is used How to do this in Windows Phone 8.1 runtime app?. Thanks 回答1: Although a native solution does not exist for Windows, you can still build

On WP8.1 ONLY: cannot read more than 65536 bytes off an HTTP Stream

北城以北 提交于 2019-12-25 03:03:53
问题 Hope someone could please provide any help on an issue I'm struggling for quite a lot of time. Goal : I need to read an http stream from a specified URI, that I startup & endlessly read with the following code (which I stripped down to minimum so to really focus on the bare communication problem): public void StartupStream(Uri uri) { HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(uri); // Start the asynchronous request request.BeginGetResponse(OnGetResponse, request); }

Upload video on Facebook using Graph REST API on Windows Phone 8.1

瘦欲@ 提交于 2019-12-25 02:53:51
问题 I want to upload video on Facebook using Graph REST API on Windows Phone 8.1, below given is my code, which doesn't throw exception but not working, just stuck the execution. var backgroundUploader = new BackgroundUploader(); //var fs2 = await videoFile.OpenAsync(Windows.Storage.FileAccessMode.Read); backgroundUploader.SetRequestHeader("Content-Type", "multipart/form-data; boundary=" + "8af25ae9-b1b4-4ff7-908d-27c3fbe7d78a"); backgroundUploader.Method = "POST"; UploadOperation uploadOperation

PivotItem Header won't change to a custom font

我是研究僧i 提交于 2019-12-25 02:44:17
问题 PivotItem Header font will not change. Property is set to Content. This font works in other areas of my app, but not the PivotItem Header. <controls:Pivot Margin="0"> <controls:PivotItem Header="Welcome" FontFamily=".Fonts/sketch123.ttf#sketch123"> </controls:PivotItem> 回答1: Tried this before but it didnt work. I must've typed it wrong initially. This works: <controls:PivotItem > <controls:PivotItem.Header> <TextBlock Text="welCome" FontFamily="Heart Breaking Bad" FontSize="80" Margin="24,20

Multi Device Hybrid App for Windows Phone: How to set the logo?

浪尽此生 提交于 2019-12-25 02:25:25
问题 I am trying to figure out, how to set the app logo as well as the splashscreen using the preview for cordova apps (or Multi-Device Hybrid Apps) in Visual Studio 2013. I tried adding <platform name="wp8"> <icon src="img/logo.png" width="99" height="99" /> <!-- tile image --> <icon src="img/logo.png" width="159" height="159" /> </platform> However this won't do the trick. It's a pretty new thing so finding informations on this topic is kind of hard. It was pretty easy, using the old method. Any

handle the new windows phone software buttons (WinRT)

烂漫一生 提交于 2019-12-25 01:49:44
问题 What is the best way to handle the windows phone software buttons that pop up overlaying my app content.Earlier they had these hardware buttons(Back, Windows,Search Buttons) but now in some devices they have introduced software keys.Example Lumia 730 device. 回答1: There are 2 ways: 1) You can set the app or the page to auto-resize layout using Windows.UI.ViewManagement.ApplicationView.GetForCurrentView().SetDesiredBoundsMode(Windows.UI.ViewManagement.ApplicationViewBoundsMode.UseVisible);