Im having problems with WPF application where i have:
Wrap Panel as Items Panel in listbox which is (the listbox) in ScrollViewer. I also have lot of buttons which i can drag and drop. Problem is that it works fine when im using mouse, but not working when im running application in touch screen. Is there any property should i change so it will work in touchable screen?
Thanks for any answers!
Hi I have not did this ever but I think that for touchscreen you will have to use Stylus events. Like for Drag use StylusMove etc. I hope this will lead you to get an idea.
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 using the datarepeater that comes with the visual basic power pack in a winforms application. The problem I'm having is that the control doesn't allow swiping inside the container to scroll up and down. You can still use the scroll bar itself, but the width of the scroll bar is too skinny and is hard to get a hold of sometimes. This baffles me, because swipe scrolling on all the other winforms controls seems to work fine. This is probably a longshot, but can anybody help me?
I have implemented MouseDragElementBehavior to my application before but unfortunately I use the application now using touch panel.
Before, obviously I drag using the mouse, but now because I am using touch panel, the MouseDragElementBehavior won't work.
Is there a way to convert this? My only changes to my application is by using Touch Panel and no changes to my application at all.
The rest like what a mouse can do is also doable by touching but dragging is not supported.
Please help. Thanks
There currently isn't any official Drag for touch. You can however create your own thouch event for such by responding and combining touch events.
PreviewTouchDown For starting your own start drag function on element so add the TouchMove event here to the object
TouchMove For dragging the object visual
PreviewTouchUp For stop dragging stop the TouchMove event here
TouchEnter Check if the object you entered accept drops
Or you can of course google for libraries that already implemented this kind of behavior.
I have googled it a bit and found a good walktrought for windows applications.
And with the Touch Class you can get all the touch points in the application (multiple fingers) and implement your own behavior.
I'm using the silverlight scrollbar and I'm finding that the mouse does not drag the scrollbar 1:1. When I drag downwards for instance I find the mouse cursor starts going down further than the scrollbar has..
edit: this issue occurs in IE8 but not Firefox 5.
Are you working with datasets or trying to display large, complex data within the object whatever the scrollbar is attached to?
If yes, try toggling UI virtualization and see if it changes anything.
If it doesn't work it may be something to do with GPU acceleration. Just toggle GPU acceleration in both SL project and IE. Sometimes when CPU loads a lot while scrolling, it just doesn't scroll correctly because of this, well, I call "lag".
I'd like to achieve the following and was looking for a sample/tutorial but couldn't really find anything:
I have C# Winforms application, which has multiple Forms within the same process. I'd like to be able to drag & drop items within and between forms and would like to provide some custom painted visualization of the item being dragged.
For example, my IM app shows the effect that I'd like to achieve:
Thanks,
Tom
You actually physically have to drag a control with the mouse.
For example: http://blogs.msdn.com/b/adamroot/archive/2008/02/19/shell-style-drag-and-drop-in-net-wpf-and-winforms.aspx