What is the name of the UWP repository? - c#

Wikipedia states that the
Universal Windows Platform (UWP) is an open source API created by Microsoft
but I had no luck finding it (always landing in the docs or other tutorials). I'd like to take a look at the LockScreen class.
Do you know its location or the name of the repository?

I didn't understand what you were looking for, but this may help you-
UWP sample collection-
Windows Universal Samples
LockScreenApps Repository-
Lock Screen App Sample
Both are hosted in GitHub. (LockScreenApps is a part of UWP sample collection.)

Related

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

Xamarin.forms .NetStandard How to play a video?

I currently developing a Xamarin.form app that use .NetStandard as code sharing technique.
On a certain point in the app, the app must show a video from a url. A video could take up to 5 minutes.
I currently can't find a way how I can play a video in my Xamarin.Forms app.
Most of the examples on the web using PCL with .NET Framework.
I tried This plug in, but it isn't fully supported for .NetStandard, since it is written for .Net Framework:
https://github.com/martijn00/XamarinMediaManager
I already managed to play a video on Android and iOs following this tutorial:
https://blog.xamarin.com/delivering-rich-media-experiences-xamarin-forms-video-player/
However, it can only play videos up to 15 seconds for free and in UWP, it seems to be a bit broken.
I simply cannot figure out how I can play a video up to 5 minutes using .Net Standard.
Can someone please explain step by step how I can show a video in a Xamarin.Form app using .NetStandard as code sharing technique?
Or If anyone could explain in detail how to make my own video control, that works on each platform, that would be fantastic.
Your help is really much appreciated.
You may want to have a look at LibVLCSharp which provides a netstandard target as well as well native controls for each platforms.
Disclaimer: I am the maintainer.
You can find a full tutorial how implementing a video(local or web) in your app
manually at Xamarin documentation
either there is a sample

Is it possible to use UWP APIs in a WPF app?

One example would be the new notification APIs for Windows 10 universal platform. Can I use this set of APIs in a WPF app? If so are there any limitations?
Links to documentation regarding this would be much appreciated.
It is possible to use UWP APIs in a WPF app. However not all UWP APIs can be used in a WPF app.
There are exceptions to the rule that Windows 10 APIs are accessible from PC software. The first big exception concerns XAML UI APIs. The XAML framework in UWP is different from the one in WPF and you really don’t want to be mixing them up, anyways.
The second set of APIs that you can’t use are ones that depend on an app’s package identity. UWP apps have package identities while PC software does not. Package identity information can be found in the app manifest file.
How do you determine which Windows 10 APIs require a package identity and which do not? The easiest way is to refer to this MSDN topic.
For how to access the Windows 10 APIs from WPF, please refer to this answer and also see the blog Calling Windows 10 APIs From a Desktop Application (Please note the name of the references in the blog is not right, so I'd suggest you refer the answer in SO).
No, You can't - at least for now -
But there's a progress on a project called "Centennial" Which will enable you to do so.
More see "bridges".
Yes, you can now.
https://blogs.windows.com/buildingapps/2017/01/25/calling-windows-10-apis-desktop-application/

Windows 8.1 Universal apps documentation

I am trying to develop universal app for first time. This may be a silly question, but is there any comprehensive documentation for c# developing? I need to partially migrate windows 8 app to universal app, but everything I need to use is different there and nowhere I can find what to use instead. It takes hours to find something useful. Mostly here or at other forums. MSDN is not very helpful in this case. I found that universal apps do not use .net framework or silverlight. Is possible to say that universal apps uses clearly labeled standard, for example .net framework 4.5? In this time it seems to me I have to use something from Windows Runtime apps and something from Windows Store apps APIs.
The MS Virtual Academy offers free courses (mostly jumpstarts) for things you might be interested in.
Below is a link to their jumpstart course:
Developing Universal Windows Apps with HTML and JavaScript Jump Start
http://www.microsoftvirtualacademy.com/training-courses/developing-universal-windows-apps-with-html-and-javascript-jump-start
And a link to their jumpstart course:
Programming in C# Jump Start
http://www.microsoftvirtualacademy.com/training-courses/developer-training-with-programming-in-c
Hopefully, this will get you started.
What I was looking for:
Windows universal apps use Windows Runtime.
Only reliable official "MSDN like" page I found is http://msdn.microsoft.com/en-us/library/windows/apps/br211369.aspx
Good tutorials are at Channel 9.

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

Categories