我正在开发一个 Visual Studio 扩展,使用
CrispImage
UIElement 和标记功能,如here所示。然而,尽管在运行时显示,但它们在设计时并不显示。还在测试新项目中对此进行了测试 - 同样的问题。 xaml 的示例(删除任何样式):
<ToolBarTray x:Name="TopToolbar" DockPanel.Dock="Left" Background="Transparent">
<ToolBar >
<Button ToolTip="Refresh" Command="{Binding RefreshCommand}">
<imaging:CrispImage Width="16" Height="16" Moniker="{x:Static catalog:KnownMonikers.Refresh}" />
</Button>
我在设计师中得到的:
在运行时: