Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
Merge pull request #457 from github/fixes/454-infopanel-message-visib…
Browse files Browse the repository at this point in the history
…ility

Clear InfoPanel message when closed
  • Loading branch information
shana committed Jul 27, 2016
2 parents e4a9f29 + 25680cf commit b74a115
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/GitHub.VisualStudio.UI/UI/Controls/InfoPanel.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
DockPanel.Dock="Right"
Foreground="Black"
Background="Transparent"
Click="Button_Click"
Click="Dismiss_Click"
Icon="x" />
<TextBlock Margin="8,0"
DockPanel.Dock="Top"
Expand Down
4 changes: 2 additions & 2 deletions src/GitHub.VisualStudio.UI/UI/Controls/InfoPanel.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ static void UpdateVisibility(DependencyObject d, DependencyPropertyChangedEventA
control.Visibility = string.IsNullOrEmpty(control.Message) ? Visibility.Collapsed : Visibility.Visible;
}

void Button_Click(object sender, RoutedEventArgs e)
void Dismiss_Click(object sender, RoutedEventArgs e)
{
this.Visibility = Visibility.Collapsed;
this.Message = string.Empty;
}
}
}

0 comments on commit b74a115

Please sign in to comment.