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('\n').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>
posted @ 2016-02-09 18:31  lindexi  阅读(154)  评论(0编辑  收藏  举报