diff --git a/CompassVO/AboutPage.xaml b/CompassVO/AboutPage.xaml
index 3129cd4..0d7308b 100644
--- a/CompassVO/AboutPage.xaml
+++ b/CompassVO/AboutPage.xaml
@@ -6,7 +6,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
- xmlns:GalaSoft_MvvmLight_Command="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.WP71"
+ xmlns:GalaSoft_MvvmLight_Command="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Platform"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
@@ -114,16 +114,4 @@
-
-
-
\ No newline at end of file
diff --git a/CompassVO/CompassVO.csproj b/CompassVO/CompassVO.csproj
index c2f6d04..f412b6c 100644
--- a/CompassVO/CompassVO.csproj
+++ b/CompassVO/CompassVO.csproj
@@ -103,19 +103,30 @@
..\packages\Coding4Fun.Phone.Controls.Complete.1.4.6\lib\Coding4Fun.Phone.Controls.Toolkit.dll
-
-
-
- ..\packages\microioc.1.0\lib\MicroIoc.dll
+
+ ..\packages\MvvmLightLibs.5.3.0.0\lib\wp8\GalaSoft.MvvmLight.dll
+
+
+ ..\packages\MvvmLightLibs.5.3.0.0\lib\wp8\GalaSoft.MvvmLight.Extras.dll
+
+
+ ..\packages\MvvmLightLibs.5.3.0.0\lib\wp8\GalaSoft.MvvmLight.Platform.dll
+
+
+ ..\packages\microioc.2.0\lib\portable-win+net40+sl40+wp\MicroIoc.dll
False
..\packages\SilverlightToolkitWP.4.2011.8.17\lib\sl4-windowsphone71\Microsoft.Phone.Controls.Toolkit.dll
-
-
-
+
+ ..\packages\CommonServiceLocator.1.3\lib\portable-net4+sl5+netcore45+wpa81+wp8\Microsoft.Practices.ServiceLocation.dll
+
+
+ ..\packages\MvvmLightLibs.5.3.0.0\lib\wp8\System.Windows.Interactivity.dll
+ True
+
@@ -231,7 +242,9 @@
-
+
+ Designer
+
Designer
diff --git a/CompassVO/MainPage.xaml b/CompassVO/MainPage.xaml
index b14cc51..d017722 100644
--- a/CompassVO/MainPage.xaml
+++ b/CompassVO/MainPage.xaml
@@ -1,29 +1,28 @@
-
+
@@ -113,43 +112,6 @@
-
-
-
+
-
+
-
-
-
-
-
\ No newline at end of file
diff --git a/CompassVO/SettingsPage.xaml b/CompassVO/SettingsPage.xaml
index 3d1cddd..48ef10f 100644
--- a/CompassVO/SettingsPage.xaml
+++ b/CompassVO/SettingsPage.xaml
@@ -1,4 +1,4 @@
-
-
-
+
+
-
-
+
+
@@ -66,15 +66,5 @@
-
-
+
\ No newline at end of file
diff --git a/CompassVO/ViewModel/MainViewModel.cs b/CompassVO/ViewModel/MainViewModel.cs
index c52ab3a..481bd56 100644
--- a/CompassVO/ViewModel/MainViewModel.cs
+++ b/CompassVO/ViewModel/MainViewModel.cs
@@ -28,6 +28,7 @@ namespace CompassVO.ViewModel
private double initDialAngleDrag = 0;
private double startDialAngle = 0;
private double deltaDialAngle = 0;
+ private bool hadShownWarningCompassSensor;
#region Public Properties
@@ -908,7 +909,11 @@ namespace CompassVO.ViewModel
}
else
{
- MessageBox.Show("Your device doesn't have compass sensor!");
+ if (!hadShownWarningCompassSensor)
+ {
+ hadShownWarningCompassSensor = true;
+ MessageBox.Show("Your device doesn't have compass sensor!");
+ }
}
}
diff --git a/CompassVO/packages.config b/CompassVO/packages.config
index 79242c2..101dcf5 100644
--- a/CompassVO/packages.config
+++ b/CompassVO/packages.config
@@ -1,7 +1,9 @@
-
-
+
+
+
+
\ No newline at end of file