I would like to know if is it possible when a user press "back button" to go in a specific pivot or panorama item on WP7 sdk.
Go back in a specific panorama/pivot item?
3k views Asked by user569574 At
2
There are 2 answers
1
Matt Lacey
On
You can make sure that the user is always returned to the item they left by overriding the OnNavigatedFrom and OnNavigatedTo events and using the PhonePageApplication.State property to store the selected item. This will work even if the app is tombstoned while on a different page.
Something like:
protected override void OnNavigatedFrom(System.Windows.Navigation.NavigationEventArgs e)
{
State.Add("selectedPivot", myPivot.SelectedIndex);
base.OnNavigatedFrom(e);
}
protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
{
myPivot.SelectedIndex = (int)State["selectedPivot"];
base.OnNavigatedTo(e);
}
Please note the above is untested, requires additonal checks and error handling, etc. but should be enough to get you started.
Related Questions in SILVERLIGHT
- ServiceReferences.ClientConfig use basicHttpsBinding or similar
- How to draw and show map in in ArcGIS C# Silverlight Application
- ESRI.ArcGIS.Client.Symbols.SimpleFillSymbol invoke system crash on Unhandled Error in Silverlight Application
- OpenSilver 'Tapped' event not triggered on phone
- Debugging Silverlight with Microsoft Edge
- Where to download Silverlight Developer Runtime nowadays?
- Where can I download RiaServices.msi nowadays?
- How to build old Silverlight project in Azure DevOps?
- reading of barcodes are badly interpreted in silverlight app with edge
- StringFormat doesnt change number in Silverlight <telerik:GridViewDataColumn>
- Migrate Silverlight check for ElevatedPermission to ASP.NET MVC
- How do I install Silverlight now that it has been discontinued?
- OpenSilver and Dispatcher.CheckAccess
- Port Silverlight Storyboard to WPF
- Silverlight bing maps component are no longer working
Related Questions in WINDOWS-PHONE
- DEP0001: Unexpected Error: SmartDeviceException - Incompatible version of the RPC stub. [0x80131500] during UWP app deployment to Windows phone
- Chilkat mail UWP on Windows 10 Phone gives Class not registered error
- How to fix the issue "UWP app stopped after navigation"?
- How to set Grid.Background to MediaPlayer in UWP?
- Unable to publish UWP package update with the `invalid package identity/family name` error
- Lumia 640 LTE edge explorer - javascript $ is not defined
- iOS / Windows Store App: can I know whether my other app installed on this device/user account?
- Get app purchase date for Windows Phone 8.1 and Windows 8.1 applications
- Complicated background work in UWP, is it real?
- How to export React native code for windows platform
- Get Host File on my windows phone
- UWP Windows Phone detect type of USB connection
- Override default call interface
- UWP: Control won't fit to the available view area of my Grid cell
- Angular 4, Phonegap icons Windows Phone 10
Related Questions in PIVOT
- how to pivot only specific columns in a python dataframe
- Pandas pivot_table where one values column is comprised of lists of values
- Convert Segmented Time Periods in SQL Using Cross Apply & Pivot
- SQL How to add a conditional to the aggregate function within a pivot table?
- How to transform dataframe long to wide with "grouped" columns?
- pivot longer two groups of columns with the same set of suffixes, mostly an issue of correct regex
- Split Dataframe and stack horizontally
- i want to use a dynamic expression in PIVOT values
- How can I convert row data to column in PHP
- Need to pivot wider by hour of the day without creating multiple day entries
- pivot_wider is not collapsing rows
- Why does the pivot-function in SQL Server output multiple rows of data, if a distinct value in non-pivoted data is present?
- SQL dynamic pivoting or something else
- Excel Pivot calclated field
- SQL Pivot to create 2 columns per row
Related Questions in BACK-BUTTON
- Browser Back Button Redirect Bug
- Why back button on title bar isn't shown
- How can I create a dynamic back button/page structure in remix so that the back button navigates back to the parent page?
- How do I combine back buttons for Screens and WebView into one in React Native using React Navigation package?
- .Net Maui Shell OnBackButtonPressed
- Exit application on back button using getOnBackPressedDispatcher
- How to disable backward button on web browser in flutter web WillPopScope Deprecated
- How to add a back button in the top corner of the left page?
- How do you get proper Material 3 behavior out of NavigationBar?
- How to combine together WebViewWidget and WillPopScope
- Flutter android default back button minimizing application on every widget
- Asp.net GridView index not accurate when returning to the page (back button) after DB row deleted
- Vue router back button prevent navigation to previous domain
- react native hardwareBackbutton cause minimize app from Android >= 10
- Page Will Not Load After Hitting Back Button in Chrome
Related Questions in PANORAMA-CONTROL
- Google map Panorama Street View Zoom in & Zoom out buton no Events available
- Any way to embedd facebook 360/180 view like in an external website?
- How to transform an equirectangular (360 degree) video to normal field of view
- Panorama Control in Universal Windows App
- Panorama API - Inflate layout on top of panorama view
- Google Street View Rotate Camera With Device Gyroscope
- how to to show a Web page in my WebView, offline, that contains JavaScript codes
- WP8.1 TextBox in PanoramaItem
- How to develop “360 flat image view” in “panorama view” for web application
- Can we customize the default style of hub or panorama app
- How to find panoID in a new Google maps?
- Selection Changed event is not getting called for panorama if i am using data template for Panorama control in Windows Phone 8. Why?
- How to add a background image to Windows Phone Panorama App
- WP8 Panorama Style Settings
- Panorama-control don't remember selected panorama item when navigating
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
It would be possible to implement this approach by implementing the
OnBackKeyPressoverride in your page, however, this would not be consistent with back button behavior in Windows Phone 7 applications. The back button is supposed to only be used for navigating backwards through the application's page stack, and then to leave the application to navigate backwards through the application stack. To implement any other behavior would be counter-intuitive and is also highly likely to fail certification.