windows-phone

Is it possible to specify Toast notification sound on Windows Phone 8 before Update 3

偶尔善良 提交于 2020-01-06 00:41:36
问题 I understand that in Update 3 we can specify custom sounds. But is it possible to specify any different sounds before Update 3, other than the default chime? If so, how? The following is the xml payload I'm sending to the phone <?xml version="1.0" encoding="Windows-1252"?> <wp:Notification xmlns:wp="WPNotification"> <wp:Toast> <wp:Text1>WEATHER ALERT</wp:Text1> <wp:Text2>asdfasdf</wp:Text2> <wp:Param>/Page2.xaml?NavigatedFrom=Toast Notification</wp:Param> </wp:Toast> <wp:audio src="ms

Is it possible to specify Toast notification sound on Windows Phone 8 before Update 3

雨燕双飞 提交于 2020-01-06 00:40:32
问题 I understand that in Update 3 we can specify custom sounds. But is it possible to specify any different sounds before Update 3, other than the default chime? If so, how? The following is the xml payload I'm sending to the phone <?xml version="1.0" encoding="Windows-1252"?> <wp:Notification xmlns:wp="WPNotification"> <wp:Toast> <wp:Text1>WEATHER ALERT</wp:Text1> <wp:Text2>asdfasdf</wp:Text2> <wp:Param>/Page2.xaml?NavigatedFrom=Toast Notification</wp:Param> </wp:Toast> <wp:audio src="ms

WP8 back button go two steps back

限于喜欢 提交于 2020-01-05 18:40:12
问题 I am trying to figure out how I could go two pages back in windows phone 8 sdk. I know I can overwrite the function: protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e) the problem is, that I can not understand how I could go two pages back... I have an app that is like that: Display Overview > select Booking > Confirm Booking > Booking done When bookking is done I would like to go back to the Overview page... Anyone some suggestions? 回答1: Check out this article.

Storyboard.Completed and OnNavigatingFrom. How to do animation correctly?

被刻印的时光 ゝ 提交于 2020-01-05 08:20:06
问题 I want to make simple animation when user is navigated to and from some page in application. Here is what I have for now: XAML: <Grid x:Name="LayoutRoot" Background="Transparent"> <Grid.Projection> <PlaneProjection CenterOfRotationY="1"/> </Grid.Projection> <Grid.Resources> <Storyboard x:Name="OnNavTo"> <DoubleAnimation Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(Projection).(PlaneProjection.RotationX)" From="-110" To="0" Duration="0:0:0.3" /> </Storyboard> <Storyboard x

So there is no way to access videos on Windows Phone 8?

倾然丶 夕夏残阳落幕 提交于 2020-01-05 05:43:30
问题 I need to access videos on camera roll and also on Music+Video. but it seems there is no way at all. Here in the documentation says we can use: MediaLibrary library = new MediaLibrary(); But it only can access musics. Can we say I should forget this thing for ever in WP8? 回答1: Unfortunately, there is no way to access videos in Media Library. You have read-write access only to audio and photos. See this answer: https://stackoverflow.com/a/13473349/1029518 回答2: There are a couple answers in the

how to know when Map control was first manipulated?

橙三吉。 提交于 2020-01-05 04:08:13
问题 I am using the Map control in Windows Phone 8. I need to implement a page where user can select his location using the map control. I am trying to know when the app was first manipulated by the user. Some background info: I saw that when the control is shown, it automatically centers the world map, and CenterChanged event is raised. I am not able to understand how ManipulationStarted, ManipulationDelta and ManipulationCompleted work. the first time I drag, ManipulationStarted is not called,

Cross platform launch records with extra data on Windows Phone and Android

為{幸葍}努か 提交于 2020-01-05 03:09:29
问题 Is it possible to create a cross platform NDEF Message to start an application on Android and Windows Phone passing additional data to the app? What I am trying to do: I have an application installed on Android and Windows Phone. It should be possible to start the applications with an NFC tag and I need to pass additional data from the tag (any string) to my applications. To start the applications with the NFC tags, I created a Windows Phone LaunchApp Record and an Android Application Record

Parsing Json in UWP

微笑、不失礼 提交于 2020-01-04 07:51:11
问题 I’m working on UWP and I’m trying to parse this Json but can't understand why this code can't work please anyone can check it with me need help. Thank you. And there is a problem in getting the list variable (List). Any help is appreciated. namespace testapi2 { /// </summary> public sealed partial class MainPage : Page { public MainPage() { this.InitializeComponent(); jsonCall(); } public async void jsonCall() { List<Result> listResult = new List<Result>(); var client = new HttpClient();

Can Windows 10 UWP run on Windows 8.1 Devices?

偶尔善良 提交于 2020-01-04 06:54:04
问题 I'm building a Windows 10 UWP app, and would like to know if it will run on Windows Phone 8.1 and/or Windows 8.1 Desktop. Windows 8.1 is still quite prevalent, and I would like to be able to reach these users with my app. 回答1: Windows 10 apps can only run on Windows 10 (and newer). If you want to target 8.1, you have to build a 8.1. A 8.1 should run on Windows 10 without any problems. 来源: https://stackoverflow.com/questions/35054932/can-windows-10-uwp-run-on-windows-8-1-devices

How to get the line number from a Stack Trace?

谁说胖子不能爱 提交于 2020-01-04 06:31:13
问题 I am trying to get the line number from a stack trace in my WP7 app. I have set debug info to full and am running the app in the Debug configuration, but there are no line numbers in stack traces. How can I fix this? I am aware of BugSense, but do not want to use it. 回答1: Don't think this is even possible, as line number refers to the number of the line inside code-file , which has lost any relation with the binary after compilation. That's why we use PDB files. They are "databases" for