@@ -40,7 +40,7 @@ private void SetBackButtonVisibility(ListDetailsViewState? previousState = null)
40
40
41
41
if ( ViewState == ListDetailsViewState . Details )
42
42
{
43
- if ( ( BackButtonBehavior == BackButtonBehavior . Inline ) && ( _inlineBackButton != null ) )
43
+ if ( BackButtonBehavior == BackButtonBehavior . Inline && _inlineBackButton != null )
44
44
{
45
45
_inlineBackButton . Visibility = Visibility . Visible ;
46
46
}
@@ -53,7 +53,7 @@ private void SetBackButtonVisibility(ListDetailsViewState? previousState = null)
53
53
// Setting this indicates that the system back button is being used
54
54
_previousSystemBackButtonVisibility = navigationManager . AppViewBackButtonVisibility ;
55
55
}
56
- else if ( ( _inlineBackButton != null ) && ( ( _navigationView == null ) || ( _frame == null ) ) )
56
+ else if ( _inlineBackButton != null && ( _navigationView == null || _frame == null ) )
57
57
{
58
58
// We can only use the new NavigationView if we also have a Frame
59
59
// If there is no frame we have to use the inline button
@@ -74,15 +74,15 @@ private void SetBackButtonVisibility(ListDetailsViewState? previousState = null)
74
74
}
75
75
else if ( previousState == ListDetailsViewState . Details )
76
76
{
77
- if ( ( BackButtonBehavior == BackButtonBehavior . Inline ) && ( _inlineBackButton != null ) )
77
+ if ( BackButtonBehavior == BackButtonBehavior . Inline && _inlineBackButton != null )
78
78
{
79
79
_inlineBackButton . Visibility = Visibility . Collapsed ;
80
80
}
81
81
else if ( BackButtonBehavior == BackButtonBehavior . Automatic )
82
82
{
83
83
if ( ! _previousSystemBackButtonVisibility . HasValue )
84
84
{
85
- if ( ( _inlineBackButton != null ) && ( ( _navigationView == null ) || ( _frame == null ) ) )
85
+ if ( _inlineBackButton != null && ( _navigationView == null || _frame == null ) )
86
86
{
87
87
_inlineBackButton . Visibility = Visibility . Collapsed ;
88
88
}
@@ -132,7 +132,7 @@ private void SetNavigationViewBackButtonState(int visible, bool enabled)
132
132
/// <param name="args">The event args</param>
133
133
private void OnFrameNavigating ( object sender , NavigatingCancelEventArgs args )
134
134
{
135
- if ( ( args . NavigationMode == NavigationMode . Back ) && ( ViewState == ListDetailsViewState . Details ) )
135
+ if ( args . NavigationMode == NavigationMode . Back && ViewState == ListDetailsViewState . Details )
136
136
{
137
137
ClearSelectedItem ( ) ;
138
138
args . Cancel = true ;
0 commit comments