注意Telerik命名空間。這不是你所期望的clr-namespace:Telerik;assembly=Telerik
。他們是如何做到的呢?如何爲XAML創建我自己的(非CLR!)XML命名空間?
<UserControl x:Class="Sandbox.MyUserControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">
<Grid>
</Grid>
</UserControl>
[這是否有幫助?](http://www.codeproject.com/Articles/111911/A-Guide-to-Cleaner-XAML-with-Custom-Namespaces-and) –
發佈它作爲答案。 –