Skip to content

Commit 87b8036

Browse files
authored
Adjust code with the example's comment (#4466)
1 parent d954bbf commit 87b8036

File tree

1 file changed

+2
-2
lines changed
  • samples/snippets/csharp/VS_Snippets_Wpf/PageNavigationServiceSnippets/CSharp

1 file changed

+2
-2
lines changed

samples/snippets/csharp/VS_Snippets_Wpf/PageNavigationServiceSnippets/CSharp/HomePage.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public HomePage()
1818
InitializeComponent();
1919

2020
// Don't allow back navigation if no navigation service
21-
if (this.NavigationService != null)
21+
if (this.NavigationService == null)
2222
{
2323
this.goBackButton.IsEnabled = false;
2424
}
@@ -34,4 +34,4 @@ void goBackButton_Click(object sender, RoutedEventArgs e)
3434
}
3535
}
3636
//</SnippetGetPageNavigationServiceCODEBEHIND>
37-
}
37+
}

0 commit comments

Comments
 (0)