Intro to UWP (Universal Windows Platform) Apps in C#

  Рет қаралды 118,741

IAmTimCorey

4 жыл бұрын

You may have heard about Universal Windows Platform Applications, also known as UWP applications and wondered what they are. In this video, I am going to introduce the topic of UWP and show you how to get started building your own applications using this framework. Along the way, we will talk about when you would build a UWP app, what pitfalls to avoid, and how you can get up to speed faster.
Source Code: leadmagnets.app/?Resource=IntroToUWP
Mailing List: signup.iamtimcorey.com/
C# Courses: www.iamtimcorey.com
What is UWP: docs.microsoft.com/en-us/windows/uwp/get-started/universal-application-platform-guide
Choosing a UWP Version: docs.microsoft.com/en-us/windows/uwp/updates-and-versions/choose-a-uwp-version
Checking for API availability: docs.microsoft.com/en-us/windows/uwp/debug-test-perf/version-adaptive-code
0:00 - Intro
1:30 - Windows Template Studio extension
2:58 - Creating UWP app
4:09 - What is a UWP app?
9:57 - Creating UWP app: Windows Template Studio Wizard
10:50 - Wizard: Project type
11:42 - Wizard: Design pattern
13:18 - Wizard: Pages
16:03 - Wizard: Features
18:50 - Wizard: Services (Data)
21:01 - Wizard: Testing
22:11 - Creating UWP app
24:15 - Demo app code overview
31:46 - Demo app launching and UI overview
41:11 - Demo app Unit tests
43:50 - Demo class library
45:01 - Windows versions: Min and Target
51:06 - Windows versions: Feature fallback for older Windows versions
53:43 - Windows versions: summary
55:35 - Installing UWP app: Sideload apps
58:53 - UWP app without Windows Template Studio
1:00:26 - Summary and concluding remarks
Thanks Ralfs HBK for the chapters breakdown

