I am working on windows phone8 xaml c# application, I need to implement pinch zoom in my reader page. Any help?
you could follow this msdn tutorial
http://www.windowsphone.com/en-in/how-to/wp7/start/gestures-flick-pan-and-stretch
And
The Windows Phone emulator only supports multitouch gestures with a multitouch device. You would have to have a screen, or touchpad to work with it. Also, there has been comments about using two mice and there is a project on codeplex http://multitouchvista.codeplex.com for it.
Related
I'm implementing WPF app where I need to take high quality photos from integrated camera. So far I've been successful with capturing video and taking frames from it (described for example here: Wpf and C # capture webcam and network cameras).
But this is not what I want - because video frame quality is not so great. I have MS Surface 4 Pro which has 8Mpx camera with full HD video support and with the above method I'm able to just get full HD frame from it. But I would like to have full 8Mpx picture, like it is possible to take in the native Windows Camera app.
In UWP I would probably have been successful with CameraCaptureUI class, but I didn't find any clues for WPF.
Does anyone has an idea how this could be implemented?
I've found out that XAML Islands do work with .NET Framework 4.8. So I've been able to implement a WPF solution using UWP components MediaCapture and CaptureElement. With that I can take photos with full resolution which was my goal.
Simple sample project can be found here: https://github.com/ondrasvoboda/WPFCamera, consider it just as a proof of concept.
If your app will run on Windows 10 or above, you can now use most of the APIs from Windows 10 in a WPF application.
https://blogs.windows.com/windowsdeveloper/2019/04/30/calling-windows-10-apis-from-a-desktop-application-just-got-easier/
How can I implement something like DreamScene using C# ?
I want to play a video in front of the wallpaper but below the icons on the desktop.
This article explains how to draw you windows under the desktop icons in Windows 8, and also links to an example of how to do the same in Windows 7/Vista/XP.
You have to use lots of interop and handlers and stuff, so it's not easy or clean... But can be done :P
You can use the media player class:
https://msdn.microsoft.com/en-us/library/system.windows.media.mediaplayer(v=vs.110).aspx
to play a video. To hide the icon from the tool desktop, edit the property ShowInTaskBar of the form.
Hi I am new to windows phone 8.How to make an image to zoom in and zoom out smoothly in an automatic manner windows phone 8.
Thanks for your help in advance.
So to start with, you could use the Silverlight for Windows Phone Toolkit in order to use the Gesture provided by CodePlex. A workaround has been already done here.
Or else another option would be to go with the ManipulationStarted events for an image.
Reference: Smooth pinch-zooming and panning on Windows Phone 8
Another option could be, to use the Viewport control for Windows Phonewhich could handle flick and pinch gestures. Better if you could have a glance at the sample given by msdn. There could be more options out there, it would be better if you could give a search on them.
I used some tutorials on the internet that taught how to use touch input in XNA for windows computers with a touch screen. However, I'm using a Surface Pro and the XNA studio doesn't even recognize it as a touch screen. I used a test by printing the status of TouchPanel IsConnected and it was false. The maximum touch capability returned 0 (I think surface has a multitouch of 10).
Is anyone familiar with this? I was trying to do some simple tasks like, receiving multiple finger clicks on the screen.
XNA 4.0 doesn't support touch on any device other than Windows Phone 7. See this blog post for full details.
That linked blog post provides some alternative methods for receiving touch input (basically: use the Windows APIs).
I want to use a trackball in my C# .NET application. But I do not want the trackball to be used by Windows as a mouse. When I connect both a trackball and a mouse the are both given control of the cursor.
So there are essentially two questions:
How can the trackball be removed/disabled/coaxed into giving up control of the cursor?
After doing this how can I access the trackball movement information from my C# .NET application.
Thank you!!
Ash
PS: I specifically want trackball support, but am hoping that joystick support will be similar as I may expand to this functionality in the future. Since the joystick does not default to having control of the cursor I can see how this may be different...perhaps easier?
I would think you need to install a special driver that would not identify the mouse as a mouse, but as an input device that streams the movement.
The windows driver kit might help. It says they have a HID device example.
I highly recommend Edward Tse's SDG Toolkit (Single Desktop Groupware Toolkit). I used it several years ago for an application that required multiple mice and monitors.
You can also get the C# source code: http://grouplab.cpsc.ucalgary.ca/cookbook/index.php/Toolkits/SDGSourceCode