Do Windows store apps supports custom gestures? - c#

i'm beginner to creation Windows store apps. Do Windows store apps supports simple way to make custom touch gestures? I searched in MSDN and I found Tablet PC SDK 1.7 but it's written for Windows XP Tablet PC Edition. Thanks in advance

Yes. I'm using the MSGestureEvent in my javascript Windows Store apps but I'm sure there has to be something similar for C# (which I believe is your case)

Check out the Gestures and Manipulations sample: http://code.msdn.microsoft.com/windowsapps/Manipulations-and-gestures-362b6b59. Also see Responding to user interaction (http://msdn.microsoft.com/en-US/library/windows/apps/xaml/hh465397). And if the standard gestures and manipulations aren't enough, you can use Windows.UI.Input.GestureRecognizer to roll your own.

Related

Put the calculator on TopMost C# [duplicate]

I'm developing a Windows 10 Universal app (UWP).
Is it possible to set application as TopMost (always on top)? Like WPF or Winforms (TopMost property).
Thanks
A feature called CompactOverlay mode was added in the Creators Update that supports this type of functionality. When an app window enters compact overlay mode it’ll be shown above other windows so it won’t get blocked. This allows users to continue to keep an eye on your app's content even when they are working with something else. The canonical example of an app taking advantage of this feature is a media player or a video chat app.
A blog post describing the feature can be found here
https://blogs.msdn.microsoft.com/universal-windows-app-model/2017/02/11/compactoverlay-mode-aka-picture-in-picture/
Short answer is no, there is no way as of today to make the application modal.
There is a petition going around asking for this functionality, which was requested last December but given the amount of votes it got (35 at the time this answer was written), it doesn't look like it will be taken into consideration anytime soon.
As mentioned in the comments, this functionality would be PC only so even if it was added, my assumption would be that it wouldn't work outside of the PC mode (so no tablet, mobile or surface family device support).
It's not possible UWP apps have some restrictions compared with WPF of Win32 apps(classic apps).
With uwp apps you need enable some capabilities to do something special in your app as you can see in the link uwp apps need ask for permission or they can't access or modify files directly.
https://msdn.microsoft.com/en-us/library/windows/apps/mt270968.aspx
Best Regards

C# Windows Universal 10 TopMost Window

I'm developing a Windows 10 Universal app (UWP).
Is it possible to set application as TopMost (always on top)? Like WPF or Winforms (TopMost property).
Thanks
A feature called CompactOverlay mode was added in the Creators Update that supports this type of functionality. When an app window enters compact overlay mode it’ll be shown above other windows so it won’t get blocked. This allows users to continue to keep an eye on your app's content even when they are working with something else. The canonical example of an app taking advantage of this feature is a media player or a video chat app.
A blog post describing the feature can be found here
https://blogs.msdn.microsoft.com/universal-windows-app-model/2017/02/11/compactoverlay-mode-aka-picture-in-picture/
Short answer is no, there is no way as of today to make the application modal.
There is a petition going around asking for this functionality, which was requested last December but given the amount of votes it got (35 at the time this answer was written), it doesn't look like it will be taken into consideration anytime soon.
As mentioned in the comments, this functionality would be PC only so even if it was added, my assumption would be that it wouldn't work outside of the PC mode (so no tablet, mobile or surface family device support).
It's not possible UWP apps have some restrictions compared with WPF of Win32 apps(classic apps).
With uwp apps you need enable some capabilities to do something special in your app as you can see in the link uwp apps need ask for permission or they can't access or modify files directly.
https://msdn.microsoft.com/en-us/library/windows/apps/mt270968.aspx
Best Regards

Is it possible to write an application that runs on Windows Mobile 6.5 as well as Windows Embedded 8.1/10 Handheld?

A customer needs an application running on an industry handheld device with barcode scanner.
Unfortunately, Windows 8.1 Embedded Handheld devices are rare, and Windows 10 Embedded devices are non-existent. Almost all devices currently available use Windows CE 6 or Windows Mobile 6.5.
As far as I know, (.NET) applications for Windows Mobile 6.5 are exclusively based on Compact Framework and WinForms, whereas Windows 8.1 Embedded software is (exclusively?) based on WinRT and XAML.
Is that correct? Is there no way to write a (.NET) application which
runs on current (Windows Mobile 6.5) devices and
will run Windows 8.1/10 Embedded devices?
You are right, there is no way to do that. The UI is based on winforms for 6.5 and XAML for 8/10.
The only thing you can try to do is to try to keep UI and business logic cleanly separated to simplify the migration.
Consider also that some features you had on 6.5 (ex: sql compact) have been dropped in 8/10 and the "replacement" may not be code-compatible and may lack some features.
You may try to build and test your non-UI code already on 8/10, so you can check that you are not using features that may impact your migration.
If you don't have to write native .NET-code, you should be able to use Rho Elements. Possibly there are other cross platform solutions that work as well.
Possibly you can go with Windows.Forms on Windows Mobile 6.5 and Xamarin on Windows Phone. You need to use a compatibilty layer for the Form code of Compact Framework and the one supported by Xamarin.
But I would recommend to go with HTML5 (use ZetaKey browser on Windows Mobile). Even RhoElements is based on HTML5 but with properietary extensions.
Yes, it is possible. You will have to implement all GUI logic platform dependent. And can share code using MVVM pattern. You may also need to switch to a database, that is available on both platforms like SQLite.

Wifi Direct in Windows 7 and WPF

I would like to have some basic communication between some apps we are building. I have been researching on wifi direct, which sounds perfect, but I cannot find much information on it for Windows 7 and WPF (C#).
When I search around all I seem to get is Windows 8 support and Android questions.
Is this a standard that has been implemented by Windows 7? Can I use the features in a C# WPF app? If so, some reference materials would be great if you know of any.
Thanks.
Wifi direct is not implemented in Windows 7, although there may be some 3rd party apps available that implement it.
It is a new feature built into windows 8. Here's a presentation that goes over the feature in detail: http://channel9.msdn.com/Events/Build/BUILD2011/HW-329T

Microsoft Based Touch/Stylus Input

Disclaimer:It's my first time developing an app that will be on a tablet style pc.
The app needs to allow a user to write notes with either a tablet pen or by touch. This must be a .net app and may be on either Windows XP and/or Windows 7. I am mainly tasked with capturing written notes from the user interface, but I am sure I will be working on other aspects of the app.
I have looked into Digital Ink and it seems the way to go, but I am unsure of how much support currently exists for windows 7 and how much support there is going to be for this technology in the future.
My questions:
Am I going in the right direction, and if not...is there something that would allow me to better accommodate this type of user input?
Does any one have other tips or good reference sites with good info on microsoft based touch and/or tablet stylus input.
If you plan on doing custom programming, you can check out the Windows Touch API for Windows 7.
Touch and Digital Ink both use C# and .NET framework, so I would imagine there is a considerable amount of support for Digital Ink in Windows 7.
Also, in the .NET framework, there's a Stylus class that tracks stylus coordinates in a text box, even if the stylus leaves the box and comes back in:
System.Windows.Input.Stylus
Hope this helps!
Microsoft also provides the RealTimeStylus API, see this tutorial.

Categories