windows-phone-8.1

How to get the resolution of screen (width and height) in Windows Phone 8.1?

一曲冷凌霜 提交于 2019-12-22 08:18:27
问题 I am developing an app for Windows Phone 8.1 and my app just can work properly if I can get the resolution of mobile screen. I tried many ways but they just work on Windows Phone 8.0 and lower. I tried these ways from: How to get screen size on Windows Phone 7 Series? How can I get a screen resolution of Device (Windows Phone) How to get Screen size of a windows phone 8 device? How to get screen resolutions on Windows Phone devices If someone knows how to do it on Windows Phone 8.1 , please

How to access downloads folder in windows phone 8.1

荒凉一梦 提交于 2019-12-22 06:24:10
问题 I want to download files to Downloads folder and read. it is a root folder like photos and videos. But Windows.Storage.DownloadsFolder isn't available for phone and I don't see it in KnownFolders like Windows.Storage.KnownFolders.PicturesLibrary; Also I tried C:\Data\Users\Public\Downloads\ it gives an unauthorized result. I see some apps has access to it, but how? 回答1: You can use a file or folder picker. I'm not sure if you want the user to chose a file, or if you want to pick a file

How to access downloads folder in windows phone 8.1

﹥>﹥吖頭↗ 提交于 2019-12-22 06:23:08
问题 I want to download files to Downloads folder and read. it is a root folder like photos and videos. But Windows.Storage.DownloadsFolder isn't available for phone and I don't see it in KnownFolders like Windows.Storage.KnownFolders.PicturesLibrary; Also I tried C:\Data\Users\Public\Downloads\ it gives an unauthorized result. I see some apps has access to it, but how? 回答1: You can use a file or folder picker. I'm not sure if you want the user to chose a file, or if you want to pick a file

App Resuming event not firing when the app is resumed in WP 8.1 store app

♀尐吖头ヾ 提交于 2019-12-22 06:15:11
问题 My WP 8.1 store app behaves very strangely. App Resuming event fires as expected when I quickly navigate away and then come back. But If I keep the app in background for some time and when comes back, the app fires the Constructor and OnNavigatedTo events instead of the Resuming event and has the black "Resuming..." screen for a couple of seconds(about 4 seconds).This is an app with a BackgroundAudio task. Even the sample BackgroundAudio app from MS behaves like this. Anyone knows what's

How to hide Windows Phone 8.1 soft keyboard effectively?

故事扮演 提交于 2019-12-22 05:41:38
问题 I want to hide the soft keyboard when the Enter key is tapped, but no solutions works for me properly. (Windows Phone 8.1 Universal App) This one just doesn't work: if (e.Key == VirtualKey.Enter) { textBox.IsEnabled = false; textBox.IsEnabled = true; } A method like this: private void LoseFocus(object sender) { var control = sender as Control; var isTabStop = control.IsTabStop; control.IsEnabled = false; control.IsTabStop = false; control.IsEnabled = true; control.IsTabStop = isTabStop; }

Universal app - Loading combobox' ItemsSource async gives weird behaviour

流过昼夜 提交于 2019-12-22 05:14:21
问题 While working on an Universal App (currently only on the WP8.1-side), I've stumbled upon the following weird thing. I've got a ComboBox, the UserControl (located in the WindowsPhone-project) it's in is binded to a VM in the Shared project. Both the ItemsSource and SelectedItem are binded to their respective properties in the VM. When running the application, when you select any item except the first one, it is working perfectly. But, when I select the first item, the string displayed in the

Show flyout using BottomAppBar

a 夏天 提交于 2019-12-22 03:59:29
问题 I'm trying to show a simple Flyout (with informational content) when a AppBarToggleButton within BottomAppBar is pressed, but my solution doesn't work. :( This is my code: <Page.BottomAppBar> <CommandBar> <AppBarToggleButton x:Uid="MapPageAppBarLegend" Label="" Icon="List"> <FlyoutBase.AttachedFlyout> <Flyout> <TextBlock Text="Informations here..."/> </Flyout> </FlyoutBase.AttachedFlyout> </AppBarToggleButton> </CommandBar> </Page.BottomAppBar> Nothing appears.. Can anyone help me to showing

ArgumentException - Use of undefined keyword value 1 for event TaskScheduled in async

旧城冷巷雨未停 提交于 2019-12-22 01:27:16
问题 Getting System.ArgumentException - Use of undefined keyword value 1 for event TaskScheduled in async apis. There is something wrong when running the first await statement in an Universal app with Visual Studio 2013 Update 3. I am using WP8.1 Universal and silverlight apps after I installed Visual Studio 2013 Update 3. The exceptions happens in Emulator/Device modes. I have spent a couple of days researching this issue without any resolution. I have a sibling article at Windows Dev center

Windows Phone 8.1 app with 2 hub sections

我与影子孤独终老i 提交于 2019-12-21 22:10:50
问题 I've created a WP8.1 hub app with two hub sections. This produces in an odd behavior sliding between the two hubs. They don't "fly" into place like they are supposed to, it's more like a vertical scrollable view. If I then include a third hub section everything works just fine. I've uploaded a YouTube video about it here: http://youtu.be/ns6bXmgajlQ Is this a bug? Is there a workaround (except the adding a third dummy section)? 回答1: The Hub control does not go around and around as the

Cordova Camera Plugin returns green pictures Windows Phone 8.1

痞子三分冷 提交于 2019-12-21 21:55:07
问题 Very strange behaviour: after takinf a 2nd or third picture using cordova camera plugin returned picture is green and about 200kb while normally about 2 mb. When taking more 'green' pictures application crashes and default camera screen becomes green untill phone is restarted. Tryed different parameters like getting url instead of base64, different picture sizes - no luck. This is reproduced on Nokia Lumia 520, but Microsoft Lumia 535 allowes to take about 6 pictures. While android works fine