I need a listBox control for WPF, but with touch scrolling. Something that features smooth scrolling like in WP7? The application will be used with a standard touchscreen.
ListBox and DataGrid already implement touchscreen.
With a mouse you can't see it because it's not possible to scroll on every part of the listbox, but on my 22 inch touch screen, with default properties it's possible
Related
WinForms .NET 6.03 (C#)
In a Form that has a traditional menu and toolbar docked across the top...
I have a split container (vertical splitter) in the left panel I have a toolbar docked to the top and a user control filling Panel1 below the panel's toolbar.
When I resize the panel, the toolbar disappears and the user control shifts up in the panel.
This was not a problem in .NET 4.6. I'm only seeing it now that I'm building in .NET 6.03
Is there a fix?
It turned out that this was a z-order problem. Somehow during execution, the toolstrip was losing it's topmost condition regarding docking.
I have a touchable silverlight application where i want to show information. So I use a ScrollViewer to scroll down or up, but the handling is not the best because it is hard to hit the scrollviewer, so i want to scroll down and up also with finger gestures like we now it from the iPhone.
My first idea was to implement a class which is derived from ScrollViewer, but thanks to Microsoft who sealed the ScrollViewer class in Silverlight, so i can't use this method.
I have heard about Touch.FrameReported (http://msdn.microsoft.com/en-us/library/dd894494(v=vs.95).aspx), but i can't find an example for silverlight pages how to use it. I don't use canvas as in the link.
Has somebody an idea how to use it or another method to scroll with touch gestures? i only need it for 1 finger gesture to scroll pages.
Every suggestion is welcome!
I am deriving a custom control from StackPanel (or just using the usual UserControl class). This control should be focusable within the application by either tabbing or clicking the control. When focus occurs, based on other criterion the control will expand and show certain elements. The control will also choose a default child control to focus on.
The issue I have is that I can find no way to focus on a UserControl. The Got/LostFocus events don't fire when I click on the control.
I am aware of the Focusable property, but it doesn't seem to be available on any of the client dlls for Silverlight (using v4 of SDK)
What I would really like is some advice on how best achieve the functionality of a panel I can tab to, as the UI design I have in mind hangs on this.
I guess the control you are looking for, is an Accordion or Expander control.
Here, you will find steps to use the Accordion control. Hope that helps.
I have add a ScrollViewer in my WPF4 Window with ScrollViewer.PanningMode.
When I drag scrollviewer on my multitouch screen it's OK. But... the Window move with scroll when I arrive on top scroll or bottom scroll.
How can we avoid this?
Edit: To complete the answer: There is a native event for this which can just be marked as handled: ManipulationBoundaryFeedback
This movement is called boundary feedback which is governed by the operating system (can be set by users in the Pen and Touch settings on the Panning tab). I do not know if the Windows API allows you to prevent it, this page might be relevant.
I know how to do custom drawing of a standalone Windows Forms ScrollBar because there are plenty of examples at places like codeproject.com. But how do you custom draw the scrollbars in controls you do not create yourself? For example a Panel can show scrollbars but how would I ensure that the scrollbars it shows are custom drawn?
Or maybe this is not possible and I would need to create my own version of a Panel so that they use my own custom drawing scrollbars?
The scrollbars you see most often, including those built into most winforms controls, are rendered by Windows and there is no way to override their appearance in WinForms short of implementing an entirely custom solution which completely takes over the rendering and behavior of the common scrollbar control. There are some commercial packagages which claim to do this (google winforms skinning).