"Make into Control" Microsoft Blend 2015 中的选项
"Make into Control" option in Microsoft Blend 2015
我试过使用这个工具,但我不明白它的用途。在以前的版本中,它从选定的控件中创建了一个 UserControl。现在它为我所看到的创建了一个 ButtonStyle。
如何使用这个工具?
旧版 Blend 有两个选项,Make Into UserControl 和 Make Into Control。
Make Into UserControl 将您选择的任何内容包装到 UserControl
而 Make Into Control 始终将任何内容你选择了 Custom Control
.
A Custom Control
通常有一个默认样式,这就是为什么您会在弹出窗口中看到预定义的 ButtonStyle1
。 Button
是 Custom Control
,这就是为什么您可以通过更改其样式来自定义其外观。
我强烈建议您阅读 how to create a Custom Control
。
我试过使用这个工具,但我不明白它的用途。在以前的版本中,它从选定的控件中创建了一个 UserControl。现在它为我所看到的创建了一个 ButtonStyle。
如何使用这个工具?
旧版 Blend 有两个选项,Make Into UserControl 和 Make Into Control。
Make Into UserControl 将您选择的任何内容包装到 UserControl
而 Make Into Control 始终将任何内容你选择了 Custom Control
.
A Custom Control
通常有一个默认样式,这就是为什么您会在弹出窗口中看到预定义的 ButtonStyle1
。 Button
是 Custom Control
,这就是为什么您可以通过更改其样式来自定义其外观。
我强烈建议您阅读 how to create a Custom Control
。