windows-phone-8.1

How to get distance between two locations in Windows Phone 8.1

半世苍凉 提交于 2019-12-06 10:55:25
问题 In Windows Phone 8 there seems to be method GeoCoordinate.GetDistanceTo() for calculating distances between two locations. (Even if the reference page for the method is not found.) But where is the equivalent in the whole Windows Phone 8.1 Geolocation namespace? I can't find a method to calculate distance between two locations at all. How to calculate distance between two locations in WP8.1? 回答1: GeoCoordinate.GetDistanceTo() is found in System.Device.Location namespace. But windows 8.1

Windows phone 8.1 app connect with a database

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 10:16:48
I'm totally new to the windows phone 8.1 app development. I'm trying to develop a simple app with a database using visual studio 2013. It is not a silverlight app. my app just have a text field and a button.And i have a MySQL database in a local server(WAMP). I need to get a input from the text field and store it in the database. First thing that I want to know is it possible to do? If it is possible I would be very grateful if you could provide a step by step guide or a link where i can learn about this. If it is not possible what are the other ways that I can try to store my input in a

Windows Phone 8.1 - Pivot Header

别来无恙 提交于 2019-12-06 09:47:42
问题 i am using pivot control, and i want to change the forground color of headers! but somehow i am not able to do it with pretty easy guess ! <Pivot x:Name="pivot1"> <PivotItem x:Name="pivot1item1" Header="Profile" Style="{StaticResource PuzzlePivotItemHeader}"> <Controls:Profile /> </PivotItem> <PivotItem x:Name="pivot1item2" Header="Filters" Style="{StaticResource PuzzlePivotItemHeader}"> <Controls:Filters /> </PivotItem> </Pivot> and style is : <Style x:Key="PuzzlePivotItemHeader" TargetType=

Text control used in Windows Phone 8.1 messaging app [closed]

风流意气都作罢 提交于 2019-12-06 09:36:51
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I need a text control similar to the one used by WP 8.1 messaging app that shows the up & down arrows that point to 'top-left' and 'bottom right'. I am not able to find one. I do see other apps like 'whapsapp', 'line' etc using similar controls. Is there a preexisting / opensource control available with that

ListView / List Filter Windows Phone 8.1 C#

╄→гoц情女王★ 提交于 2019-12-06 09:18:17
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 PopImage(string imagePath, string imageName) { ImagePath = imagePath; ImageName = imageName; } public

Where Can I Download Microsoft.Phone.WinJS.2.1?

一个人想着一个人 提交于 2019-12-06 09:13:38
问题 I'm trying to make a universal Windows App with WinJS. I've downloaded the latest update to VS2013. The RC version. I've installed all the SDKs I can find. I've installed the WinLibJS_VSE.exe extension, as well. Funny thing about that one is that VS updates keeps saying that I didn't... When I open up any of the sample universal WinJS apps - like the ones here http://code.msdn.microsoft.com/wpapps/Universal-Windows-app-cb3248c3 - I always end up with this error: Could not find SDK "Microsoft

SQLite secure Windows Phone 8.1

邮差的信 提交于 2019-12-06 08:42:42
问题 I have windows universal app. In this app I use SQLite and I need secure this file. It is saved in the LocalFolder and user has access to him. I need set access only for my APP or set password for this database or anything else. Please, Do you know about extension that can help me? Thanks 回答1: In Windows Store API you will find some namespaces, which I think you can use for your purpose: Windows.Security.Cryptography, Windows.Security.Cryptography.Core and Windows.Security.Cryptography

Change the style of content dialog button in windows phone universal application

蹲街弑〆低调 提交于 2019-12-06 08:33:03
I have this content dialog box defined inside my xaml: <ContentDialog x:Name="AlertMessage" Background="#363636" IsSecondaryButtonEnabled="True" SecondaryButtonText="Cancel" IsPrimaryButtonEnabled="True" PrimaryButtonText="Ok" > <ContentDialog.Content> <StackPanel Name="rootStackPanel" Height="Auto" > <StackPanel Margin="0"> <StackPanel Margin="0,0,0,10" Orientation="Horizontal"> <TextBlock x:Name="HeadingText" x:FieldModifier="public" Style="{StaticResource ApplicationMessageBoxHeadingStyle}" Text="Alert" /> <Image Margin="10,05,0,0" Source="/Assets/Images/alert.png" Width="35"></Image> <

AdMob Interstitial Cocos2d-x WP8

痞子三分冷 提交于 2019-12-06 08:22:41
问题 Can enyone tell me how to call AdMob Interstitial between scenes in my cocos2d-x game? I have tried this http://robwirving.com/2014/07/21/calling-c-methods-c-winrt-components/ guide, but i don't know how to run it from cocos classes. Is there any another ways, or some guides? 回答1: I've recently made it. You have to do few things. First of all create helper class, which will help you calling native function (I use this for all 3 platforms, but here's just windows phone): NativeHelper.h:

Windows Phone 8.1 camera initialization

家住魔仙堡 提交于 2019-12-06 08:22:41
问题 I am aware about that there are more duplicate questions about this, but please, it is super important to me. I have hard time now with Windows Phone 8.1 C# camera initialization. async private void InitCamera_Click(object sender, RoutedEventArgs e) { captureManager = new MediaCapture(); await captureManager.InitializeAsync(); try { captureManager = new Windows.Media.Capture.MediaCapture(); await captureManager.InitializeAsync(); if (captureManager.MediaCaptureSettings.VideoDeviceId != "" &&