windows-phone-8.1

Windows Phone 8.1: DeviceExtendedProperties or DeviceStatus for Device Unique ID

喜你入骨 提交于 2019-12-21 21:30:54
问题 I want to get the Device ID in Windows Phone 8.1 . The DeviceExtendedProperties or DeviceStatus are not available in WP8.1 (there is no Microsoft.Phone.Info namespace). I've just found the EasClientDeviceInformation class that I can't get the Id from it. There is an exception in the Id property: And other properties are't unique. There is another solution here but I don't know if it is safe or reliable to use: (?) https://stackoverflow.com/a/23537207/3682369 回答1: Yes, you can use the

How to handle the back button on WP 8.1 using MVVM light?

与世无争的帅哥 提交于 2019-12-21 20:29:40
问题 I'm searching for the appropiate way to handle the back button pressed event on Windows Phone 8.1 WinRT using the NavigationService available on MVVM light 5. So far I think the best place to do it is inside the ViewModelLocator by registering the GoBack method of the NavigationService while creating it following the approach outlined in NavigationService in MVVM Light V5 This is an effective approach. However, I can't handle validation before navigating back so I was wondering if there is a

How to handle the back button on WP 8.1 using MVVM light?

家住魔仙堡 提交于 2019-12-21 20:29:21
问题 I'm searching for the appropiate way to handle the back button pressed event on Windows Phone 8.1 WinRT using the NavigationService available on MVVM light 5. So far I think the best place to do it is inside the ViewModelLocator by registering the GoBack method of the NavigationService while creating it following the approach outlined in NavigationService in MVVM Light V5 This is an effective approach. However, I can't handle validation before navigating back so I was wondering if there is a

Size of button in Windows Phone 8.1 App is not expected

五迷三道 提交于 2019-12-21 19:56:38
问题 I'm a newbie to Windows Phone Development and trying to place 2 buttons into a grid by following code: <Grid Margin="10" Height="60"> <Grid.ColumnDefinitions> <ColumnDefinition Width="50"/> <ColumnDefinition Width="50"/> </Grid.ColumnDefinitions> <Button MinWidth="50" Width="50" Height="60" Grid.Column="0" Background="Red" BorderThickness="0" Content="-"/> <Button MinWidth="50" Width="50" Height="60" Grid.Column="1" Background="Green" BorderThickness="0" Content="+"/> </Grid> But the button

How to convert a Windows.UI.Color into a string color name in a Windows Universal app

ε祈祈猫儿з 提交于 2019-12-21 19:19:05
问题 I'm trying to convert a Windows.UI.Color into a simple string color name in my Windows 8.1 Universal app. I already have the ARGB values from the Color (even the hex code), and I just want its associated known name (for example, from #7AFF7A7A to "salmon"). Since System.Drawing is not available in WinRT, I cannot use ColorConverter or ColorTranslator. I've tried converting the Windows.UI.Color object into a SolidColorBrush or even a Brush, but none of them provide the name conversion

How to convert a Windows.UI.Color into a string color name in a Windows Universal app

走远了吗. 提交于 2019-12-21 19:17:07
问题 I'm trying to convert a Windows.UI.Color into a simple string color name in my Windows 8.1 Universal app. I already have the ARGB values from the Color (even the hex code), and I just want its associated known name (for example, from #7AFF7A7A to "salmon"). Since System.Drawing is not available in WinRT, I cannot use ColorConverter or ColorTranslator. I've tried converting the Windows.UI.Color object into a SolidColorBrush or even a Brush, but none of them provide the name conversion

Detecting reboot programmatically in Windows Phone 8.1

徘徊边缘 提交于 2019-12-21 17:39:07
问题 I have a WP 8.1 Runtime which launches a DeviceUseTrigger background task. The problem is that whenever the phone reboots, this task obviously cancels, but the task registration remains in place. So when I launch my app the next time the background task appears to be running when in reality it isn't. I want some way of detecting whenever the phone reboots and/or detect in some way whether or not the task is actually running or not. The code I'm using to check background task registration is

Implement Realtime Barcode Scanner on Windows Phone 8.1 Runtime using ZXing and MFT

空扰寡人 提交于 2019-12-21 12:39:17
问题 I'm working on a Windows Phone 8.1 Runtime shopping application which needs barcode scanner feature. I'm using the ZXing lib, which is fine. My problem isn't about decoding the picture, ZXing does a great job, but to get the Camera Preview realtime, and feed it to ZXing. After a little research I found this forum https://web.archive.org/web/20150328233747/http://developer.nokia.com/community/discussion/showthread.php/247707-Windows-Phone-8-1-Windows-Media-Capture-API-and-Preview-Frames. Can

SQLite.WP81 extension SDK installs on VS2013 U2 but unable to reference assembly in WP 8.1 project

我怕爱的太早我们不能终老 提交于 2019-12-21 12:22:54
问题 After installing the SQLite.WP81 extension SDK on Visual Studio 2013 Update 2, the SQLite for Windows Phone assembly does not appear in the list of Extensions in the Windows Phone 8.1 tab. There is a discussion on the SQLite for Windows Phone 8.1 download page in the Visual Studio Gallery where another developer seems to have the same issue. Another developer suggests manually installing the extension, but that made no difference. (And that advice seems suspect as it appears this extension is

Onedrive API vs LiveSDK

僤鯓⒐⒋嵵緔 提交于 2019-12-21 07:06:25
问题 I am developing for WP8.1 and probably will port on other platforms. I want to integrate a OneDrive functionality, however, I can't understand what is the difference between LiveSDK (from NuGet packages) and OneDrive API. It seems that Microsoft does not communicate at all regarding that, I really don't understand why. As far as I understood, the LiveSDK is the old one and will be replaced by OneDrive API , but the LiveSDK seems so much simpler to use that I can't understand their logic... On