This commit is contained in:
2015-12-23 23:43:12 +01:00
parent c6e635fc63
commit 6a1facf4e6
4 changed files with 11 additions and 5 deletions
+2 -2
View File
@@ -7,9 +7,9 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid Background="White">
<Grid>
<Canvas>
<Image x:Name="extendedSplashImage" Source="Assets/SplashScreen.png" VerticalAlignment="Center"/>
<Image x:Name="extendedSplashImage" Source="/Assets/SplashScreen.png" VerticalAlignment="Center"/>
</Canvas>
<RelativePanel Name="splashProgress" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
+6 -2
View File
@@ -90,6 +90,8 @@ namespace NavCityBreda.Model
geo.PositionChanged += Geo_PositionChanged;
geo.StatusChanged += Geo_StatusChanged;
_position = await geo.GetGeopositionAsync();
_status = PositionStatus.Initializing;
return "Connected";
@@ -110,11 +112,13 @@ namespace NavCityBreda.Model
private void Geo_StatusChanged(Geolocator sender, StatusChangedEventArgs args)
{
if(args.Status == PositionStatus.Disabled)
if (args.Status == PositionStatus.Disabled)
{
geo = null;
Connected = false;
_position = null;
}
else if (!(bool)Connected)
Connected = true;
UpdateStatus(args.Status);
}
+1 -1
View File
@@ -18,7 +18,7 @@
<uap:VisualElements DisplayName="Nav City Breda" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" Description="Tourist navigation app for the cirty Breda." BackgroundColor="transparent">
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png" ShortName="ags_logo">
</uap:DefaultTile>
<uap:SplashScreen Image="Assets\SplashScreen.png" BackgroundColor="white" />
<uap:SplashScreen Image="Assets\SplashScreen.png" />
<uap:InitialRotationPreference>
<uap:Rotation Preference="portrait" />
</uap:InitialRotationPreference>
+2
View File
@@ -95,6 +95,8 @@ namespace NavCityBreda.ViewModels
switch(App.Geo.Status)
{
case PositionStatus.Disabled:
NotifyPropertyChanged(Source);
NotifyPropertyChanged(Accuracy);
return Util.Loader.GetString("Disabled");
case PositionStatus.Initializing:
return Util.Loader.GetString("Initializing");