简体   繁体   English

UWP 应用程序中缺少控件

[英]Controls missing in UWP application

(I am new to UWP environment) (我是UWP环境新手)

There are missing controls under the toolbox menu in VS 2022: I cannot find labels, tab controls and many other items I would use. VS 2022 中的工具箱菜单下缺少控件:我找不到标签、选项卡控件和许多其他我会使用的项目。

Thanks in advance提前致谢

UWP does not support controls from WinForms WPF and other UWP 不支持来自 WinForms 的控件 WPF 和其他

Instead of a label, you could use a TextBlock.您可以使用 TextBlock 而不是 label。

This is the new UWP tabcontrol you could use: https://learn.microsoft.com/en-us/windows/apps/design/controls/tab-view这是您可以使用的新 UWP 选项卡控件: https://learn.microsoft.com/en-us/windows/apps/design/controls/tab-view

You can also check out the WinUi 2 Gallery.您还可以查看 WinUi 2 Gallery。 Every UWP control is listed there: https://apps.microsoft.com/store/detail/winui-2-gallery/9MSVH128X2ZT此处列出了每个 UWP 控件: https://apps.microsoft.com/store/detail/winui-2-gallery/9MSVH128X2ZT

As @FrozenAssassine mentioned, UWP development is different from the traditional desktop app development.正如@FrozenAssassine 提到的,UWP 开发不同于传统的桌面应用程序开发。 The controls are not the same as those you used to use before.这些控件与您以前使用的控件不同。 The link he provides is really useful.他提供的链接非常有用。

In addition to his answer, as you are new to UWP development, you could also go through this document: Develop UWP apps .除了他的回答之外,由于您是 UWP 开发的新手,您还可以通过此文档 go:开发 UWP 应用程序 This document could help you start the UWP development.本文档可以帮助您开始 UWP 开发。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM