windows-phone-8

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.

Not able to add class library dll to Windows Phone 8

泄露秘密 提交于 2020-01-05 15:22:53
问题 I can’t see the unblock button and the same means its already unblock to use,right! but i’m not able to add the class library reference to my Windows Phone 8 application and error ‘A reference to a higher version or incompatible assembly cannot be added to the project’ appears. Please help me out! 来源: https://stackoverflow.com/questions/15377890/not-able-to-add-class-library-dll-to-windows-phone-8

textblock does not fill mobile phone window

☆樱花仙子☆ 提交于 2020-01-05 12:31:16
问题 I have below code <!--LayoutRoot is the root grid where all page content is placed--> <Grid x:Name="LayoutRoot" Background="Transparent" Loaded="LayoutRoot_Loaded"> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="*"/> <RowDefinition Height="70"/> </Grid.RowDefinitions> <!--TitlePanel contains the name of the application and page title--> <TextBlock x:Name="ApplicationTitle" FontWeight="Bold" Padding="20,0,0,0" Grid.Row="0" Text="فرآن کریم"/> <ListBox x:Name=

textblock does not fill mobile phone window

筅森魡賤 提交于 2020-01-05 12:31:08
问题 I have below code <!--LayoutRoot is the root grid where all page content is placed--> <Grid x:Name="LayoutRoot" Background="Transparent" Loaded="LayoutRoot_Loaded"> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="*"/> <RowDefinition Height="70"/> </Grid.RowDefinitions> <!--TitlePanel contains the name of the application and page title--> <TextBlock x:Name="ApplicationTitle" FontWeight="Bold" Padding="20,0,0,0" Grid.Row="0" Text="فرآن کریم"/> <ListBox x:Name=

Windows Phone 8 app wakup on bluetooth connection?

会有一股神秘感。 提交于 2020-01-05 10:27:28
问题 Is it possible in a Windows Phone 8 app that isn't active to detect Bluetooth connections and react to them? I want to build a app the does some stuff as soon a the phone connects to the Bluetooth device. I.e. get in range of the device. I'm realizing that this might be more than one question. a. is it possible to detect bluetooth connection when the app isn't active. b. is it possible to "popup" the app if it detects a connection? 回答1: All connections of any kind are suspended when the

Windows phone 8 xaudio2 wav file issue

我是研究僧i 提交于 2020-01-05 10:08:33
问题 I want play a wav file with XAudio2, I have searched on the internet and have some example projects like this: C# XAudio2 Sound Playback for Windows Phone or this: Play wav example but all those playing special wav files, if I replace my wav (converted to MS ADPCM, mono) then CreateSourceVoice return HRESULT 0x88960001. So what are specials of those wav files? or any other methods to play Wav file with xaudio2 (I'm working on windows phone 8) 回答1: According to this article, the XAudio2 only

Assets folder for Windows 8 Phone app

戏子无情 提交于 2020-01-05 09:07:21
问题 I have an app for Android that I'm porting to Windows Phone 8 now. The assets folder lies apart of code in my folder sturucture. In order to include it into Android build, I use <linkedResources> . Is there anything similar for Windows Phone 8 and MSVC? Having examined examples, I found they all include assets directly into project folder structure in Visual Studio. Can I avoid copying assets into MSVC project folder? BTW, my MSVC 2013 does not have drop box on Add button: 回答1: This an old

How to stop a Timer object after a set interval of time?

耗尽温柔 提交于 2020-01-05 08:11:14
问题 I've assigned a string value from a text box to a date time variable.It's purpose is to serve as a flag to tell myTimer object to stop when it has reached the the time stored in workDt,(the date time variable). The current implementation I have tried is the following, where I set up an if..else statement to check if the timer's current time is equal to what was entered in the text box but it doesn't trigger the timer to stop. I set a break point on the 'if' statement and the time value is