The requirement of the experiment is to implement a simple memo event management based on the WP8.1 Windows8.1 and WPF three platforms.
This blog will record some of the experience results in the experimental process
References to 1.microsoft.phone.dll
If you want to add an alarm to your memo, you need to call the Alarm app feature that comes with your phone.
By accessing the information on the Internet. Refer to some of the blogs mentioned in the Windows Phone8, you can pass using Microsoft.Phone.Scheduler;
Use one of the alarm classes to easily add alarms
1 New Alarm (name); 2 Alarm. Content = message; 3 Alarm. Sound = sound ; 4 Alarm. BeginTime = BeginTime; 5 Alarm. Expirationtime = stoptime; 6 Alarm. RecurrenceType = recurrence; 7 Scheduledactionservice.add (alarm);
Set the alarm code as above.
So, I added this dynamic link library for my WP8.1 project.
Right-click Reference-Add Reference-Choose left View-Browse--c:\program Files (x86) \reference assemblies\microsoft\framework\windowsphone\ v8.1 path inside find Microsoft.Phone.dll OK
Successful, the reference inside the success of this link library
and adding using Microsoft.Phone.Scheduler;
Below, just when you think everything is perfect ... The problem arises:
There are many places on the internet where the problem is nowhere to be found. Finally, a post on MSDN found the problem.
Reference URL: https://social.msdn.microsoft.com/Forums/en-US/68b50bbb-3296-46be-a85f-669caecedd19/ Wp81-no-alarms-reminders-whats-the-alternative?forum=wpdevelop
The explanation here says:
WP8.1 alarms and reminders are no longer available to third-party developers, meaning they cannot be used in their own applications. The solution is to continue to develop and maintain WP8 applications, or use WP Silverlight 8.1.
In this case, however, many of the handy controls in WP8.1 are not available (even if you add a toolkit package, just a small part). So we can only make a choice.
< If the great God has the both ways, kneel to enlighten!! >
Jump on the 2.WPF platform
In WPF, jumps are divided into pages, jumps between Windows and pages, and jumps between windows. Page jump can be achieved back, forward and other functions, personally think more friendly.
1 Private void Add_tile_click (object sender, RoutedEventArgs e)2 {3 Navigationservice.getnavigationservice (this). Navigate (new Uri ("addevent.xaml", urikind.relative)); 4 // URI inside the name of the destination page, remember to Add. xaml, followed by the URI as a relative URI 5 }
The other two jumps back and forth
1 navigationservice.getnavigationservice (this). GoForward (); // Turn Backwards 2 3 navigationservice.getnavigationservice (this// forward
C # Learning record 10--on-machine experiment results