windows-phone-8.1

HtmlAgilityPack using Linq for windows phone 8.1 platform

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-17 19:53:48
问题 As HtmlAgilityPack is yet not supported in windows phone 8.1,referencing manually in the project was a trick solution. But this is not the only problem. I could use XPath for my past project to select nodes. Now I can see that HtmlDocumentNode.SelectNode() function is no more(because of version compatibility may be). what I used in my past project was similar to this HtmlNode parent = document.DocumentNode.SelectSingleNode("//ul[@class='songs-list1']"); HtmlNodeCollection x = parent

Get device screen resolution in Windows Phone 8.1 XAML

二次信任 提交于 2019-12-17 18:35:19
问题 In Windows Phone 8 I can get the screen resolution using DeviceExtendedProperties or Application.Current.Host.Content.ScaleFactor . None of this works in Windows Phone 8.1 XAML. I could not find a way how to get the screen resolution in Windows Phone 8.1 XAML, is there a way? 回答1: When using the WinRT API, you can retrieve the screen resolution with Windows.UI.Xaml.Window.Current.Bounds (Height and Width). You need to multiply those values by the scale factor to get the real resolution. You

Windows Phone 8.1 Bing-like slide page animation

邮差的信 提交于 2019-12-17 16:34:32
问题 I'd like to add a page transition in my Windows Phone 8.1 app in such a way, that the following page will slide-in from the bottom of the screen. Similar effect is used when you launch Bing by hitting the Search button. Unfortunately, the MSDN isn't much descriptive on that topic. Does anyone know how to implement such an animation? 回答1: First you will have to disable current Transitions for the Frame - the best place would be in App.xaml.cs where the rootframe is created but it depends on

Compress and save base64 image on Windows Phone 8.1

自闭症网瘾萝莉.ら 提交于 2019-12-17 14:21:17
问题 I have implemented the following solution to compress a base 64 image and get back the new base 64 string. It works fine in Windows Phone 8.0 but targeting Windows Phone 8.1 it seems that there are changes in the environment. The WriteableBitmap has no constructor for a BitmapImage and the WriteableBitmap has no function SaveJpeg . I know that SaveJpeg is an extension, is there a way to add this extension to Windows Phone 8.1? Or is there any API which I can use? What do I have to change to

Compress and save base64 image on Windows Phone 8.1

心已入冬 提交于 2019-12-17 14:20:48
问题 I have implemented the following solution to compress a base 64 image and get back the new base 64 string. It works fine in Windows Phone 8.0 but targeting Windows Phone 8.1 it seems that there are changes in the environment. The WriteableBitmap has no constructor for a BitmapImage and the WriteableBitmap has no function SaveJpeg . I know that SaveJpeg is an extension, is there a way to add this extension to Windows Phone 8.1? Or is there any API which I can use? What do I have to change to

Compress and save base64 image on Windows Phone 8.1

南笙酒味 提交于 2019-12-17 14:20:23
问题 I have implemented the following solution to compress a base 64 image and get back the new base 64 string. It works fine in Windows Phone 8.0 but targeting Windows Phone 8.1 it seems that there are changes in the environment. The WriteableBitmap has no constructor for a BitmapImage and the WriteableBitmap has no function SaveJpeg . I know that SaveJpeg is an extension, is there a way to add this extension to Windows Phone 8.1? Or is there any API which I can use? What do I have to change to

Captured photo with stripes

杀马特。学长 韩版系。学妹 提交于 2019-12-17 13:22:38
问题 I'm using MediaCapture class to take a photo with Windows Phone 8.1 Runtime. The code, where I take a picture looks like this: // create a file StorageFile photoFile = await ApplicationData.Current.LocalFolder.CreateFileAsync("myFirstPhoto.jpg", CreationCollisionOption.ReplaceExisting); // take a photo with choosen Encoding await captureManager.CapturePhotoToStorageFileAsync(ImageEncodingProperties.CreateJpeg(), photoFile); The code is working quite fine, as I get a picture, but with strange

How to change color of the selected ListView item [WP8.1]

寵の児 提交于 2019-12-17 11:52:39
问题 I'm working on a C# project for Windows Phone 8.1, and I can't believe that I've already wasted almost a day looking for a solution to such a trivial problem: I have a page defined with XAML, on that page I have a ListView. At some point, I want one of the list view items to become selected, so I call myListView.SelectedIndex = whatever. Now I want that item to be distinguished visually from other items, for example, have its text drawn with a different color. How do I do that? Here are the

Is it possible to update an existing Windows Phone 8 app to Windows Phone Store 8.1

寵の児 提交于 2019-12-17 06:53:54
问题 I've a Windows Phone 8.0 app on the Windows Phone Store, and I want to update my app to Windows Phone store API (and not Windows Phone Silverlight 8.1) to prepare Windows 8.1 version. Is it possible to update and migrate IsolatedStorage data from SL8 to Phone Store App? 回答1: TL;DR; - It preserves data on Isolated Storage when updating from WP8.0 to WP8.1 Runtime. Because the provided link to MSDN says only about Silverlight apps, and it's not clear (if I hadn't missed something) what would

Register Background Task in Silverlight 8.1 app

跟風遠走 提交于 2019-12-17 06:16:09
问题 I'm working on an app that uses BLE to communicate with an item and I need to receive background notifications from it. I am aware of the existence of GattCharacteristicNotificationTrigger but I can't find any way to register a Background Task in a Silverlight 8.1 app. Any tip? 回答1: Registering a BackgroundTask is quite well explained here at MSDN. Here is simple example fired upon TimeTrigger and showing a Toast, the steps are (applies to both - RunTime and Silverlight apps): 1.