Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove highlight form Summery

  • Loading branch information...
commit 03e6cd8e397119b99a33e9714ac50c4c9aeaf326 1 parent 5777f59
@DanielDar DanielDar authored
Showing with 8 additions and 13 deletions.
  1. +8 −13 Raven.Studio/MainPage.xaml.cs
View
21 Raven.Studio/MainPage.xaml.cs
@@ -16,23 +16,23 @@ public MainPage()
InitializeComponent();
}
- public void Refresh()
- {
- ContentFrame.Refresh();
- }
+ public void Refresh()
+ {
+ ContentFrame.Refresh();
+ }
private void ContentFrame_Navigated(object sender, NavigationEventArgs e)
{
HighlightCurrentPage(e.Uri);
- // update the current database here so that back button navigation works correctly with database changes
- ApplicationModel.Current.Server.Value.SetCurrentDatabase(new UrlParser(e.Uri.OriginalString));
+ // update the current database here so that back button navigation works correctly with database changes
+ ApplicationModel.Current.Server.Value.SetCurrentDatabase(new UrlParser(e.Uri.OriginalString));
GC.Collect();
}
- // After the Frame navigates, ensure the HyperlinkButton representing the current page is selected
+ // After the Frame navigates, ensure the HyperlinkButton representing the current page is selected
private void HighlightCurrentPage(Uri currentUri)
{
foreach (var hyperlink in MainLinks.Children.OfType<HyperlinkButton>())
@@ -46,11 +46,6 @@ private void HighlightCurrentPage(Uri currentUri)
VisualStateManager.GoToState(hyperlink, "InactiveLink", true);
}
}
-
- if (currentUri.ToString() == string.Empty)
- {
- VisualStateManager.GoToState(SummaryLink, "ActiveLink", true);
- }
}
private static bool HyperlinkMatchesUri(string uri, HyperlinkButton link)
@@ -74,7 +69,7 @@ private static bool HyperlinkMatchesUri(string uri, HyperlinkButton link)
private void ContentFrame_NavigationFailed(object sender, NavigationFailedEventArgs e)
{
e.Handled = true;
- ApplicationModel.Current.AddErrorNotification(e.Exception, string.Format("Could not load page: {0}", e.Uri));
+ ApplicationModel.Current.AddErrorNotification(e.Exception, string.Format("Could not load page: {0}", e.Uri));
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.