fix list pick issue

clear GPS location on tombstoning resume
This commit is contained in:
2011-04-06 08:49:07 +03:00
parent bf599907dc
commit 9c59a73113
2 changed files with 13 additions and 5 deletions
+4
View File
@@ -1,5 +1,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Device.Location;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Net; using System.Net;
@@ -16,6 +17,7 @@ using System.Windows.Shapes;
using Microsoft.Phone; using Microsoft.Phone;
using Microsoft.Phone.Controls; using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell; using Microsoft.Phone.Shell;
using MyFriendsAround.WP7.Model;
using MyFriendsAround.WP7.ViewModel; using MyFriendsAround.WP7.ViewModel;
using MyFriendsAround.WP7.Utils; using MyFriendsAround.WP7.Utils;
using GalaSoft.MvvmLight.Threading; using GalaSoft.MvvmLight.Threading;
@@ -102,6 +104,8 @@ namespace MyFriendsAround.WP7
if (mainModel != null) if (mainModel != null)
{ {
mainModel.IsBusy = false; mainModel.IsBusy = false;
mainModel.GpsLocation = Location.Unknown;
mainModel.GpsStatus = GeoPositionStatus.NoData;
Container.Instance.RegisterInstance<MainViewModel>(mainModel, Constants.VM_MAIN); Container.Instance.RegisterInstance<MainViewModel>(mainModel, Constants.VM_MAIN);
} }
else else
+9 -5
View File
@@ -211,11 +211,6 @@
Source="{Binding SelectedFriend, Path=SelectedFriend.PinImageUrl, Converter={StaticResource imageCacheConverter}}" Source="{Binding SelectedFriend, Path=SelectedFriend.PinImageUrl, Converter={StaticResource imageCacheConverter}}"
Margin="1" Margin="1"
Stretch="Fill"> Stretch="Fill">
<i:Interaction.Triggers>
<i:EventTrigger EventName="MouseLeftButtonDown">
<cmd:EventToCommand Command="{Binding ShowSelectFriendCommand}" />
</i:EventTrigger>
</i:Interaction.Triggers>
</Image> </Image>
<Border Background="{StaticResource PhoneAccentBrush}" <Border Background="{StaticResource PhoneAccentBrush}"
Width="80" Width="80"
@@ -234,6 +229,15 @@
Text="{Binding SelectedFriend, Path=SelectedFriend.PinUserName}" Text="{Binding SelectedFriend, Path=SelectedFriend.PinUserName}"
Opacity="1" /> Opacity="1" />
</Border> </Border>
<Rectangle Fill="Transparent"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch">
<i:Interaction.Triggers>
<i:EventTrigger EventName="MouseLeftButtonDown">
<cmd:EventToCommand Command="{Binding ShowSelectFriendCommand}" />
</i:EventTrigger>
</i:Interaction.Triggers>
</Rectangle>
</Grid> </Grid>
<toolkit:PerformanceProgressBar HorizontalAlignment="Left" <toolkit:PerformanceProgressBar HorizontalAlignment="Left"