Comments (2)
Working on it... :)
In the meantime, the event you want to hook up to is Windows.UI.Core.SystemNavigationManager.GetForCurrentView().BackRequested
And a rudimentary event handler would look something like this:
private void App_BackRequested(object sender, BackRequestedEventArgs e)
{
Frame rootFrame = Window.Current.Content as Frame;
if (rootFrame == null)
return;
if (rootFrame.CanGoBack)
{
e.Handled = true;
rootFrame.GoBack();
}
}
The BackRequested event is universal so this handler will work for both the mobile back button and the one in tablet mode.
from windows-universal-samples.
A BackButton sample has been added in 4968d97
from windows-universal-samples.
Related Issues (20)
- Adding a Rfcomm serial device to a Bluetooth adapter HOT 2
- Bluetoothle and non-gatt communication.
- Can Bluetooth low energy use MTU? HOT 1
- How to properly close an instance of CustomDevice ?
- More Sample Code for WinUI3 desktop app, not UWP. HOT 3
- Microsoft Advertising Beacon "overrides" other Advertisments
- WebAuthenticationBroker sample for google no longer works HOT 2
- When BluetoothLE device connected, I switch to "Discover" page. The connection won't be released.
- Executable for Personalization HOT 3
- Add a sample on WebAuthenticationCoreManager::CreateWebAccountMonitor Method
- Microsoft::Resources::MRT_ERROR_SCENARIO_TYPE
- Inputting voice fails to produce results HOT 29
- Some of these samples are missing core components. HOT 6
- XAML disigner tells you to upgrade Windows? HOT 2
- Create feature to remove a portion of the video and save the copy without the cut portion
- WICColorContextUninitialized is returned by IWICColorContext->GetType
- DatagramSocket c++/winrt
- Small UI bug in SimpleCommunication c# sample
- AppointmentManager.ShowAddAppointmentAsync always returns empty string
- BluetoothLE Sample fails to connect to Silicon Labs device after it reboots in OTA mode
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from windows-universal-samples.