Microsoft Blend 2015中的“Make into Control”选项

问题描述 投票:0回答:1

我试图使用这个工具,我不明白它的目的。在以前的版本中,它从所选控件中创建了一个UserControl。现在它为我所看到的创建一个ButtonStyle。

我该如何使用这个工具?

wpf xaml blend uwp
1个回答
0
投票

旧的Blend有两个选项,Make Into UserControl和Make Into Control。

Make Into UserControl将您选择的任何内容包装到UserControl中,而Make Into Control始终将您选择的任何内容转换为Custom Control

Custom Control通常具有默认样式,这就是为什么你在弹出窗口中看到预定义的ButtonStyle1ButtonCustom Control,这就是为什么你可以通过改变它的风格来定制它的外观和感觉。

我强烈建议你阅读how to create a Custom Control

© www.soinside.com 2019 - 2024. All rights reserved.