windows-phone-8.1

ListView / List Filter Windows Phone 8.1 C#

ぐ巨炮叔叔 提交于 2019-12-07 20:52:15
问题 I have a list of data public class PopImage { public async Task<List<PopImage>> PopDatas() { string imgfolder = "PopularImages"; var data = new List<PopImage>(); StorageFolder folder = Windows.ApplicationModel.Package.Current.InstalledLocation; StorageFolder subfolder = await folder.GetFolderAsync(imgfolder); var files = await subfolder.GetFilesAsync(); foreach (var items in files) { data.Add(new PopImage(imgfolder+"/"+items.DisplayName+ ".jpg", items.DisplayName)); } return data; } public

HTML agility pack for windows phone 8.1

拜拜、爱过 提交于 2019-12-07 19:49:36
问题 I am still trying programming for windows phone 8.1 but I have a little problem. I want parse HTML data and I found one tutorial for better mind this tutorial = click here; but It works great only in windows phone 7/8 with HTMLAgility pack. I tried manual add library but versions sl3-wp, winrt45 don't support method: htmlDocument.DocumentNode.SelectNodes("//div[starts-with(@class, 'list_item')]")); and version for wp7 doesn't work too. Any Ideas how to parse data for WP 8.1 ? thank you in

Debugging a Windows Phone 8.1 Unit test (Visual C++)

家住魔仙堡 提交于 2019-12-07 18:58:08
问题 The issue is that I have created an Universal App for Windows 8.1 and Windows Phone 8.1 choosing in the wizard Visual C++ -> Store Apps -> Universal Apps -> Windows Runtime Component. So to test its behaviour we have created a Windows Phone 8.1 Unit test project (also Visual C++) where we add as reference the Universal App project, and also in the project properties in the tab Configuration properties -> C/C++ -> General, in Additional include directories I referenced the Universal App

How to add a looping selector to a Windows Phone 8.1 app?

情到浓时终转凉″ 提交于 2019-12-07 18:30:03
问题 I'm trying to a add a list of numbers like in the picture below to a page in a Windows Phone 8.1 app, but I can't find the looping selector control in the toolbox to acheive this: http://www.geekchamp.com/articles/wp7-loopingselector-in-depth--part1-visual-structure-and-api I've tried to add the missing control by right clicking on the toolbox and adding a control but its not there. This is how I've achieved picking a time using the coding4fun time span picker: <c4fToolkit:TimeSpanPicker

How do I include “content” files in subdirectories in Windows 8.1 Phone?

断了今生、忘了曾经 提交于 2019-12-07 17:09:21
问题 I'm working on a project with a lot of files (a game). These files can change from outside VS 2013, e.g. by artists. The files are located in subdirectories and our game expects them there. For instance images/items/block.png I've tried using a post-build event xcopy /C /Y /I /R /S /Q "$(SolutionDir)game_data\*" "$(TargetDir)" and also with $(LayoutDir). The problem does not occur on our Desktop (Windows RT Store) project because I just copy the files to the build's AppX directory and when I

Windows Phone 8.1 Loading Images from Remote URLs Placeholder

佐手、 提交于 2019-12-07 16:33:13
问题 I'm messing around with some windows phone development as I'm new to it coming from an Android background. I am using "theCatAPI" to load a random picture of a cat and show it, then when the picture is clicked, or the button at the bottom of the screen, the image refreshes to a new one. I have the following so far: XAML: <Page x:Class="CatFactsPics.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local=

how to wait for webclient OpenReadAsync to complete

蹲街弑〆低调 提交于 2019-12-07 16:27:31
问题 I am using WebClient to download some stuff from internet in Windows Phone 8.1 app. Below is the sample code i am using in my app - where i am calling below method, but my webclient is not waiting to complete the read operation and returning immediately after OpenReadAsync call. how can i make sure that my method return operation must wait till OpenReadCompleted event is completed? I have seen multiple similar questions, but couldn't find a solution. MyCustomObject externalObj; // my custom

How to change AppBarButton circle and icon color windows phone 8.1 Page bottom bar

非 Y 不嫁゛ 提交于 2019-12-07 14:56:17
问题 I want to customize the circle and icon color of AppBarButton so far I tried following style but it does not work. In design mode it show circle color to green. But when I run the circle color is not changed what I am doing wrong here. App bar button style <Style x:Key="AppBarButtonStyle1" TargetType="AppBarButton"> <Setter Property="Foreground" Value="Yellow"/> <Setter Property="VerticalAlignment" Value="Top"/> <Setter Property="HorizontalAlignment" Value="Left"/> <Setter Property=

Status Bar and Bottom App Bar occlusion WP 8.1

懵懂的女人 提交于 2019-12-07 14:41:53
问题 I'm using the following code to make the status bar appear on top of content (and setting background opacity = 0). var applicationView = Windows.UI.ViewManagement.ApplicationView.GetForCurrentView(); applicationView.SetDesiredBoundsMode(Windows.UI.ViewManagement.ApplicationViewBoundsMode.UseCoreWindow); This has the adverse affect of also making the bottom app bar overlap the page content. Is there a way to make the status bar overlap content, but not also the bottom app bar? 来源: https:/

Add Bing Maps Reference to Windows Phone 8.1 project

北慕城南 提交于 2019-12-07 14:32:37
问题 I want to add a reference to Bing Map in windows Phone 8.1 C# project. I have installed this package http://visualstudiogallery.msdn.microsoft.com/224eb93a-ebc4-46ba-9be7-90ee777ad9e1/ But now I can't choose the dll under "Add Reference". If I try this for a Windows 8.1 project (Surface) I can choose the Bing Maps DLL and use the Map Element. How can I use the Bing Map under Windows Phone 8.1? I tried this tutorial but it didn't work for me. http://msdn.microsoft.com/en-us/library/dn456475