Enable mouse scroll in flipview children - winjs

In my WinJS application, I use a flipview, with a Listview inside it.
The listview as a long content, so it is scrollable : the scrollbar is visible, I can scroll with the finger on a touch screen, but the mouse wheel doesn't work.
After looking at the flipview source code, I added the win-interactive class on my listview, and now I can use the mouse wheel to scroll, but the problem is that the scroll also applies to the flipview container : the mouse scroll directly between the different flipview items.
Is there a way to enable the scroll on the listview, without modifying the flipview behavior ?

Yes there is, you can subscribe to the mousewheel event being fired in your ListView and stopPropagation() from there to the FlipView.

Related

When back from activity to the parent layout drawer menu hover wrong menu

I have a problem when opening activity from the navigation menu and when the back button clicks, it come back into the parent layout but the navigation menu hover (Current Menu Fragment/Activity Pointer) shows the menu that is connected to the previous activity.
it's obvious in the images below:
if the gif is not obvious main quality of it is below link.
Gif With Main Quality
when back from the activity (in the gif it's 'Custom') into the parent fragment ( 'Home') the ('Custom') menu is hover, but it should hover the ('Home').
When We Back From Activity Drawer Should Hover The 'Home' Like Below But it Hovers The 'Custom'
You need to handle it through code, using setChecked(boolean checked) method

How to properly display a focus rectangle in a compact SplitView menu item

I'm building my first Universal Windows Platform (UWP) App and am trying to implement the popular "Hamburger Menu" using the SplitView class.
Inspired by many samples, the items hosted on the SplitView pane are re-styled RadioButton controls, with a vertical highlight-rectangle, an icon and a text. The appearance is similar to that of the Groove app.
I'm now trying to implement navigation and selection using the keyboard, and this now bring a little focus-rect around the items in the SplitView pane. However, since the pane clips its contents when its DisplayMode is either CompactInline or CompactOverlay, the focus rectangle is also clipped, which is not the behavior a user would expect.
Please, can anyone advise on how to property display the focus rectangle in this situation ?
Just an idea, what if you set the width of all radio button's to be same as the CompactPaneLength property of SplitView. The default is 48 DIPs.

Different behavor of a tooptip for different mouse events in richfaces is possible?

Is there any way to make a tooptip behave differently deppending on if a mouse is over the element or it is clicked?
I need to have the same element working as a tooltip if the mouse is over and to open a popup panel if the mouse is clicked.
I could do it easily if using separated elements, but i need to use the same.

How to enable swiping of a ListView when the pointer enters it in a windows store app using winrt-xaml?

When an item is selected in a ListView a different content is displayed in a WebView control located on the right of the ListView. Currently I have to click the selected item again in order to be able to swipe through the list. I want that by simply having the mouse pointer over the ListView the swiping works. I don't have a touch screen. I am using a laptop with a touch pad that understands the swipe gesture.

inputAccessoryView not hide the view when -resignFirstResponder?

I have attached a toolbar with a UITextField and UIButton to the keyboard when it becomes the first responder via the user taping inside the textfield
textField.inputAccessoryView = theToolbar;
Problem is, the toolbar disappears when the keyboard is dismissed, thus preventing any further input.
Any ideas on how to make the toolbar go back to the bottom of the screen rather than off it completely?
I'm thinking a delegate method might help but Im really not too sure. It seems once the inputAccessoryView always the inputAccessoryView :(
Cheers
The input accessory view is automatically dismissed with the input view (the keyboard, in this case). Generally you do not want to have an input accessory view in your view hierarchy. Instead, if you want your toolbar to scroll up when the keyboard is shown, you should follow the guidelines for Managing the Keyboard.
You could try using an additional toolbar that is offscreen as the inputAccessoryView, which could "fake" the appearance of what you are trying to do. Alternatively, have you tried adding the toolbar back to the bottom of the screen using
[self.view addSubview:theToolbar];
when the keyboard reaches the bottom of the screen? You can use keyboard notifications for this.

Resources