8.0 Association Startup: Using an external program to open a file or URI, associating a specified file type or protocol
Introduced
Unusual Windows Phone 8.0 's associated startup
Open a file using an external program
To open a Uri using an external program
Associates the specified file type
Associates the specified protocol
Example
1. Demonstrates how to use an external program to open a file
Associationlaunching/launchfile.xaml
<phone:phoneapplicationpage x:class= "Demo.AssociationLaunching.LaunchFile" xmlns= "http://schemas.microsoft.co M/winfx/2006/xaml/presentation "xmlns:x=" Http://schemas.microsoft.com/winfx/2006/xaml "xmlns:phone=" Clr-namespace:microsoft.phone.controls;assembly=microsoft.phone "Xmlns:shell=" Clr-namespace:
Microsoft.phone.shell;assembly=microsoft.phone "xmlns:d=" http://schemas.microsoft.com/expression/blend/2008 " Xmlns:mc= "http://schemas.openxmlformats.org/markup-compatibility/2006" fontfamily= "{StaticResource Phonefontfamilynormal} "fontsize=" {StaticResource phonefontsizenormal} "foreground=" {StaticResource PhoneForegroun Dbrush} "supportedorientations=" Portrait "orientation=" Portrait "mc:ignorable=" D "shell:systemtray.isvisible=" True "> <grid background=" Transparent "> <StackPanel> <TEXTB Lock Name= "lblmsg" margin= "0 0 0"/> <button content= "opens a. log File "Name=" Btnlaunchfile "click=" Btnlaunchfile_click "/> </StackPanel> </Grid> </phone:PhoneApplicationPage>