I have a vertical toolbar shifted to right edge in screen because of interference by 3D Touch on left. It was working fine until now but when tested in new iPhoneXS, tap is not working properly. Tap works only towards left end of buttons and does not work towards right edge in screen. However, if we long press on right edge, it works fine. I also noticed that UITouchPhase.Moved is fired after UITouchPhase.Began, even though x and y coordinate do not change. Any ideas, how to fix this issue?
In toolbar's buttons, there are two grids i.e one color indicator (tap works fine) and other to select drawing tool (tap does not work, long press does). Tried adjusting rows and columns in grid, but that did not help.
Related
In the image above the Back button was in the corner of the screen and the right arrow was near the end of the canvas. I left my computer for like 30 mins and I come back to it like this, I've tried fixing it but if I scale the canvas it still isn't right and id have to adjust all the UI I have done. Is there a way to reset the canvas to normal or some kind of fix? I don't have time to rescale all my UI so it would be nice to know, thanks.
Make sure the Canvas is set to "Scale with screen size" and that the "Back" button is pivoted ( go to pivot -> upper right corner and use ALT and then SHIFT to make sure it's pivoted ).
Other than this, if it was your cat just "Ctrl+Z" your way out or revert to a slighty older version if you are using version control.
For some reason unity re-scaled itself and now everything is (mostly) back to normal, I have no idea how this happened and how it fixed itself (I hadn't touched the project since this post until now (about a day later) and it was fixed)
I'm making an online cinema UWP app and i need to implement horizontal "gallery" with movies. The app will be used on PC, Xbox and touch devices, so i need the scrolling to be working with mouse, arrow keys and touch scrolling with swipes.
Currently I'm using ListView with ScrollViewer, but it doesn't give me the intended result. I want mouse wheel to scroll vertically, but when pointer enters the area of ListView, it starts to scroll the View horizontally. Disabling horizontal scrolling, well, breaks everything, so this pure implementaion is not an option.
I like the way MS made horizontal gallery in Microsoft Store app. It's scrollable with touch swipes and keyboard, but mouse wheel does nothing. Instead, the view shows round arrow buttons on the sides of this horizontal list like this:
I want to make something like that, but can't find any tips for controlling the scroll manually. Maybe there's any similar controls I don't know about or docs for making such control?
It should not be a big deal.
Set the VerticalScrollMode="Disabled" , VerticalScrollBarVisibility="Disabled", HorizontalScrollMode="Auto" and HorizontalScrollBarVisibility="Auto". Then set those two buttons to left and right with vertically centered alignment.
Use the ChangeView Method in the Click event handler to programmatically scroll through the contents. That's it.
I have the need to make a control that allows for multi directional scrolling, but only for specific elements within the scollviewer.
Something like this:
The control is split into 4 parts.
Top left is a static header, it will not move when scrolling.
Bottom left works like a listbox, only scrolls up and down.
Bottom right can scroll in all directions but needs to be in sync with the scrolling of the bottom left area.
Top right is the header for the content in the bottom right, and must be in sync as well.
There is an app on the Windows Store now called Project Timeline, and it appears they have done this with 1 ScrollViewer, but im not entirely sure how.
I've implemented a solution with 2 scrollviewers, but between the 2 scrollviewers there is scroll tearing on slower devices, and this is unacceptable.
Anyone have any ideas how this can be done with 1 scrollviewer?
PS, I'm looking for a XAML solution, not a WinJS solution.
Thanks.
Looking for days, didnt find anything, then as soon as I post this question i figure it out... typical right?
This is accomplished with:
ScrollViewer.TopLeftHeader
ScrollViewer.TopHeader
ScrollViewer.LeftHeader
http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.scrollviewer.topleftheader
I have a silverlight application in which I have to click on some pictures, if I hover over them for 3 seconds approx.
The problem is that if the pictures are a bit small in size, and the mouse moves a little, it moves out of the respective picture clicking area and selects another picture.
I have tried using a custom image in place of the default mouse cursor, but can this mouse be enlarged in some way so that it has a larger clicking area under it and not only the tip of the mouse pointer?
I think you're thinking about this the wrong way around. The mouse pointer simply defines a coordinate on the screen, rather than an area. If you want mouseover/click etc to be more generous, and give a wider area of interaction, you should make the target area larger.
So in the case of some small image, you can surround it with a larger area to handle the mouseover or click events, for example by surrounding it by a transparent border (note that elements with a transparent background will receive mouse events, unlike elements with no background).
I am developing a small application with images and trash box icon on right hand bottom.
I have multiple images floating in the main window, and using mouse I can move image from one corner to other corner of window, left, right, top and bottom.
I can't figure out how do I catch an event when a image touches and panel (with trash box image), in the right hand corner.
Does anybody knows which event or handler to listen? This is not a drag and drop case since my images are floating so no point using drag and drop.
Thank you
Per this thread (MSDN), you could listen to an event fired when your image moves, and get Rects representing the trash box and the image, then use the IntersectsWith() method to detect if they are "touching".
Other than that, there are the UIElement events DragEnter, DragOver, and Drop (as well as their Preview___ counterparts) which might fit the bill. However, those are part of drag-and-drop. I'm not convinced that drag-and-drop is not appropriate in this situation. It sounds like drag and drop to me.