windows-phone-8.1

Where i can obtain client secret for my Universal app?

倖福魔咒の 提交于 2019-12-20 03:27:11
问题 I'm following this guide (http://msdn.microsoft.com/library/windows/apps/hh465407) to implement push notifications on my app, but it seems to be outdated since I can't find the client secret as shown in this image: . In developer dashboard (App identity tab) I've got only SID. I also checked Windows Live Services site but there are only passwords and private keys. There is no client secret: Where i can find that exact client secret shown in the msdn tutorial? 回答1: Azure also can't validate my

How to check if Windows device is phone or tablet/pc?

半世苍凉 提交于 2019-12-20 03:19:28
问题 How to check if Windows device is phone or tablet/PC? I need to know in order to use different sizes for xaml elements 回答1: I think you can try to use EasClientDeviceInformation class: EasClientDeviceInformation info = new EasClientDeviceInformation(); string system = info.OperatingSystem; on WP it should return WindowsPhone and Windows on desktop. 回答2: You shouldn't use different sized Xaml based on if it's a phone or a tablet. You should use different Xaml based on the size and resolution

How to pass an object to background project in Windows Phone?

北城以北 提交于 2019-12-20 03:14:53
问题 My problem is that I have an StorageFile object in foreground and want to play it in BackgroundMediaPlayer like this: mediaPlayer.SetFileSource(soundStorageFile); but it is not possible to use SetFileSource() in the foreground, you should call it in the background task, or initialize a third project in the background and call it from there. So how can I pass an object to the background project? (It's a Windows Phone Runtime app) 回答1: Communication between UI and BackgroundMediaPlayer can be

undefined indexedDB on Windows Phone 8.1 javascript app

北城以北 提交于 2019-12-20 02:50:51
问题 I have the following code on a (HTML/javascript) Windows Store app var reqOpen = window.indexedDB.open(that.dbName, that.dbVersion); The thing is, when I wanted to use that exact code on a (HTML/javascript) Windows Phone 8.1 app I get undefined on window.indexedDB . I can't seem to find any samples or anything related to indexedDB on WinPhone. The only article that I found that mentions both Windows Store and Windows Phone apps is this one, but it is not clear if there's a difference for

How do i add a pushpin to a Windows Phone 8.1 Map Control?

故事扮演 提交于 2019-12-20 00:53:17
问题 I've been looking for examples on how to perform this task however i haven't been able to find a clear one. Can someone please point me in the right direction. I'm lost... Edit/Update: Ive manage to add some markers following the following example: http://www.microsoftvirtualacademy.com/Content/ViewContent.aspx?et=8698&m=8686&ct=29035 However, as MSDN documentation states , The MapIcon is not guaranteed to be shown. It may be hidden when it obscures other elements or labels on the map. The

Windows Phone 8.1 check if password set else load new page

女生的网名这么多〃 提交于 2019-12-19 18:23:51
问题 I Have a very similar situation to this guys question in that I have a Login Page which is my MainPage.xaml file but I have another page called SetPassword.xaml that I want to load if a user has not set a password yet. Essentially this is the first time that the App loads after it has been installed. I've spent hours on SO trying various different solutions (including the one I linked to) but I'm just not getting anywhere and it seems that many of the solutions are either for WP7 or WP8 and

How to get the device orientation changed event under Windows Phone

你。 提交于 2019-12-19 10:46:23
问题 With windows phone, is there an event I can register for when the device entered landscape mode? The reason why I am asking this is because we have a view with an input box. And when in landscape mode, the TextBox is partially blocked by the keyboard. So I am thinking may have to hide some additional information on the page when it is in landscape mode (for example, hide the title of the page and etc.). The following is a simple example. Left: Before keyboard is shown; Right: After keyboard

Windows phone keyboard open events and properties

烈酒焚心 提交于 2019-12-19 10:44:24
问题 On my Windows Phone app I need to change my view accordingly to my keyboard. I have several questions: How can I identify that the keyboard is opened? Is there an event on view for keyboard opening? Is there a way to get the height of the keyboard? Or the area size of the blocked UI (by keyboard)? 回答1: You can access to keyboard information by Windows.UI.ViewManagement.InputPane class. There is static method GetForCurrentView() . It returns InputPane for current view. InputPane has events

How to get user's own mobile number from windows phone 7 or 8

蓝咒 提交于 2019-12-19 09:09:34
问题 I want to extract "user own mobile number", not his whole phone book. i am using c# as the developing language. thank you 回答1: If you want to get device's own phone number, then it's not currently possible. 回答2: As far as I know, it is not possible to get the own cell number in Windows Phone. 来源: https://stackoverflow.com/questions/14118369/how-to-get-users-own-mobile-number-from-windows-phone-7-or-8

WinRT 8.1 Phone - ListView reordering

ε祈祈猫儿з 提交于 2019-12-19 08:26:45
问题 I need to create a reorderable ListView in a Windows Phone 8.1 app created using WinRT. The XAML is the following (it binds to an ObservableDictionary in the codebehind): <Grid Margin="24"> <ListView x:Name="MainListView" CanDragItems="True" CanReorderItems="True" AllowDrop="True" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" > <ListView.ItemTemplate> <DataTemplate> <Border Padding="24" Margin="16" Background="CadetBlue"> <TextBlock Text="{Binding}" /> </Border> </DataTemplate> <