Add the Exception Policy to your App.xaml file to make logging available.

<Application
x:Class="VXCompany.SilverlightLogging.WP7TestUI.App"
xmlns="http://schemas.microsoft.com/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:svc="clr-namespace:VXCompany.SilverlightLogging;assembly=VXCompany.SilverlightLogging.WP7"
xmlns:str="clr-namespace:VXCompany.SilverlightLogging.MVVM.Models.Stores;assembly=VXCompany.SilverlightLogging.WP7"
>

<!--Application Resources-->
<Application.Resources>
</Application.Resources>

<Application.ApplicationLifetimeObjects>
<!--Required object that handles lifetime events for the application-->
<shell:PhoneApplicationService
Launching="ApplicationLaunching" Closing="ApplicationClosing"
Activated="ApplicationActivated" Deactivated="ApplicationDeactivated"/>

<svc:LoggingApplicationService ApplicationName="WP7 Test UI">
<svc:LoggingApplicationService.Store>
<str:ApplicationStore />
</svc:LoggingApplicationService.Store>
</svc:LoggingApplicationService>
</Application.ApplicationLifetimeObjects>

</Application>

Last edited Nov 23, 2010 at 3:06 PM by lduys, version 1

Comments

No comments yet.