【发布时间】:2015-10-09 14:29:20
【问题描述】:
我曾尝试使用此工具,但我不明白它的用途。在以前的版本中,它从选定的控件中创建了一个 UserControl。现在它为我所看到的创建了一个 ButtonStyle。
我该如何使用这个工具?
【问题讨论】:
我曾尝试使用此工具,但我不明白它的用途。在以前的版本中,它从选定的控件中创建了一个 UserControl。现在它为我所看到的创建了一个 ButtonStyle。
我该如何使用这个工具?
【问题讨论】:
旧的 Blend 有两个选项,Make Into UserControl 和 Make Into Control。
Make Into UserControl 将您选择的任何内容包装到 UserControl 中,而 Make Into Control 始终将您选择的任何内容转换为 Custom Control。 p>
Custom Control 通常具有默认样式,这就是为什么您会在弹出窗口中看到预定义的ButtonStyle1。 Button 是 Custom Control,这就是为什么您可以通过更改其样式来自定义其外观。
我强烈建议您阅读how to create a Custom Control。
【讨论】: