microsoft / TemplateStudio

Template Studio accelerates the creation of new WinUI 3, WPF, and UWP apps using a wizard-based experience.
Other
2.68k stars 457 forks source link

DeepLinking activates app on SamplePage instead of Pivot in TabbedPivot Apps #2540

Closed sibille closed 5 years ago

sibille commented 6 years ago

Repro Steps:

  1. Create an app with project type Pivot and add DeepLinking feature
  2. Run the app to register protocolname
  3. Close the app
  4. Activate the app using URI "wtsapp:sample?secret=test" from Windows->Run

ActualBehaviour: image

Expected behaviour: App should show the SampleActivationPage on the Pivot 5ed39d94

X-Ref: #2528

sibille commented 6 years ago

We were working on a poc for pivot activation. The idea is to go to the PivotPage passing the ActivationData. Then, in the OnNavigated event handler of the PivotPage, select the PivotItem that contains the matching PageType and pass the activation parameters.

View attached poc for reference implementation. PivotActivation.zip

sibille commented 5 years ago

Verified in dev-nightly: Templates version: 0.18.18257.1 Wizard version: 0.18.18257.1