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
Here are my thoughts: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-yq0dSkA1vpM.html In genreal, none of these are dead but I'm not a huge fan of UWP.
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.
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.)
@@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.
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!
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!
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?
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.
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.
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.
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!
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?
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.
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
Yeah, I did a video on my thoughts about desktop apps in C# ( ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-yq0dSkA1vpM.html ). WPF and WinForms are actually pretty modern. They just got backed by .NET Core ( ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-uc3tC6_mEvk.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.
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.
@@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
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
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.
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!_
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?
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.
(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
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.
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
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.
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.
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?
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
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.
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.
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.
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 ?
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.
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.
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.
@@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.
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?
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.
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.
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.
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 RU-vid, Twitter, etc.
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: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-DwbYxP-etMY.html
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.
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.
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 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 RU-vidr has done that yet. Thanks for your time :D
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.
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
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.
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.
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.
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.
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.
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.
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.
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 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? :(
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).
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 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.
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.
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?
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.
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.
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.
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.
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
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: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-G1-Zfr9-3zs.html
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.