diff options
author | Vitaly Takmazov | 2013-11-27 00:03:30 +0400 |
---|---|---|
committer | Vitaly Takmazov | 2013-11-27 00:03:30 +0400 |
commit | c07cfc51d2e8f195533ed605d71d33b4fd8bca61 (patch) | |
tree | 62d95e06df4cc27abda770493a7fea479e5f3474 | |
parent | 48d6eae71d49875c7ad10af6757f03129582a430 (diff) |
Fix issue #14
-rw-r--r-- | Juick/Controls/MessageList.xaml | 3 | ||||
-rw-r--r-- | Juick/Controls/MessageList.xaml.cs | 8 |
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; + } } } |