summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2013-11-27 00:03:30 +0400
committerGravatar Vitaly Takmazov2013-11-27 00:03:30 +0400
commitc07cfc51d2e8f195533ed605d71d33b4fd8bca61 (patch)
tree62d95e06df4cc27abda770493a7fea479e5f3474
parent48d6eae71d49875c7ad10af6757f03129582a430 (diff)
Fix issue #14
-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;
+ }
}
}