Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 658|回复: 0
打印 上一主题 下一主题

现代图形界面开发 C++ WinUI3

[复制链接]

1228

主题

1996

帖子

7570

积分

认证用户组

Rank: 5Rank: 5

积分
7570
跳转到指定楼层
楼主
发表于 2023-1-8 22:50:05 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
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

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|firemail ( 粤ICP备15085507号-1 )

GMT+8, 2024-4-20 20:35 , Processed in 0.055206 second(s), 19 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表