NavigationView.IsBackEnabled
is not showing the back arrow in Android, works find in windows, ios ect
#15570
-
Current behaviorMade a simple program to set the NavigationView as follows This shows the back button on Windows, iOS and Mac fine but it does not seem to show on Android. Searched online and could not find a question about this. Attached is a simple repro Expected behaviorThe navigationview should show the back arrow on android |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You can use the
So by default, the back button is not shown. You can override this by setting |
Beta Was this translation helpful? Give feedback.
-
OK understand and it works but not sure why it does not follow the same rules as the other controls. The logic is now, for Non android set the IsBackButtonVisible to auto. then set the BackEnabled based on the frame.cangoback. But for Android I just set the IsBackButtonVisible to frame.IsBackEnabled. seems kind of strange to have this workaround to do the same thing. |
Beta Was this translation helpful? Give feedback.
You can use the
IsBackButtonVisible
property to adjust this. By default it is set toAuto
, which should follow the target system guidelines. In the case of Android, the app should not display a back button in the UI, as it is not per the design guidelines.So by default, the back button is not shown. You can override this by setting
IsBackButtonVisible
toVisible
instead