Using any control from Windows Phone Toolkit in XNA/XAML hybrid project hangs application under certain conditions:
Create "Windows Phone XAML and XNA App" project
Add Silverlight for WP Toolkit by typing:
Install-Package SilverlightToolkitWP -Version 4.2012.6.25
in Package Manager Console
In MainPage.xaml add toolkit namespace:
<phone:PhoneApplicationPage ... xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit" ...>
Add any control from toolkit eg. TimePicker:
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"> <!--Create a single button to navigate to the second page which is rendered with the XNA Framework--> <Button Height="100" Content="Change to game page" Click="Button_Click" /> <toolkit:TimePicker /> </Grid>
Run app on WP8 device or WP8 emulator (on WP7 this problem doesn't exist)
Click "Change to game page" button
Lock and unlock screen or switch to another app then return.
Click back button to return to MainPage
Click on TimePicker and try to change time.
Application isn't killed but UI is blocked
I read that WP8 runs WP7 apps in 100% compatibility but it seems this isn't true...