windows-phone-8.1

GridView with 2 columns, fill width

不想你离开。 提交于 2019-12-28 02:56:26
问题 The result I want to achieve is pretty simple, a list with 2 columns, both with equal width. In Windows Phone 7/8 this could easily be achieved using a ListBox with a WrapPanel as ItemsPanel and setting the ItemWidth to 240 (as the screen width was 480). Now I'm Writing a Universal App, but here the problem is that the screen is not guaranted to have a width of 480 (not even for the Phone it seems) so I can't set the ItemWidth as I want it to fill the width of the screen. I have been able to

Photo capture on Windows Store App for Windows Phone

ぐ巨炮叔叔 提交于 2019-12-27 19:13:43
问题 Well, my question is simple: How do I capture pictures with a Windows Store App for Windows Phone 8.1 , using the camera? The samples on MSDN use Windows.Media.Capture.CameraCaptureUI , which is not usable on Windows Phone, or are for Silverlight . I can't find any doc or sample specifically for Windows Phone app using Windows Runtime. If someone knows, or even have the doc for this, I would be glad. 回答1: In WP8.1 Runtime (also in Silverlight) you can use MediaCapture. In short: // First you

how to develop function read sms then restore in future by windows phone 8.1?

爱⌒轻易说出口 提交于 2019-12-25 19:59:06
问题 My task is write a application that read sms, save to file then restore in future. But i can't find any document related to restore sms. Can we restore sms with window phones. 回答1: Windows Phone goes not give apps access to SMS messages, other than drafting and prompting the user to send a message. 来源: https://stackoverflow.com/questions/30255474/how-to-develop-function-read-sms-then-restore-in-future-by-windows-phone-8-1

how to develop function read sms then restore in future by windows phone 8.1?

。_饼干妹妹 提交于 2019-12-25 19:57:16
问题 My task is write a application that read sms, save to file then restore in future. But i can't find any document related to restore sms. Can we restore sms with window phones. 回答1: Windows Phone goes not give apps access to SMS messages, other than drafting and prompting the user to send a message. 来源: https://stackoverflow.com/questions/30255474/how-to-develop-function-read-sms-then-restore-in-future-by-windows-phone-8-1

how to develop function read sms then restore in future by windows phone 8.1?

只愿长相守 提交于 2019-12-25 19:57:09
问题 My task is write a application that read sms, save to file then restore in future. But i can't find any document related to restore sms. Can we restore sms with window phones. 回答1: Windows Phone goes not give apps access to SMS messages, other than drafting and prompting the user to send a message. 来源: https://stackoverflow.com/questions/30255474/how-to-develop-function-read-sms-then-restore-in-future-by-windows-phone-8-1

How to create a Thread in windows phone 8.1

痞子三分冷 提交于 2019-12-25 18:56:53
问题 Hi , I've tried to create a Thread in windows phone 8.1 without success. Althought in msdn documentation is written that Thread is supported, actually do not works (https://msdn.microsoft.com/en-us/library/274eh01d(v=vs.110).aspx) so I can't figureout how can I create a Thread, I want to create a Syncronization context to execute async on a single thread (not current thread), but just to achieve what event loop do thanks update for further information: I would be more specific: platform is

Hide status bar in Windows Phone 8.1 with XAML

ⅰ亾dé卋堺 提交于 2019-12-25 16:53:32
问题 I'm trying to hide status bar in Windows Phone 8.1. I see a thread to do this (Hide Status bar in Windows Phone 8.1 Universal Apps), but this is C#. I would like to hide this status bar in XAML. Reason is that Expression doesn't detect the code in class constructor. When I launch the app all is working, but in Blend it still display the status bar, and so I can't make correctly the design... My question is : Is there a way to hide status bar in XAML (via a property in Page tag or other) ? Or

Bing Map polyline using MVVM pattern XAML

蹲街弑〆低调 提交于 2019-12-25 16:47:22
问题 I am working on widows phone 8.1 map based application.I want to know how can I draw a map polyline using MVVM pattern. I've already achieved this using the code behind for first creating the polyline and then adding it. My question is can I define a polyline in the XAML itself and give it a source binding to one of my observable collections of type BasicGeopositions in my viewmodel. If yes then how? Data to be plotted using polyline: is a list of BasicGeoposition that contains latitudes and

update table in Azure Mobile Service

こ雲淡風輕ζ 提交于 2019-12-25 14:41:00
问题 How to update particular record in azure mobile Service. For Example I have a table in azure called country having two columns country_id country_name If I want to update the record with country_id=5 from USA to United State of America. How to Perform this. //Global Variable private MobileServiceCollection<country, country> items; private IMobileServiceTable<country> todoTable = App.MobileService.GetTable<country>(); class country { public string id { get; set; } public string country_name {

c# Windows Phone 8.1 How to get Geocoordinate object

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 12:42:34
问题 I need to get Geocoordinate object with my Longitude and Latitude. Cannot get Geocoordinates by new() https://msdn.microsoft.com/en-us/library/windows/apps/windows.devices.geolocation.geocoordinate One way is for example this code var locator = new Geolocator(); locator.DesiredAccuracyInMeters = 50; var position = await locator.GetGeopositionAsync(); Geocoordinate Coordinate = position.Coordinate; Which gets GPS coordinate. But I need Geocoordinate with my Longitude and Latitude. 回答1: You