How to pass MouseMoved event to WebView content? - windows-8

We are using the webview control in a WinRT XAML app. The problem we are facing is that MouseMove event is not passed to the html when using touch, while it is normally passed when using mouse.
When using touch the events passed during touch-move-release are:
MouseDown
MouseUp
while with mouse they are:
MouseDown
MouseMove
MouseUp
Is there a way to solve this problem?

Related

How do i prevent mouse and touch events from trigger for DisplayObjects below a backdrop

I have several display objects in createjs and event using easeljs i want to prevent from mouse and touch event passing through them.
i want like a easy one liner like .mouseEnabled or .mouseChildren is there something will will prevent any other interaction for the objcts below this. i can try adding all events to a backdrop movieclip which tint background color and prevent default and stopPropogation will that help?
so how to i prevent from any type of interaction taking place in canvas just by placing a displayobject that's like wall which will not allow the other displayobjects from getting click, mouseover or touch events.
You can add obj.mouseEnabled= obj.mouseChildren = false; to any you don't want to receive events.
If you just want to block events with a child on top, simply add a mouse handler to it.
cover.on("click", function(){});
You don't need stopPropagation, since that will only prevent events from bubbling in the current hierarchy (ie, surfacing an event to its direct parent). Events do not "pass through" objects that have mouse handlers on them.
Hope that helps!

NSView regisstering events on first click of mouse (making the app active)

I'm kind of pulling my hair out here. I have a single window application with a NSscrollView and custom NSViews inside of the scroll view. The custom NSViews are registering mouseUP and mouseDown events but my problem is that when the app/window is inactive and you click on it anywhere to make it active the mouseUP and mouseDown events are being triggered in the NSView that you click on.
I overrode the '(BOOL)acceptsFirstMouse:(NSEvent *)theEvent' to return NO just to be sure (i know this is the default.
I can't figure out what I'm doing wrong. I'm principally an iOS developer so my OS X experience is not super extensive. Any input helps. Thanks!
Found the issue. I had a NSTexField on the subview that was capturing the first mouseDown event. Just overlooked it.

Winrt Syncfusion TileView control selectionChanged event not firing

I am working on a win8 app using Syncfusion controls. I used a TileView control in a page with 4 hardcoded items in xaml.
I want to capture a event to find out which item is in maximized state or clicked.
I tried selectionchanged event of TileView but that's not firing even tap event of TileViewItem also not firing.
Is there any way?
I tried to use same thing with the sample code. same result.
I found something after editing template
There is no property like IsItemClickEnabled.
I checked Syncfusion TileView Control in latest version 11.2.0.64, SelectionChanged event is firing in TileView when we select item and maximized item was identified through MaximizedItem property of TileView.
Sample :
http://www.syncfusion.com/uploads/user/directTrac/General/TileView_StackOverflow-347277746.zip

Detecting a scroll event in GridView (Windows 8)

How do we detect a scrolling event in GridView (like ViewChanged on ScrollViewer) on somethig like the default GridView template sample app? I'd like to replicate the effect that the netflix App does on the left red strip.
I tried putting the GridView inside a scrollviewer, but I've been unsuccessful at stretching it to fill the screen for different resolutions.
Update: I intend to use this with VariableGrid control that's on NuGet - though it's not an official control, it inherits GridView
The best way to do this seems that you can read through the components of the control, and assign events to it. based on what's happening in this example
http://mikaelkoskinen.net/post/WinRT-XAML-Automatically-Scrolling-ListView-to-Bottom-and-Detecting-When-ListView-is-Scrolled.aspx
I grabbed access to the scrollbar, suing the VisualTreeExtensions and I could capture the event Scroll, just like in the example. I had to read the children when the Loaded event of the grid was fired.
There is a simpler way.
Edit a template of the GridView, and look inside the XAML to find a ScrollViewer which is a component of the GridView.
The ScrollViewer has a ViewChanged event that you can subscribe to. Now whenever the GridView is scrolled, this event will be fired.
Try ManipulationCompleted and PointerReleased events on GridView. This is just using keyboard mouse..

Events generated when grabbing and moving the WinRT app window from the top edge with the mouse?

On Windows 8, what kind of events are generated when moving the mouse cursor to the top edge and then click-dragging downwards with the left mouse button? It brings the window to a state where it can be docked to either side of the screen or exited by dragging it to the bottom of the screen.
You do get the mouse move events, but there are no events fired to tell you that your app COULD change it's layout. You will be told when the app is snapped, filled, or landscape/portrait. If you are using the LayoutAwarePage, you will be told within the DetermineVisualState method.
protected override string DetermineVisualState(ApplicationViewState viewState)
{
// Use the viewState property to determine layout
return base.DetermineVisualState(viewState);
}
It's the Activated event in Windows::UI::Core::CoreWindow. The callback function's args variable gives a WindowActivationState (Deactivated, CodeActivated or PointerActivated). An example of how to implement it can be found in the Microsoft XAML DirectX 3d shooting game sample.