Stop the PivotControl allowing swipe - c#

So I'm trying to make a "tabbed web browser" for Windows Phone 8. I can't seem to work out quite how I'm to do this bit. I've made all the tab control stuff using a PivotControl (it replaced TabControl in Windows 8 I believe). I can add & remove tabs dynamically, and I think that system is pretty good. Unfortunately, I can't work out how to stop the swipe gesture from changing tabs. I want the user to have to swipe only on the Pivot Controls header, not on the contents... I'm putting the website itself in the contents so it doesn't allow the user to scroll when zoomed into the website, as the gesture is overridden by the phones desire to switch Pivot item...
How would I go about preventing the pivot from switching when the user swipes inside of the WebBrowser control?

Related

Windows 10 UWP - How to make app dock at window edge and foldout

I'm planning the development of a fairly simple app and have little experience with UWP, some with Winforms. I'd like to make it so that the user can dock the app (similar to the taskbar, but the size of a browser tab) to the edge of the screen and allow it to slide in/out on click or hover. Searches have turned up nothing (maybe I'm not using the right terms) and I've yet to see this functionality on a Windows 10 app.
I'm thinking that I could just force the window to be offscreen or have a 0 width. But I'm not certain how to make a tab appear when that happens. Would I make a second window that is the tab?
All constructive thoughts and ideas are welcome.

Windows 10 tab control

How to get 'tab' control which look like this? Should I edit Pivot control or any other, better ideas?
In the Universal Windows Examples collection you have one called Pivot: https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/XamlPivot this shows how to Use pivots across devices, with mouse, keyboard touch, Show custom header content, tabs with icons, etc. a great example

Grouped Collapsible Navigation Control Windows Store App?

I am looking for a grouped collapsible navigation control for use in one of the Windows 8.1 apps I have searched quite a bit and am not able to find this control.However I do find few existing apps in the store using this control, the mail app being one such example. Is there any collapsible grouped control available ?
Else I figure I should use a custom control with a button and an attached flyout
But the flyout would disappear if the user clicks anywhere else in the screen.
Windows Phone 8 has an Expander control in the form of the Windows Phone Toolkit but the performance is very poor when put into a ListView as you would do if you were trying to mimic the built in email app. The best way I've found to get the behavior you're after is to put all of the group header items into the ListView then use an ItemTemplateSelector to choose the visual appearance of group headers vs their items, then only add the child items (to the main ListView) when the group header is expanded. It sounds complicated but I wrote a blog about it here and there is a source example of it here and here

Navigation to another page using swipe gesture (Windows Phone 8)

I've searched quite a lot on the Internet but haven't been able to found the exact thing that I want.
I now that I should be using the Manipulation events such as Manipulation Started, Delta, Completed.
As I said I managed to navigate to another page using swipe combining these three events, but what I actually want is to see THE MOTION when moving from the actual page to another like for example when you swipe from the Official Windows Phone 8 page to the Apps page using a left swipe. Can you please point out on how to achieve such a thing.
http://agilemobility.net/2014/07/windows-phone-8-swipe-gesture/
This page shows an example on how to that, but the motion of moving the current page and bringing the second one is displayed.
I wasn't aware of the following, and yes, Pivot is the answer to my question.
Taken from: https://msdn.microsoft.com/en-us/library/windows/apps/ff941103(v=vs.105).aspx
You can use a custom template named Windows Phone Pivot App when creating a new project. This template will come pre-populated with content and you can modify the template accordingly.
List itemThe Pivot control can be added to the Toolbox in Visual Studio and can be easily dropped into your project.
You can add a Windows Phone Pivot Page to an existing project.

Creating a slideshow in windows phone 8 without using pivot app

I'm writing a windows 8 app wich basically does nothing when you open it (everything is done in background task and the user doesn't see it) so I need to display a kind of slideshow on the main page of the app just so it looks like something and not just a blank page.
My problem is I can't use the pivot app template, I need to start from a blank template.
So I'd like to know what is the most simple way of doing this ? By the way, I need the slideshow to switch between the images automatically (with a timer that I can set) but the user can switch himself if he wants to
Thank you :)
You say You can't use the pivot app template and want to start using a blank template.
You can however add pivot as a control once you start with a blank template.
If Not using pivot is your aim, then try panorama.
Start from a blank template and add panorama control to it. Panorama can also help you to get a nice sliding effect like in a slideshow.
you can have images in stackpanel and detect Flick Gestures whether left to right or viceversa through HorizontalVelocity of Flick events.

Categories