summaryrefslogtreecommitdiff
path: root/Juick
diff options
context:
space:
mode:
Diffstat (limited to 'Juick')
-rw-r--r--Juick/Controls/MessageList.xaml3
-rw-r--r--Juick/Controls/MessageList.xaml.cs8
2 files changed, 9 insertions, 2 deletions
diff --git a/Juick/Controls/MessageList.xaml b/Juick/Controls/MessageList.xaml
index ac6db00..af23c5a 100644
--- a/Juick/Controls/MessageList.xaml
+++ b/Juick/Controls/MessageList.xaml
@@ -15,7 +15,8 @@
<Grid x:Name="LayoutRoot">
<toolkit:LongListSelector Margin="0, 0, -12, 0"
- ItemsSource="{Binding Items}" IsFlatList="true" ItemTemplate="{StaticResource PostItemDataTemplate}">
+ ItemsSource="{Binding Items}" IsFlatList="true" ItemTemplate="{StaticResource PostItemDataTemplate}"
+ SelectionChanged="LongListSelector_SelectionChanged">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Link">
<bindings:InvokeDelegateCommandAction Command="{Binding LoadMessagesPageCommand}"
diff --git a/Juick/Controls/MessageList.xaml.cs b/Juick/Controls/MessageList.xaml.cs
index 0b74705..0241d1a 100644
--- a/Juick/Controls/MessageList.xaml.cs
+++ b/Juick/Controls/MessageList.xaml.cs
@@ -1,4 +1,5 @@
-using System;
+using Microsoft.Phone.Controls;
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
@@ -18,5 +19,10 @@ namespace Juick.Controls
{
InitializeComponent();
}
+
+ private void LongListSelector_SelectionChanged(object sender, SelectionChangedEventArgs e)
+ {
+ (sender as LongListSelector).SelectedItem = null;
+ }
}
}