简体   繁体   English

UWP IconElement属性值编辑器

[英]UWP IconElement Property Value Editor

In my class I have an IconElement property defined. 在我的课堂上,我定义了IconElement属性。 When I want to select its value in design time in the property editor, the editor is different than property editor used for system controls like AppBarButton. 当我想在属性编辑器中的设计时选择其值时,该编辑器不同于用于AppBarButton等系统控件的属性编辑器。 AppBarButton.Icon property editor allows to switch between different types of glyphs (SymbolIcon, FontIcon, PathIcon, ...). AppBarButton.Icon属性编辑器允许在不同类型的字形(SymbolIcon,FontIcon,PathIcon等)之间切换。

Is there an attribute I can decorate my property with to use this editor? 是否可以使用此编辑器装饰属性的属性?

物业价值编辑器

After performing some research on this issue, it appears this isn't possible on a custom control since the required designer attributes aren't available in UWP, so this will not work. 在对此问题进行了一些研究之后,似乎在自定义控件上是不可能的,因为所需的设计器属性在UWP中不可用,因此这将不起作用。

Our core control like the AppBarButton has this since this is done internally and doesn't depend on the designer attributes like it's done on WPF. 我们的核心控件(如AppBarButton具有此功能,因为它是在内部完成的,并且不像WPF那样依赖于设计器属性。

At this time, this behavior is by design. 这时,此行为是设计使然。

Please submit your requirement/feedback using windows feedback app , this is a good way to let MS know what users/developers need. 请使用Windows反馈应用程序提交您的要求/反馈,这是让MS知道用户/开发人员需要的一种好方法。

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

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