当前位置:编程学习 > C#/ASP.NET >>

Silverlight 中xmal 报异常XamlParseException: [Line: 0 Position: 0]


代码:在UserControl 这个标签上报异常XamlParseException:  [Line: 0 Position: 0]求解决
<UserControl x:Class="UploadManager.Views.NaviViewOne"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
              xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                 xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"  
    xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
         xmlns:vm="clr-namespace:UploadManager.ViewModel"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    <UserControl.DataContext>
        <vm:NaviViewOneModel/>
    </UserControl.DataContext>
        <UserControl.Resources>
        <telerik:ContainerBindingCollection x:Name="BindingsCollection">
            <telerik:ContainerBinding PropertyName="DefaultImageSrc" Binding="{Binding ImgUrl}"/>
            <!--Other container bindings-->
        </telerik:ContainerBindingCollection>

    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Background="White">
    </Grid>
</UserControl> xmal报异常 silverlight --------------------编程问答-------------------- 没用过 telerik。

你是不是把内容控件给放到资源字典里了?!
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,