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".
Related
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 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 some troubles with redrawing images on c# Windows forms. I have some images to be drawn on panel. Everytime a panel_Paint event is raised, i draw my images. Everything was nice, untill I started to scroll my panel. The "redrawing" is for some reason noticeble to human eye. I mean, you can watch how the place, where image takes place, is for a very small time empty and image is drawn upon that place a bit later. This effect appeares each time I redraw my images. This effect reminds me the same as, when a Person scrolls something in folder on a PC without Graphic Card drivers installed.
Can i get rid of these visible "redrawings"?
I wish i could scroll my images without any lag.
I invalidate my panel with images, each time i move my mouse over other panel(this panel is some sort of scrollbar, that i am trying to implement).
EDIT: Problem resolved
I have some tiles layed out as buttons in my app. Im not that good at xaml and hope someone here can guide or show how i come around making them behave alittle like the tiles in the start screen of windows.
I have with some template set. How can i add the little border when mouse is moved over it and how do i make it look like it gets pushed down when clicked.
my button is just a sqare box with a background color.
You have to edit the Control template for Button. And add an additional border which should appear on Pointer over state. Write your own animation in Visual State manager to achieve this. To make this more easier just open your project in Expression Blend. Right click the button and choose edit template. the default template will fell into resources, so that you can just modify.
http://msdn.microsoft.com/en-us/library/cc294908.aspx
To perform a push effect, need to animate Scale Transform in pointer pressed state.
Regards,
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.