Пікірлер: 213
@jamesmacrae7730
@jamesmacrae7730 4 жыл бұрын
I am new to desktop application programming and still slightly confused with stuff but thanks to your videos it is finally starting to make sense. Keep up the awesome work!
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I am glad it was helpful. This video might shed some more light on the subject: kzfaq.info/get/bejne/r9dgl7acppfaoIE.html
@jamesmacrae7730
@jamesmacrae7730 4 жыл бұрын
@@IAmTimCorey Thank you very much. I didn't expect such a fast response!
@lutzheinrichs2120
@lutzheinrichs2120 2 жыл бұрын
Thank you so very much for this. I can follow along, live, and learn by doing which is sort of important for my brain. I will check out your other content.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
You are welcome.
@rolandogonzalez1374
@rolandogonzalez1374 4 жыл бұрын
Excellent video Tim, thank you for it.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
You are welcome.
@RalfsBalodis
@RalfsBalodis 3 жыл бұрын
0:00 - Intro 1:30 - Windows Template Studio extension 2:58 - Creating UWP app 4:09 - What is a UWP app? 9:57 - Creating UWP app: Windows Template Studio Wizard 10:50 - Wizard: Project type 11:42 - Wizard: Design pattern 13:18 - Wizard: Pages 16:03 - Wizard: Features 18:50 - Wizard: Services (Data) 21:01 - Wizard: Testing 22:11 - Creating UWP app 24:15 - Demo app code overview 31:46 - Demo app launching and UI overview 41:11 - Demo app Unit tests 43:50 - Demo class library 45:01 - Windows versions: Min and Target 51:06 - Windows versions: Feature fallback for older Windows versions 53:43 - Windows versions: summary 55:35 - Installing UWP app: Sideload apps 58:53 - UWP app without Windows Template Studio 1:00:26 - Summary and concluding remarks
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Thank you. Not sure if you realize it, but by adding this detail, it adds a keyword search type experience for users when doing searches within the entire channel. You Rock!
@RalfsBalodis
@RalfsBalodis 3 жыл бұрын
@@IAmTimCorey I did not know that.
@Mo_TEK
@Mo_TEK 4 жыл бұрын
Thank you for the lesson 😊 . more lesson for UWP please thx.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
You are welcome.
@automationtesting3149
@automationtesting3149 3 жыл бұрын
I am really finding it useful and am able to learn C# really well
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Great to hear!
@BudoReflex
@BudoReflex 4 жыл бұрын
Thankyou. So very helpful. 😊
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
You are welcome.
@muraliprasanthd
@muraliprasanthd 4 ай бұрын
Great Video. It helped me a lot.
@IAmTimCorey
@IAmTimCorey 4 ай бұрын
You are welcome.
@florent9555
@florent9555 3 жыл бұрын
If I look in the options in the design patterns I see that there is a Mvvm Toolkit available. Since caliburn micro is marked as deprecated could you do an uwp tutorial with that toolkit if it is extremely different to caliburn micro?
@mariofares4692
@mariofares4692 Жыл бұрын
Agree with this. Please Tim make a Community Toolkit tutorial. There are none out there.
@CoolModderJaydonX
@CoolModderJaydonX Жыл бұрын
Personally, I was wanting to make apps for the Xbox One and/or Windows PCs, so this tutorial seems perfect to me.
@IAmTimCorey
@IAmTimCorey Жыл бұрын
Great!
@OthmanAlikhan
@OthmanAlikhan 5 ай бұрын
Thanks for the video =)
@IAmTimCorey
@IAmTimCorey 5 ай бұрын
You are welcome.
@georgekerwood9100
@georgekerwood9100 Жыл бұрын
"Oh I have to do a new C# thing, I hope there's a Tim Corey video for it?"... of course there is!
@IAmTimCorey
@IAmTimCorey Жыл бұрын
lol I'm glad it was helpful.
@gabrielhering270
@gabrielhering270 2 жыл бұрын
How did you get that windows template studio option in the create new project menu ? All I can find for UWP is the create a blank project option.
@user-jo1mz4se4j
@user-jo1mz4se4j 4 жыл бұрын
What do you think about UWP: Does it have future? Is it dead? Should we instead stick with WPF?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Here are my thoughts: kzfaq.info/get/bejne/r9dgl7acppfaoIE.html In genreal, none of these are dead but I'm not a huge fan of UWP.
@gatep5
@gatep5 4 жыл бұрын
Stick with WPF, or do some Xamarin Forms if you haven’t already.
@richardalbury
@richardalbury 4 жыл бұрын
Back when Windows Phone/Windows 10 Mobile was a thing, UWP was interesting because of the promise of having an app run on phones, tablets, and desktops. Phones are gone, and Windows 10 runs WPF and WinForms apps on tablets and desktops, so... ¯\_(ツ)_/¯ Look on Dice or some other job site for UWP listings versus WPF or Xamarin: that should also give you an idea.
@sent4dc
@sent4dc 4 жыл бұрын
No, yes and no. Think about it. If you code something in pure UWP, it will run only on Windows 10. (OK, on hologram and Xbox as well, but let's be realistic, what app will run on all three of them :) So I doubt that any self-respecting developer will want to limit his choices like that. What I would suggest is coding a normal desktop application and then convert it to UWP: developer.microsoft.com/en-us/windows/bridges/desktop/ I personally code my apps in C++ and then convert them to UWP, but you can use .NET and WebForms, etc. There are quite a few gotchas (rules) that you need to follow to be able to convert them, but all-in-all, if it succeeds, in the end you will have a working desktop app (that in theory can run on anything from Windows XP and up) and you can use UWP infrastructure to post your converted UWP app in the Windows Store. (And get maybe 2 or 3 extra downloads a month ... 'cause let's face it, Windows Store for now is only good for growing crickets.)
@williamscsharpwalkthroughs4316
@williamscsharpwalkthroughs4316 4 жыл бұрын
@@gatep5 Indeed, WPF seems to be a tried-and-true solution and the choice go-to for many Windows Desktop developers. However I think one of the biggest attractions towards UWP is its deployment options. The integrated Windows Store deployment functionality I think gives it an edge over WPF- where in my experience- I've used utilities such as Inno Setup to create MSI/EXE files, or the WIndows Desktop Bridge; If you're not deploying your application, then it's just sitting there on your PC. Nevertheless, I do prefer WPF because of its richness, but tech is progressing-- I think its worth-while for any Windows developer to at least be aware of UWP and better still somewhat capable to develop on the platform.
@nandkishorsonwale69
@nandkishorsonwale69 4 жыл бұрын
Thank you sir for such great introduction about UWP. If possible please create video about secure deployment of wpf app and about MSIX packaging. It will be great help. Thank you.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Tune in tomorrow. ;-)
@gowthamraj6846
@gowthamraj6846 Жыл бұрын
can you help me in to show system file like(ppt,text file) inside xaml application using button click in UMP
@orehcele
@orehcele 3 жыл бұрын
Duude thanks so much for the video. This helped me a lot on how to start a companion desktop app I need to develop
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Glad it helped!
@LukeStratton94
@LukeStratton94 2 жыл бұрын
Thanks for this Tim, it answered some questions I had about UWP. The part I’m confused about now is what Microsoft are doing with this.. are they discontinuing UWP in favour of WinUI 3? How do the two differ? Would be great if you could make a video on WinUI 3 describing the differences if you can!
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Pretty much. UWP is not the way forward.
@HoKi-Owan
@HoKi-Owan Жыл бұрын
@@IAmTimCorey But what is the way forward ?
@freedom_aint_free
@freedom_aint_free 4 жыл бұрын
I need I "bottom up" approach, that is: starting from the bare minimum GUI app and it's elements, I need to know how to find the events of each GUI component that I put in the window, e.g. button -> on click, check box -> on check (instead of a "Top down" starting from a already huge code created by the wizard). If anybody knows I good book to start with I would be glad to know, thank y'all.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I don't have a book to recommend. The way I would suggest is to go through the wizard and add just one item. Read the code, figure out how it works, then recreate it from scratch. Then do it again with the next item. Learning from code this way will be hugely beneficial to the development of your skills.
@softwebprojects5013
@softwebprojects5013 3 жыл бұрын
brother how can i connect with sqlserver database using entityframework please guide
@amosmatthew1211
@amosmatthew1211 3 жыл бұрын
Thank you for creating and posting this video. It was very informative. Do you have additional videos for this section?
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Not yet! I have added it to my list
@amosmatthew1211
@amosmatthew1211 3 жыл бұрын
@@IAmTimCorey Okay, looking forward for it, Tim. Thank you!
@mileadavid7007
@mileadavid7007 4 жыл бұрын
hi. i'm new to Visual Studio or programming in general. I took this windows platform studio for a project at the university, and I can not find how I am actually supposed to change the information from the Master Detail Page, can someone help me? Thx.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Look at docs.microsoft.com They have examples there of how to work with UWP applications.
@HYR_1
@HYR_1 2 жыл бұрын
Thanks Please Upload more tutorials on building a UWP apps 😊👍 HUMBLE REQUEST !!
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Unfortunately, I probably won't be doing that. UWP is no longer being improved by Microsoft. They are moving away from it. It is still supported, but their efforts are going towards WinUI and MAUI instead.
@HYR_1
@HYR_1 2 жыл бұрын
@@IAmTimCorey Hmm :( btw loved your tutorial
@MilanTiwariMessi
@MilanTiwariMessi 4 жыл бұрын
Hi Tim, I want to read an excel file and store it in a datatable do the operations and export it back to excel without using any third parties. I dan do this for Desktop app using interop but I want to know if there is a way to do that for UWP.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I don't think UWP can do interop.
@amosmatthew1211
@amosmatthew1211 2 жыл бұрын
(1) The type or namespace name 'Screen' could not be found (are you missing a using directive or an assembly reference?) (2) Severity Code Description Project File Line Suppression State Error CS0518 Predefined type 'System.Object' is not defined or imported MyUWP C:\Users\Aemzs\source epos\MyUWPApp\MyUWP\ViewModels\DataGridViewModel.cs 9 Active
@HenrikRClausen
@HenrikRClausen 4 жыл бұрын
Being fluent in three (human) languages and able to read a few more, I realiy appreciate the support for internationalization/localization. Getting that right isn't trivial.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
You are definitely correct. That is hard to get right.
@lutzheinrichs2120
@lutzheinrichs2120 2 жыл бұрын
Thanks!
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Thank you!
@ZZZXYZ
@ZZZXYZ 3 жыл бұрын
Safe to assume that Master/Detail is now called "ListDetails"? they have same identifying image.
@lokigaming459
@lokigaming459 4 жыл бұрын
Alright Tim. I have a question (maybe a couple) that I'd like your feedback. I'm looking to make a project/inventory manager app that a new project gets added to my server (will call it a sub server, give a sec and you'll see why) that takes a folder from a network drive (part of the main and existing server), this would house pdfs and such, and copy the fold to its own harddrive. Then the stations would log in and pull a copy from the sub server. What are your thoughts on what to use? I have already done research but wanted your opinion as well.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
You want one central app to pull the files from the machines of the sub-servers? That sounds like a Worker Service as the main service. Unless it needs a UI, it can just sit in the background and do its thing on a schedule.
@OthmanAlikhan
@OthmanAlikhan 6 ай бұрын
Fast forward to 2024, the plugin is no longer called "Windows Template Studio" but "Template Studio for UWP".
@IAmTimCorey
@IAmTimCorey 5 ай бұрын
Thanks for sharing.
@berengamble1882
@berengamble1882 4 жыл бұрын
Very good overview, thanks....Trying to follow along, but I don't have Caliburn.Micro as an option. Only the top three.
@berengamble1882
@berengamble1882 4 жыл бұрын
It's a separate exension.. I searched for Caliburn.Micro extension and installed it, now it appears as an option.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I'm glad you figured it out.
@dharkundercity1796
@dharkundercity1796 4 жыл бұрын
Do you have any videos on UWP file encryption using Credential Manager PasswordVault to create a descriptor from the currently logged in user, of a UWP app so that the same descriptor can be used in roaming settings in the same app on a different PC for the same user to decrypt a file on OneDrive that was backed up using the APP from the original PC?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
No, sorry. That's fairly specific too, so I don't think that will be covered this year.
@dharkundercity1796
@dharkundercity1796 3 жыл бұрын
@@IAmTimCorey NO worries. I finally figured it all out this past spring during mandatory stay at home orders during the pandemic. Here is my final result which has double encryption... no one is getting to this data inside my app :-) : Password-Vault found here in the Microsoft Store by RS Creations: www.microsoft.com/store/apps/9N639H9BNZ9Q . Even the backup file is encrypted.
@satish8299
@satish8299 2 жыл бұрын
Thank you for the short kickstart. You have a kickstart of Xamarin for desktop. Is it possible better not to use UWP but use Xmarin for desktop application so your Xamarin application later on could be adjusted for phone? I dont know it is a good strategy in Xamarin dont focus on phone layout and features but focus at Desktop ? and year later on phone features ?
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
That is more of what .NET MAUI will do (the successor to Xamarin) next year.
@TheAneesshariff
@TheAneesshariff 3 жыл бұрын
Which mocking framework can I use , and i have no interfaces in my application and its a 8.1 windows application
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
I'm not sure if you are actually asking for a mocking framework (which is used in unit testing to replace dependencies) or if you are thinking of something else. If you are asking about a mocking framework, check out Moq: kzfaq.info/get/bejne/et2SjNuBksvYfY0.html
@wrtoomes600
@wrtoomes600 Жыл бұрын
Good day Mr. Corey. I have Visual Studio 2022 (free) I do not see anything that you are talking about. What I am saying is: I do not see "Windows Templet Studio" in the Extentions. Thank you for reading. I look forward to your reply. wrtoomes
@anfstudios1479
@anfstudios1479 4 жыл бұрын
Do I need Windows 10 SDK, after installing the extension, it says that I need (10.1904) SDK. Should I install that? I already have the one before that the 18 version.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I didn't need to install an extension but I am not sure. Maybe try just updating Windows and seeing if that is all it takes?
@anfstudios1479
@anfstudios1479 4 жыл бұрын
​@@IAmTimCorey For now, I have the latest (supported version) for Windows and cannot upgrade to version 2004 (which I found out that it needs after installing the SDK). However, I can run everything else (including a blank document). So, is there any other alternative tutorial for that. If not, I'd be happy to learn Xamarin for mobile development (any videos that you suggest?). Also, a tutorial on creating a zip archiver would be amazing as no other KZfaqr has done that yet. Thanks for your time :D
@okolol
@okolol 2 жыл бұрын
Hi, I just get started with c# and I decided to start it with UWP because I have some prior coding experience. However, I can't get "step 1" get out of the way, I can't find the "Windows Template Studio" on my visual studio 2022 community edition online extension manager, and then I start to look it up on google and find the exact same one like yours, so I downloaded it, but when I try to install it, the installer gives me an error saying "This extension is not installable on any currently installed products." and I stuck here now. I really hope that you can help me, since I can't find why exactly did this happen. Thank you in advance.
@joao.mambelli
@joao.mambelli Жыл бұрын
on 2022 it's just "Template Studio for UWP" now
@jeanjagnow2524
@jeanjagnow2524 4 жыл бұрын
Hello, would you recommend developing a desktop ERP system in Electron with vue js and .net core api or UWP?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
That is a question I can't give you a direct answer on. It depends on your team's skill, what you are building, the scope of the project, who will use it, and a LOT more. Sorry.
@rajasaid8227
@rajasaid8227 3 жыл бұрын
i tried making desktop program using electron with react and it was a mess. i am in this video to learn native development. java fx would be a great choice if you want cross platform compatibility
@fieryscorpion
@fieryscorpion 2 жыл бұрын
Just build apps with .NET MAUI.
@diegongbayong
@diegongbayong 2 жыл бұрын
Hi, I'm watching this in 2022. May I know if the app still compatible for the current Vs Version ? i tried looking for it and it's not appearing. Thank you
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
It is. You have to install the UWP package when installing Visual Studio though. You can add the package now using the first option under the Tools menu.
@sent4dc
@sent4dc 4 жыл бұрын
Hey, Corey, thanks. Couple questions: 1. Do know if there's a tool like dnSpy but for UWP apps? 2. Is there a service to localize (translate) resources for your app?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
dnSpy does work on UWP apps. As for a service to translate your apps, I'm not sure what you mean. If you mean automatically, I'm not sure but even if there is, it won't be perfect. If you mean a paid service, yes, there are services out there to localize your applications.
@sent4dc
@sent4dc 4 жыл бұрын
@@IAmTimCorey it does? Are you sure? Can you name UWP app that dnSpy works on?
@llothar68
@llothar68 4 жыл бұрын
Get some student kid on Fiverr a little bit of money to localize it. Program resources are hard to automatically translate because of the requirement to need the shortest possible translation and the little context in which the words appear. Manual translators need screenshots or you get the same ackward translation as using Bing translate.
@queenstownswords
@queenstownswords 4 жыл бұрын
Hello Tim. I understood that windows 7 end of (support) life was 14 Jan 2020. I think there is a very low % of windows 8.1 out there; hence, most developers can gamble that the majority of windows users are on windows 10. UWP seems a bit like Windows Flow or Microsoft Power Automate, would you agree?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I understand the basic thought, but this isn't as clear cut as you would hope. Not everyone follows the Microsoft support. For instance, banks and hospitals are notorious for being very far behind the curve. The government is also usually well behind the curve. The slowness to adopt in these areas usually is because of security (a new OS needs to be thoroughly vetted for safety reasons) and compatibility (all of the apps also need to be able to run on the new OS and need to be vetted all over again). So if you are building apps that target any of those markets, you are less likely to be able to use UWP at all. Home users are a mixed bag. While they are more likely to have Windows 10 (because they bought a PC in the past few years), they are less likely to know if the updates stop working (virus, poor configuration, etc.) Small businesses tend to try to make their money last longer, so they don't upgrade as often (and they use older apps that might not support the newest OS). At the end of the day, it all depends on your market. You can't just assume that even the general numbers apply to your audience. And those general numbers are still not really in favor of Windows 10. As of January, 2020, Windows 10 had a 57% market share, but Windows 7 had a 25% market share: www.netmarketshare.com/operating-system-market-share.aspx?options=%7B%22filter%22%3A%7B%22%24and%22%3A%5B%7B%22deviceType%22%3A%7B%22%24in%22%3A%5B%22Desktop%2Flaptop%22%5D%7D%7D%5D%7D%2C%22dateLabel%22%3A%22Custom%22%2C%22attributes%22%3A%22share%22%2C%22group%22%3A%22platformVersion%22%2C%22sort%22%3A%7B%22share%22%3A-1%7D%2C%22id%22%3A%22platformsDesktopVersions%22%2C%22dateInterval%22%3A%22Monthly%22%2C%22dateStart%22%3A%222020-01%22%2C%22dateEnd%22%3A%222020-01%22%2C%22segments%22%3A%22-1000%22%7D
@charlesbyrneShowComments4all
@charlesbyrneShowComments4all 4 жыл бұрын
We have gone past windows support dates on many occasions because of applications that our organization runs that cannot upgrade. What types of apps? Well apps with support contracts that use earlier versions of sql that haven't been upgraded, bridge and middle ware apps that may use specific supported drivers for high end scanners and expensive mail sorters etc. For a document work flow application we literally had to hold off then finally jump 6-7 versions and upgrade from sql 2005 then 2012 then upgrade 2 more versions (64 bit win 8 then win 10) and finally sql 2016, but only after we upgraded from Oracle 10g to 12c and I think Mulesoft was about the only thing that didn't get upgraded. These integrated apps are used heavily by our call center, licensing, accounting, enforcement and legal and would shut down our call center and other sectors if these apps couldn't communicate and work flow items. The Win XP to Win 7 upgrade was a nightmare, windows 7 will be missed, but the upgrade to 10 was not as bad. We skipped 8 since some of the LTS contracts wouldn't support the Client apps on Win 8 without additional costly fees. On the bright side the OS and server upgrades are getting smoother since and not as costly which benefits the taxpayers (state government), but we still wince when Microsoft, Oracle, and various vendors decide to force upgrades. The lawmakers at the budget requests always ask why and didn't we just upgrade software. If they only knew.
@markpolak8622
@markpolak8622 3 жыл бұрын
Hi Tim, thanks for the video, whats you thoughts about WinUI? Any introduction to that?
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 3 жыл бұрын
We appreciate the suggestion and I have added it to Tim's list.
@dhakshayinikoppad1411
@dhakshayinikoppad1411 Жыл бұрын
Hello Tim Corey, Your tutorials are great and informative. Can you please do a tutorial for developing a Bluetooth application with UWP. I have to develop a Bluetooth app that connects to a device, sends and receives data. There is not a lot of material out there on this topic.
@IAmTimCorey
@IAmTimCorey Жыл бұрын
Unfortunately, UWP has been deprecated, so I won’t be creating new material for it.
@amosmatthew1211
@amosmatthew1211 2 жыл бұрын
Great Video, Tim. Visual Studio generators many errors before I Build the Application. Type or namespace "Task" could not be found is one of these errors. How can I fix thix?
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Try doing a build first. Sometimes you need to bring in NuGet packages that have not been downloaded yet. Otherwise, compare what you did with what I did. You might be missing something minor.
@amosmatthew1211
@amosmatthew1211 2 жыл бұрын
@@IAmTimCorey OK, thanks.
@charlesbyrneShowComments4all
@charlesbyrneShowComments4all 4 жыл бұрын
We limit our updates, but we do so through a phased rollout because of various COTS (consumer off the shelf) applications that are customized or integrated with our enterprise apps across the organization. I was hoping for something simpler, but this is sounding like a nightmare. I was hoping for an electron style app in visual studio or similiar option that would harness the full win 10 OS. It is still interesting and it sounds like some good code content, but it sounds like I'll be sticking with win forms with some different styling and WPF instead. This doesn't sound like a viable option. Also a little bummed out that the xaml is different than WPF.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Yeah, there isn't anything horrible in UWP, it is more that there are small issues that act like sand in your shoe when developing.
@janne_kekalainen
@janne_kekalainen 4 жыл бұрын
I Think Windows 10 versions have an 18-month support period from release, meaning 1809 is the oldest still supported version. So, for non-business use cases, this is the most extreme (and still practical) min version to use. This is just my opinion.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
It all depends on the audience. There are a lot of people out there with older laptops/desktops. Even people on Windows 10 don't always have the latest updates. What Microsoft supports doesn't really affect what people use.
@jannickbreunis
@jannickbreunis Жыл бұрын
Why are the ViewModels located in the main project of the solution and not in the core part? Shouldn't the ViewModels be in the same place as the Models?
@IAmTimCorey
@IAmTimCorey Жыл бұрын
ViewModels are UI. They are at the same "layer" level as your Views. If you put them in a class library, that class library becomes a UI library, not a core library.
@muhtasimahmedtausif2090
@muhtasimahmedtausif2090 2 жыл бұрын
I can't find this extension in online menu. i am using community edition 2022. please reply me .
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
You probably didn't install the UWP package when you installed Visual Studio. In the Tools menu, select "Get Tools and Features". That will let you configure what is installed in Visual Studio. Select the Universal Windows Platform option and install it.
@muhtasimahmedtausif2090
@muhtasimahmedtausif2090 2 жыл бұрын
@@IAmTimCorey I selected the option Universal Windows platform . Before installing .but didn't work.
@markcain2116
@markcain2116 4 жыл бұрын
I didn't have a Web API option in services.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
My guess is that you need an update to either Visual Studio or Windows. Then the plug-in should update itself with the latest options.
@cenkyenikoylu2670
@cenkyenikoylu2670 4 күн бұрын
Would you consider making a video for the new Windows App WinUI3 ? I want to start a project specifically for the Microsoft Store. I haven't been able to find any enterprise-level content on database connection patterns for a few days. I don't know if I should connect the MVVM pattern directly to SQL Server. Or if I should develop a Web API and connect to the database with it. Maybe I need to create a Cosmos DB in Azure for licensing and set up a local SQL Server Express for the user. Where can I find content on architectural questions like these?
@IAmTimCorey
@IAmTimCorey Күн бұрын
WinUI 3 is not very high on my list of things to cover, specifically because Microsoft doesn't put a lot of effort into it and because it is so limited in where it can be deployed. Even Microsoft recommends WinForms and WPF over WinUI 3. But as to your questions, building an API is almost always a good idea. It allows for more secure communication to the database and it allows you to have multiple UIs that work off of the same logic. This allows you to build a WinUI 3 project today and then easily transition to an Uno project tomorrow so that you can have your app deployed everywhere.
@germainenriquez2095
@germainenriquez2095 3 жыл бұрын
hi, best way to build app for windows 10 tablet? wpf or uwp?
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Personally, I prefer WPF because of the freedom, but both will do the job.
@jonaslara175
@jonaslara175 4 жыл бұрын
I am new to the UWP world and the first thing I notice is that there is no support for data visualization. Any advice on how is the visual representation of the data (graphs, charts and all that stuff) achieved?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Not sure that you mean by data visualization. There is support for graphs, charts, datagrids, and more.
@jonaslara175
@jonaslara175 4 жыл бұрын
@@IAmTimCorey Yes, I meant all of that. I didn't find any charts, datagrids or graphs "out of the box" and the only options that I've found is by third-party packages. There is something that I'm missing? :(
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Charts and graphs come from third parties. Microsoft provides the platform, you get the additional tools and UI you need from third parties (which can be free - for example, Syncfusion is free if you are on a team of 5 or less and your company/you makes less than $1 million per year).
@CRBarchager
@CRBarchager 4 жыл бұрын
9:14 Windows 7 went End of Life on January 14, 2020
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Thanks.
@llothar68
@llothar68 4 жыл бұрын
And they now declared in May 2020 that they will even backport Edge to Windows 7. So it is more a LOL then EOL. Too many important big businesses still depend on it.
@sohaibarif2835
@sohaibarif2835 4 жыл бұрын
Great videos. Can you do one on SignalR?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
It is high on the suggestion list.
@vandeljasonstrypper6734
@vandeljasonstrypper6734 4 жыл бұрын
@@IAmTimCorey yeah please do a chat app and store message in SQL
@davestorm6718
@davestorm6718 3 жыл бұрын
@@vandeljasonstrypper6734 - isn't this being phased out for Blazor?
@bhagyeshpatel8413
@bhagyeshpatel8413 4 жыл бұрын
Which Ad Network is best to monetize UWP App?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I don’t have a recommendation, sorry.
@saya1_
@saya1_ 4 жыл бұрын
I only have MVVM Basic and MVVM Light options and Code Behind, why?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Not sure. Maybe you have a different version of the tool.
@hattoff
@hattoff 3 жыл бұрын
This probably won't help you, as it is 5 months past, but might help others: I am using Visual Studio 2019, but the steps should be the same in VS2017. Create a new UWF project (you can just delete it later). Click "Project" -> "Manage NuGet Packages..." Then select the "Browse" tab. Search "Caliburn.Micro" and install the latest version v3.2.0 by Rob Eisenberg. It will ask to install supporting files, click OK. Close and trash that project then follow along with the tutorial as normal (I am sure there is a way to install it with PowerShell but I don't use NuGet that often). The option should now be available as shown in the video. Note: Caliburn.Micro is no longer under active development at the time of writing this comment. The original creator, Rob Eisenberg, stepped away from the code years ago; it was being maintained by Nigel Sampson. In June of 2020 Nigel stepped away from the maintenance of this code as app development is no longer the primary focus of their new job. Nigel will still continue to host the webpage and has pushed the release candidate for v4.x, but is looking for interested, responsible developers to transition and continue the opensource project. You can find the website in the NuGet package Info pane or by searching Caliburn.Micro . Good luck.
@saya1_
@saya1_ 3 жыл бұрын
@@hattoff Thank you very much for writing this, I didn't figure it out myself.
@randydiaz323
@randydiaz323 3 жыл бұрын
How do i push an existing UWP from my computer to my xbox one?
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
You need to go through the Microsoft Store.
@randydiaz323
@randydiaz323 3 жыл бұрын
@@IAmTimCorey Nice!! Thanks for the pointer Tim!
@019KADESH
@019KADESH 4 жыл бұрын
Resource file 29:42
@fieryscorpion
@fieryscorpion 2 жыл бұрын
Which one should we use now? WPF or UWP or WinUI or MAUI?
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Thanks for the suggestion. Please add it to the list on the suggestion site so others can vote on it as well: suggestions.iamtimcorey.com/
@LuigiZambetti
@LuigiZambetti 4 жыл бұрын
In .NET 5 - on Nov. 2020 - UWP will be supported again?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
UWP is still supported. It hasn't lost support. I'm not sure what you are asking about.
@LuigiZambetti
@LuigiZambetti 4 жыл бұрын
@@IAmTimCorey If is it a good idea to start brand new project in UWP after .NET 5 will be released.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I can't guarantee the future but Microsoft is putting a lot of faith in UWP as the future.
@gavinw77
@gavinw77 4 жыл бұрын
UWP never stopped being supported.
@obinnaokafor6252
@obinnaokafor6252 4 жыл бұрын
It has always been supported.
@jcbritobr
@jcbritobr 3 жыл бұрын
Too complicated. I installed in cli. There is so many templates that it stops working when i call dotnet new --list.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
That sounds like an issue on your PC.
@brajanekanimejszyn
@brajanekanimejszyn 2 жыл бұрын
I can't find the extension :(
@brajanekanimejszyn
@brajanekanimejszyn 2 жыл бұрын
Oh right i have visual studio *code* lol
@longbra
@longbra 3 жыл бұрын
Will there ever be a day when the barrier to entry into programming basic applications on Windows isn't such a horrific nightmare? It is sad when we have to rely on reverse engineering complex code that is generated from a code generator. Sometimes I wonder if some software developers are trying to over obfuscate things in order to restrict entry into this field.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
No, I think the issue here is the plethora of options. If you had a really simple system, it wouldn't do what you want. So you would add a feature or two to make it perfect. Now imagine hundreds of thousands of people did that. Think of all of the options you would have. That's the issue. .NET Core applications have done a better job at hiding the complexity at startup. Look at how easy it is to get started with a Blazor Server app even though you are using dependency injection, application logging, HTTPS redirects and enforcement, SignalR, and more. UWP is just messy. Don't overlook what we are doing by reading the code, though. That is one of the best ways to learn how to build code, by reading code. Don't discount that as bad.
@longbra
@longbra 3 жыл бұрын
Thanks for the reply. Yeah, I think I will stay away from UWP for now. I come from Windows Forms with MFC, but most of my experience is in developing C for embedded microcontrollers. Most of the code on the embedded devices I had worked on was written by me (no RTOS). I'm trying to come up to speed with WPF and .NET Core now that I'm out of a fulltime job and need to find a source of income soon. Also, thanks for all your your fabulous videos.
@j5ylim396
@j5ylim396 3 жыл бұрын
new to uwp, useful video. thanks though lol visualstudio seems horribly slow especially since i came in from vscode. running on a 3700x and a blank project locks it up for a while
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 3 жыл бұрын
Interesting. First time only when you launched, or every time?
@j5ylim396
@j5ylim396 3 жыл бұрын
every time, unfortunately
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Visual Studio is slow compared to VSCode because Visual Studio is doing a lot more. However, those lockups seem suspicious. Do you have a spinning hard drive? That may be the issue. Otherwise, submit a feedback response about it.
@j5ylim396
@j5ylim396 3 жыл бұрын
my installations on an nvme.. ig ill just chalk it up to the program having to do a lot of shit as you said
@bradsnapp8437
@bradsnapp8437 Жыл бұрын
Using VS2022 and Windows Template Studio is not an option.
@IAmTimCorey
@IAmTimCorey Жыл бұрын
They stopped working on it for a while, then they restarted but they renamed it to "Template Studio". You need to pick the one you want (WPF, UWP, or WinUI): github.com/microsoft/TemplateStudio The extensions are in the Visual Studio Marketplace as well.
@nicolascarlo8099
@nicolascarlo8099 3 жыл бұрын
Uno Platform is making UWP actually Multiplatform including Linux/OS X, iOS, Android, WASM.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
It is.
@airbus5717
@airbus5717 3 жыл бұрын
which is easier to learn WPF or UWP
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
I think WPF because there is less restrictions and less hoops to jump through.
@airbus5717
@airbus5717 3 жыл бұрын
@@IAmTimCorey yep i noticed when trying uwp app dev
@mariofares4692
@mariofares4692 Жыл бұрын
Please make a Community Toolkit tutorial. There are none out there.
@IAmTimCorey
@IAmTimCorey Жыл бұрын
Thanks for the suggestion. Please add it to the list on the suggestion site so others can vote on it as well: suggestions.iamtimcorey.com/
@mostafadamirchi5833
@mostafadamirchi5833 3 жыл бұрын
Hi, my name is Erfan, How I can be sponsor of your videos?
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
I do not accept sponsorships for my videos. I did briefly at one time, but have not since.
@mostafadamirchi5833
@mostafadamirchi5833 3 жыл бұрын
@@IAmTimCorey what about an affiliate program?
@vandeljasonstrypper6734
@vandeljasonstrypper6734 4 жыл бұрын
I don't know if I should trust this But the marketing is so risky + UWP just got removed it's ad-platform + UWP got performance issues with windows 10 + UWP have sandbox + UWP have so few supported libraries so rewriting everything from sratch is pain in the ass The only place the UWP is recommended is Kinosk mode For single Computer purpose in Enterprise But remember I don't mind the those limitations, but I really concerned the how Microsoft support it They put a bullet in Windows Phone, Windows RT and even Cortana I don't know whether I should recommend this to any kind developers and we seem don't have great choice either. Win32 is so OLD Right now the best way to treat .net is a cloud platform Stay away all the UI framework as far as possible P/s: the Windows IoT Core haven't updated since 2016 So IoT might be a no go
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Yeah, I did a video on my thoughts about desktop apps in C# ( kzfaq.info/get/bejne/r9dgl7acppfaoIE.html ). WPF and WinForms are actually pretty modern. They just got backed by .NET Core ( kzfaq.info/get/bejne/q8ljp6ZnxNOppp8.html ), they are now supported with MSIX deployers ( video coming next week), and you can put them in the Store. Working in the cloud is a great option, though, if you don't mind web. Razor Pages, Blazor, and even third-party frameworks like Avalonia and Platform Uno are great options.
@dnwheeler
@dnwheeler 4 жыл бұрын
Microsoft got rid of their own app ad platform, but you can certainly use another one in your UWP app. Not sure what performance issues you are talking about - UWP compiles to native code and is typically faster than standard .NET. The UWP sandbox is generally a very good thing, you can still write unsafe code and get "full system access" if you want, though. Any .Net library targeting the ".NET Standard" will work on UWP and the .NET Framework - most libraries are moving in this direction for maximum compatibility.
@vandeljasonstrypper6734
@vandeljasonstrypper6734 4 жыл бұрын
@@dnwheeler UWP xaml elements really getting mess up when you on high resolution display, Acrylic, Gridview I have been reported this for them years ago but they still haven't fixed it
@RealStuntPanda
@RealStuntPanda 10 ай бұрын
1:30 And herein lies the problem with extensions: in the far, far future of Visual Studio 2022 Community Edition there is no Windows Template Studio extension so these well thought out, well done tutorials are pretty much useless. And this is an extension _made by Microsoft!_
@IAmTimCorey
@IAmTimCorey 10 ай бұрын
There still is. They just called it Template Studio instead of Windows Template Studio: github.com/microsoft/TemplateStudio
@RealStuntPanda
@RealStuntPanda 10 ай бұрын
@@IAmTimCorey You're a champion!
@MrBambaGamer
@MrBambaGamer Жыл бұрын
"Corey" is shown for 1ms in 23:26 🤨
@IAmTimCorey
@IAmTimCorey Жыл бұрын
I Alt+Tabbed, which shows the desktop background. I tried to do it quick, but it still showed up. The "Corey" is the desktop background art I was using at the time, which said "I Am Tim Corey" in script and it had logos for KZfaq, Twitter, etc.
@shaneclk9854
@shaneclk9854 4 жыл бұрын
u didnt tell us how to install visual studio
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Nope, that wasn't the point of this video. I can't start from scratch each video. I do have a video on how to install Visual Studio though: kzfaq.info/get/bejne/fZddjcmjnpOXqqc.html
@benjamenkuhman6808
@benjamenkuhman6808 3 жыл бұрын
RIP Rider users
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Why?
@hansa5867
@hansa5867 2 жыл бұрын
Hehe, this is the worst part about school. The assignment is to use UWP, not extensions... So this tutorial is essentially useless to me at this point :P
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
I wouldn't think so. While you might not be able to use the template code that the wizard builds for you, you can learn from it and use it as a sample for what you want to do. That way you don't need to manually figure out each step. You can see it done for you and then just bring over what you want.
@sarooptrivedi
@sarooptrivedi 3 жыл бұрын
your screen is really black. Hard to read. try next time with white background
@seephor
@seephor 3 жыл бұрын
Why has Windows turned into a mess like this? They keep abstracting over abstractions over other abstractions. This will not end up good in the long run. They need to develop new platform, agree on a set standard and virtualize all older apps. Windows has turned into a cluster-F. They have no direction or real innovation. It's a building pieced together with scraps. Who's leading the Windows development? They need to be fired ASAP.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Trying to maintain legacy applications while innovating is very difficult. I agree that I don't think they have done a great job, but it is a hard job to get right. Don't forget that a bit reason why UWP struggles so much is because people won't get off of Windows 8, 7, and even XP. Creating a new OS/system would be even worse. Virtualization isn't really the solution, either, since you would end up basically running multiple older operating systems in parallel with your main system, which would cause all kinds of security holes.
@seephor
@seephor 3 жыл бұрын
@@IAmTimCorey I think Microsoft has done too good of a job supporting legacy apps but It's a double edge sword. You trade off having a better operating system with apps written for Windows 95 still able to run. I think Apple has a better balance on this thus a cleaner architecture. Look how they pulled off moving off Intel to ARM with virtually zero issue. I think it's possible for Microsoft to clean up by rewriting all their GDI windows APIs with what've learned so far. They can then support legacy apps with a Windows 10 sub system that's decoupled from the host OS via virtualization. They can then pour all their resources into a single development stack native to the OS API. Eventually after a decade, they can drop the legacy Windows support. Imagine all the new employment opportunities this will bring to the market. It's a bold move and I think it's possible from a technology standpoint. Whether Microsoft can pull it off is a different story. The failures of Microsoft beginning from Windows Vista to present has really been shameful.
@GdeVseSvobodnyeNiki
@GdeVseSvobodnyeNiki Жыл бұрын
Lol, how does it feel like to learn all this crap only to discover it is being deprecated just couple of years later?
@DK-ew4hp
@DK-ew4hp Жыл бұрын
Thanks!
@IAmTimCorey
@IAmTimCorey Жыл бұрын
Thank you!
Женская драка в Кызылорде
00:53
AIRAN
Рет қаралды 494 М.
Clowns abuse children#Short #Officer Rabbit #angel
00:51
兔子警官
Рет қаралды 79 МЛН
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 20 МЛН
Женская драка в Кызылорде
00:53
AIRAN
Рет қаралды 494 М.