win10 UWP 标题栏后退

设置里,标题栏有后退按钮
这里写图片描述
在win平板,可以有后退键,手机也有
pc可以在标题栏

这里写图片描述

OnLaunched

//最后
     Windows.UI.Core.SystemNavigationManager.GetForCurrentView().BackRequested += BackRequested;       Windows.UI.Core.SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = Windows.UI.Core.AppViewBackButtonVisibility.Visible;

BackRequested后退方法

<script type="text/javascript"> $(function () { $('pre.prettyprint code').each(function () { var lines = $(this).text().split(' ').length; var $numbering = $('<ul/>').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i <= lines; i++) { $numbering.append($('<li/>').text(i)); }; $numbering.fadeIn(1700); }); }); </script>
原文地址:https://www.cnblogs.com/lindexi/p/6949706.html