firemail

标题: 现代图形界面开发 C++ WinUI3 [打印本页]

作者: Qter    时间: 2023-1-8 22:50
标题: 现代图形界面开发 C++ WinUI3
https://www.youtube.com/watch?v=E860EbdZHbI

今天我将向您展示如何制作现代原生 Windows 10(甚至是 Windows 11)风格的桌面应用程序,而不是 UWP 应用程序!为此,我们将使用 WinUI 3 框架和 C++/WinRT 语言投影。我们将通过安装 Visual Studio 2022 并安装正确的工作负载来设置我们的环境。创建一个新项目并开始编码!我还将向您展示如何打包您的应用程序以通过旁加载到其他计算机进行部署。目前,您无法在未打包的情况下部署 WinUI 3 应用程序,因为该功能正在开发中,尚未准备好投入生产使用。我们将生成一个 MSIX 文件,该文件可以旁加载到 Windows 10 或 11 PC。这个视频是针对初学者的,如果我速度太慢,可以通过提高播放速度来按照自己的节奏观看。我们将使用 XAML 来构建 UI。如果您来自 C# WPF 背景,这对您来说将非常熟悉,您也可以使用 C# 构建 WinUI 3 应用程序。我们将制作一个简单的计算器,可以加/减/乘/除 2 个给定的数字并显示结果。Today I will show you how to make a Modern Native Windows 10 (Windows 11 even) style Desktop App, not a UWP App!For this, we are going to use the WinUI 3 Framework and C++/WinRT language projection. We will set up our environment by installing Visual Studio 2022 and installing the correct workloads. Create a new project and start coding!I will also show you how to package your app to deploy by sideloading to other computers. Currently, you cannot deploy WinUI 3 apps without packaging, because the feature is under development and not ready for production use.We will generate an MSIX file that can be sideloaded to a Windows 10 or 11 PC.This video is aimed at beginners, if I'm too slow, feel free to watch at your own pace by increasing playback speed.We will use XAML to build the UI. If you are coming from a C# WPF background this will be very familiar to you and you can build WinUI 3 apps with C# too.We will make a simple Calculator that can add/subtract/multiply/divide 2 given numbers and display the result.


https://www.bilibili.com/video/BV1NF411b7kB/?spm_id_from=333.337.search-card.all.click&vd_source=4986fc9c9904d60dd34609cb41218b5f






欢迎光临 firemail (http://firemail.wang:8088/) Powered by Discuz! X3