1

我想制作一个节省时间的片段来像这样弹出 XAML 块,然后只需更改值(就像您可以在代码中使用例如"cw"-TAB 或 "foreach"-TAB):

<Style x:Key="FirstCellStyle" TargetType="{x:Type Border}">
    <Setter Property="BorderBrush" Value="Red"/>
    <Setter Property="MinWidth" Value="50"/>
</Style>

但片段似乎在 XAML视图中不起作用。

目前正在使用Texter插入可以在 Windows 中的任何位置工作的块,但是当将文本插入 XAML 视图中时,Visual Studio 代码完成会妨碍。

您使用哪些解决方案来加快您的详细 XAML 编码,例如插入宏、片段、代码块等?

4

1 回答 1

0

I'm getting snippets to work in XAML, but they work in the typical XML way, that is you have to type in the brackets around the snippet name.

Not as nice as the code-behind w/Intellisense, but it works OK. Never tried Texter, that may work better...

于 2009-06-15T21:13:33.847 回答