before merge

This commit is contained in:
Christian Fiedler
2013-10-11 13:47:47 +02:00
parent baafabc5c1
commit 80f1b9ef5c
2 changed files with 7 additions and 1 deletions

View File

@@ -26,7 +26,7 @@
<header:DefaultHeader x:Name="DefHeader" Grid.Row="0" HeaderName="{Binding Path=LocalizedResources.OpenHoursApp_Title, Source={StaticResource LocalizedStrings}}"/>
<!-- Content -->
<ListBox x:Name="InstitutionPanel" Grid.Row="1">
<ListBox x:Name="InstitutionPanel" Grid.Row="1" SelectionMode="Single" SelectionChanged="InstitutionPanel_SelectionChanged">
<ListBox.ItemContainerStyle>
<Style TargetType="ListBoxItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>

View File

@@ -179,6 +179,12 @@ namespace CampusAppWP8.Pages.Openinghours
MessageBoxResult result = MessageBoxes.ShowMainModelErrorMessageBox(AppResources.MsgBox_ErrorMainModelLoadFile);
}
private void InstitutionPanel_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
{
this.InstitutionPanel.SelectedIndex = -1;
}
// private
#endregion