windows-phone-8.1

How to get Contact's Nickname Windows Phone 8.1

前提是你 提交于 2019-12-08 04:44:46
问题 Using Windows.ApplicationModel.Contacts.ContactManager and ContactStore I can read all or search for contacts (People) with FindContactAsync(...). On some records I have only Nickname field set under Name (in People/phonebook) group. They are returned when I search for their Nickname but all Name related fields from Contact instance are string empty. I couldn't find any nickname field on that type either. Is there any way to get the contact Nickname on Windows Phone 8.1 (NOT Silverlight)? 回答1

UWP How to get ListviewItem Currently clicked and Previously clicked

喜你入骨 提交于 2019-12-08 04:37:32
问题 I am developing UWP App, I have a Listview bind with a class, wherein upto 10 items. Listview have a DataTemplate and a Usercontrol is inside this DataTemplate. I want to click on any item so the animation (storyboard) should start and the ColorBand should expand toward right and when I click on another item now the expanded (previously clicked) ColorBand should collapse and the current clicked item's ColorBand should expand. This approach can be possible if I put this ColorBand inside the

HMACSHA256 on Windows Phone 8.1?

a 夏天 提交于 2019-12-08 04:32:24
问题 According to this MSDN article, there exists a class for generating HMACSHA256 hash codes in the System.Security.Cryptography namespace on WP8. However, the .Cryptography namespace doesn't appear to exist. Is something wrong with my project or is this documentation wrong? Is there another way to compute HMACSHA256 hashes on WP8? http://msdn.microsoft.com/library/windows/apps/system.security.cryptography.hmacsha256(v=vs.105).aspx 回答1: After much anguish, I have a function that works. public

Windows Phone 8.1 Sqlite-net foreign key relationship

百般思念 提交于 2019-12-08 04:05:37
问题 I have installed sqlite-net from NuGet package in my windows phone universal app. But it does not contain foreign key relationship attribute between tables. I searched the web and found that SQLITE-Net Extenstions can handle this by using attributes, But it can only be installed on Windows 8.1 app not on windows Phone 8.1. How can use this extension in windows phone 8.1 or is there any other solution for foreign key relationships in sqlite? Thanks! 回答1: There exists a PCL version of this

Windows Store Apps playing Background Audio with MediaElement

做~自己de王妃 提交于 2019-12-08 03:29:45
问题 In my Windows Phone 8.1 App, I am using Media Element. I want it to continue to play Audio even if user navigated away from app. MediaElement is using video from remote source (.mp4) file. I also tried with sample video in here; http://go.microsoft.com/fwlink/p/?LinkID=272585 I followed example in How to play audio in the background (XAML) but could not make it work. This example is specific to Windows 8.1 not Windows Phone. While MediaElement is playing Video Clip when I press Windows button

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

﹥>﹥吖頭↗ 提交于 2019-12-08 02:40: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}

How to deploy an .appx into Windows Phone 8.1

感情迁移 提交于 2019-12-08 02:34:20
问题 I use the Microsoft.SmartDevice.Connectivity to connect to Windows Phone 8.1 OS with the instruction in this link: connect to windows phone 8 using console application Now I can connect to both Windows Phone 8.1 Emulator or Windows Phone 8.1 Device, and I can launch any application by using their ProductID. So now I would like to install my apps which I developed to these device by using this framework. I know that the XAP package for WP8.1 is an .appx file. To install 1 apps in this

Windows phone 8.1 dimensions issue

荒凉一梦 提交于 2019-12-08 02:05:41
问题 I am having problems understanding the dimensions while developing an App for windows phone. I know there are 3 resolutions: WVGA 480 × 800 15:9 WXGA 768 × 1280 15:9 1.6x scale 720p 720 × 1280 16:9 1.5x scale, 80 pixels taller (53 pixels, after scaling) The issue is that the Width of the page seems to be always 400 points; When i am positioning an item (a Rectangle) in my Page, i set it's Width to 400 . I run the 480x800 emulator (8.1 WVGA 4 inch 512 mb) and the rectangle occupies the whole

Windows Store Apps playing Background Audio with MediaElement

随声附和 提交于 2019-12-08 01:26:26
In my Windows Phone 8.1 App, I am using Media Element. I want it to continue to play Audio even if user navigated away from app. MediaElement is using video from remote source (.mp4) file. I also tried with sample video in here; http://go.microsoft.com/fwlink/p/?LinkID=272585 I followed example in How to play audio in the background (XAML) but could not make it work. This example is specific to Windows 8.1 not Windows Phone. While MediaElement is playing Video Clip when I press Windows button audio stops and when I hit back it continues to work. My code is like below; <MediaElement x:Name=

Setup for Windows Phone 8 Application Development. Error while Making new Project

*爱你&永不变心* 提交于 2019-12-08 01:20:16
问题 I have :- 1) Windows 7(64 Bit) 2) Visual Studio 13(Installed) 3) Windows Phone SDK 8.1(Installed) When I am creating new Mobile project, I am getting Error, A problem was encountered creating the sub project 'App.Mobile.Native.WinPhone'. The project file 'C:\Users\AppData\Local\Temp\us2to0hu.qdd\Temp\App.Mobile.Native.WinPhone.csproj' cannot be opened. There is a missing project subtype. Subtype: '{76F1466A-8B6D-4E39-A767-685A06062A39}' is unsupported by this installation. Please Help. 回答1: I