I am programming a Windows 8.1 App using C#/XAML as well as the MVVM-Light Toolkit.
In that App I have a FlipView with an items in it that occupy the space of the whole Page. However when scrolling between them it does not look smooth because instead of really scrolling the FlipView directly displays about 8/10 on one side of the item that is being scrolled to and then just scrolls the left 20%.
My question now is whether it is possible to make the FlipView display all of the content. I've also thought about replacing the FlipView with a GridView. That would imply the problem of switching directly to the next item when the GridView is scrolled.
I don't see any code in my App that fits the question and research did not provide an answer yet.
Help is much appreciated.
Thanks :)
Problem solved.
I just had an unnecessary, complex task running every time the user scrolls. The issue I had was just a lag. Since it was the first time I used a FlipView I thought that was regular behaviour haha :D
Thank you anyways :)
Related
I made a styled listbox in WPF, whenever someone clicks an element or presses an arrow key in my listbox, windows plays its "select sound".
This is not appropriate in this specific listbox, how can I disable it?
Or how can I disable all the "default sounds" / system sounds that my WPF application makes?
After a lot of searching and trying to reproduce it in a test application; I figured out that it was actually a Frame control that caused the sound.
I found an answer here Turn off navigation page sound in WPF Frame control
However that didn't work on all computers I tested it on.
I'm replacing the Frame with a Border now since I don't need navigation.
Try using itemscontrol. That doesn't provided select item functionality. If you require that then select sound should be there by default.
I'm trying to code a picture book. For this I am scanning every subfolder of the MyPictures Folder and add every picture I find to an observableCollection. I dont want to limit the amount of pictures, in this view.
In function it should work the same way, the normal Windows explorer window with extra big symbols does.
I have tried a lot of things, but every solution I found always had the problem that I lost smooth scrolling (I tried virtualizing stackpanel. Aside from the worse looks compared to a grid it also had the scrolling problems).
If I understood correctly, the smooth scrolling doesn't work anymore, because pictures are loaded, and the scrollviewer has to be updatet, regardless if it is a virtualizing stackpanel or not.
In the windows explorer this is worked around by displaying placeholders, I think.
Do you have any idea how I could implement something like that myself?
Edit: At the moment, I am preloading chunks of the pictures. When the view was scrolled down, I update that chunk with the new pictures. But while the update is running, the scrolling gets laggy again.
i'm making a universal app for Windows 8.1 and Windows Phone 8.1 and i'd like to know what is the control in a windows app which work like the PIVOT in WP.
I found this picture in the msdn site http://assets.windowsphone.com/ec9dcbf2-d057-4d2d-a627-01565d2ff76a/WSA_Design_L2_1_UniquelyWindows_ModernDesign_702x394px_InvariantCulture_Default.jpg
on the picture you can see a menu on top, i imagine that if you click on "Timer", the main screen would slide to the left to make room for the main screen for "Timer".
It's the most pivot-like that i found but i don't know what is used to do that.
Thanks in advance and sorry for my english, hard to find the right words when you don't know how it's called >< !
You can use FlipView control and place grids in it. It's not same as Pivot though, putting title on page items like PivotHeaders will be a little harder. But still there is almost a work around.
There isn't a direct equivalent. The point of the pivot is to break up the UI into phone screen-sized parts; you don't needs this so much on the tablet/PC.
The hub app template is the closest starting point, but really you should probably design your app as if all the pivots are open at once and spread out horizontally.
Use a grid control with several more sub-grids within it. Or you may want to redesign your layout completely for larger screens. You'll need to put the controls within a scrollviewer in order to let the user scroll left/right on screens that won't fit it all at once.
I am doing my current application in XAML/C# Windows Store apps, i load the bulk of Items in to the ListView to maintain the Virtualization in the page. I use the GestureRecognizer to obtain the Transition and Zooming of my control. My all these UIElements are inside the DataTemplate of my ListView. GestureRecognizer working fine without ListViewer.
But when ItemsControls comes into the picture, it stopped working and does not do any Transform in the page. Is there any workaround of this problem ?. I could guess some of the guys also facing this problem.
Could you please anyone help me on this ?
What is the difference between the winphone 7 Panorama and Pivot Controls? To me they seem very similar, apart from the slightly different visual appearance.
In which situations should one or the other be used?
There is a video on Channel 9 with Amy Alberts and Chad Roberts that talks about the differences between the Panorama and Pivot controls and when you should use each.
In my opinion, the Panorama control is for when you need to create a "hub"-type application (like the Games hub) that acts primarily as a jumping point and offers summary information for the rest of the application. The Pivot is used in much the same way that you would use a tab control on other platforms.
As said above, the Panorama control is really meant for rich Hub type look .. smooth multi-screen scrolling with Parallax effect, ideally including images in the views. The Pivot control is more for presenting slices of the related data to the user or categorizing the content .. the in-built emails & calendar are examples. Both controls are very suited for dynamic data-binding.
Jeff Blankenburg, one of the MSFT evangelists wrote two nice posts explaining their use:
http://www.jeffblankenburg.com/post/31-Days-of-Windows-Phone-7.aspx
Hope this helps!
I would use the Panorama control if the content of your application lends itself to being presented in a format where you think of the screen as being a window into a larger page...one that can loop back around to the beginning. Also, consider whether that content needs to support gestures, especially swipes, because those will cause conflicts between some action intended to take place in a control, for example a map with panning, and the "outer" Panorama control's behavior of scrolling.
I'm also reconsidering using the Pivot control. It has a more distinct division between sections of content than Panorama does and I like both the gesture swiping to switch between pivots and the animation. However, it has caused some tombstoning problems and with the advent of copy-and-paste there could be a conflict between the user trying to select content to copy and the triggering of the swipe gesture to switch pivots. Disabling the Pivot Control swipe gesture talks about a possible work-around, although I haven't tried it and see from the comments below that article that there may be some other issues.