how to capture freehand writing in xamarin forms - c#

I am working on an app to get free hand texts from a user and save as text file using xamarin forms but i am not quite getting any api or nugget or library for that any help will be appreciated

Check out the SignaturePad component.
Check out this guide: link
You can also check out this implementation of the signature pad here: link

Related

Parse Markdowns in TextBlock in UWP .NET C#

I Want to parse a string which contains markdown and I also want to display the parsed markdown in the TextBlock of UWP App.
Some of the markdowns I want to parse :-
__bold__
_italic_
~!spoiler!~ - Here the text "spoiler" will be hidden and when I click it, it will show up the text.
youtube("https://youtu.be/aUnak1") - This will embed a youtube video.
[hyperlink](https://google.com) - Hyperlink.
Anyone has any idea how to achieve this in UWP App. If Someone knows please help me.
Thanks in Advnace...
You can take a look at the Windows Community Toolkit
it actually features a MarkdownTextBlock:
https://github.com/CommunityToolkit/WindowsCommunityToolkit/tree/rel/7.1.0/Microsoft.Toolkit.Uwp.UI.Controls.Markdown/
You can also take a look at the Windows Community Toolkit sample app:
https://www.microsoft.com/en-us/p/windows-community-toolkit-sample-app/9nblggh4tlcq

How can i implement Twain in a UWP App for scanning documents

Im trying to create an UWP App that allows the users to scan documents with TWAIN. I tried a few nugets such as Atalasoft DotTwain, NTwain, TwainDotNet and Saraff.Twain. All of them have samples made in WPF, Winforms... except the Saraff.Twain nuget that have a sample made in UWP.
The problem here is that when I run the WPF and Winforms samples all of them works pretty nice, basically is what I need to do but in UWP and when I try to use the code of the samples on my own App it doesn't build because it doesn't recognize a lot of classes even with the Using sentences at the start of my class.
The Saraff.Twain UWP sample doesn't build and i can't find another Twain UWP Sample on google.
Im not putting code because there is no particular problem but if you want it just leave a comment and I'll upload some.
Does anyone have used TWAIN in an UWP APP successfully? I'm very lost with it... Hope any of you have the key to the gate. Thanks.
UWP has its own document scanner API. In addition, it is possible to use Dynamic Web TWAIN in a UWP app. Check this blog: https://www.dynamsoft.com/codepool/uwp-document-scanning-web-twain.html

Using phone camera to scan and extract text in web app

I am making a .net web app. My attempt of taking a picture and trying to extract text from that picture has a terrible success rate. I see apps that let you scan a page into pdf. I want to use that approach using the users phone camera. I need help identifying the best free APIs that will help accomplish this.
I don't have any code yet; I don't want you to do it for me rather just help me find the resource. I'm new to this and here to learn and get educated.
The most popular open source ocr solution is Tesseract.
Here are 2 github links to Android and IOS open source solutions using Tesseract:
Android Github project
iOS Github project

Source code of apps in windows8

I want to develop a metro style application using c# and xaml.In windows 8 there are many default apps like maps,weather etc.
Is there any way to get the source code for maps or weather app in windows 8?
Please help me.
All the Windows Store apps are installed to
C:\Program Files\WindowsApps
where you can look at them. The JavaScript apps are readable without problems, you need to decompile the C# apps to get to their source code. You can use tools like JustDecompile from Telerik (free).For more info see this article by Justin Angel http://justinangel.net/ReverseEngineerWin8Apps
I highly recommended you to visit Microsoft Windows Store app site. The site gives plenty of function-by-function examples.
Please download C# 30.9M sample files at below link and it would be good reference for you.
http://code.msdn.microsoft.com/windowsapps/Windows-8-Modern-Style-App-Samples
For more real-life example as you imagine,
The weather app example:
http://www.c-sharpcorner.com/UploadFile/99bb20/consume-web-service-in-metro-style-app/
The map app example:
http://code.msdn.microsoft.com/Bing-Maps-SDK-for-Metro-31b378eb

Is there an easy way to detect shake motions on Windows Phone 8?

I need to detect a shake movement on a Windows Phone 8 device, in order to launch a specific action. How can I do that ?
I found several mentions of a "ShakeGesture.dll" library made by Microsoft for WinPhone7, but the only place where it was available (AppHub) was replaced by the Dev Center website...
Thanks for your help!
That's odd. Looks like the AppHub to DevCenter rename broke the download links.
I've uploaded the library to my domain in the meanwhile until those links get fixed # http://JustinAngel.net/Storage/ShakeGestures.zip
Here's an example on how to use the Shake Gesture Library:
http://blogs.microsoft.co.il/blogs/arik/archive/2011/04/01/shake-gestures-library-a-windows-phone-recipe.aspx
You should be able to add a reference to the ShakeGestures.dll assembly to get started. If you're using the Windows Phone 8 SDK, I believe this library is included - you'll just need to add the reference.
UPDATE:
You should be able to download it with this link:
http://go.microsoft.com/fwlink/?LinkId=219094
I found that here. If you scroll down to "Locations and Sensors" about 2/3 of the way down, there's a link to download the gesture library as well as an example.
UPDATE 2:
Hmm. It appears that download link was the sample project. The ShakeGestures.dll doesn't seem to be in it either. I don't have VS2012 on my computer here at work, but if you do, you could open up the sample solution and see if it is referencing that DLL somehow, and maybe see where it points? It seems like it has to be using it...I just can't open it in VS2010.
Download ShakeGestureLibraryCS from Windows Phone Developer Samples:
http://code.msdn.microsoft.com/wpapps/Shake-Gesture-Library-04c82d5f
Download C# project and Build (for Release) to create the 'ShakeGestures.dll'
Add Reference to your WindowsPhone project.

Categories