为什么总要输入toolkit:
本帖最后由 ddrsun 于 2013-05-22 14:55:10 编辑 在用第三方控件的时候,总是要输入这个toolkit:??
例如我用Dockpanel
<toolkit:DockPanel LastChildFill="False">
<Button toolkit:DockPanel.Dock="Left" Background="Red" Content="1"></Button>
<Button toolkit:DockPanel.Dock="Top" Background="AliceBlue" Content="2"></Button>
<Button toolkit:DockPanel.Dock="Right" Background="Beige" Content="3" >
</Button>
<Button toolkit:DockPanel.Dock="Bottom" Background="Blue" Content="4"></Button>
<Button Background="Coral" Content="5"></Button>
<Button Background="Firebrick" Content="6"></Button>
<Button Background="OldLace" Content="7"></Button>
</toolkit:DockPanel>
而且手动输入代码是没有智能识别提示的,我是在工具箱直接拉的
怎么回事?
是不是Silverlight tookit没装对?
谢谢
[解决办法]
到你这个xml的最上面会看到
xml:toolkit = "xxxxxx"
xxxxxx代表的是引用空间名。(也就是你第3方空间的命名空间)
而toolkit就是这个空间的别名。
在xml里如果要用到这个空间内的东西,都要写成<toolkit:xxx>