Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Silverlight
The error:
 
Error 1 Analysis rules Element ::= . EmptyElement | ( StartElement ElementBody ). In the accident
PROPERTYELEMENT。 E:\Test\SLReportTest\SLReportTest\MainPage.xaml SLReportTest

 
The question:
what is this error ? How to solve it? Thank you very much.
 

I am a Chinese. I like telerik so much.
The description of this problem with Chinese is as follows :
错误 1 分析规则 Element ::= . EmptyElement | ( StartElement ElementBody ). 中的意外 PROPERTYELEMENT。 E:\Test\SLReportTest\SLReportTest\MainPage.xaml SLReportTest
 
The complete XAML code as follows:
<usercontrol x:class="SLReportTest.MainPage" xmlns:x="#unknown">
    xmlns="http://schemas.microsoft.com/winfx/2006/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"
    mc:Ignorable="d"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    d:DesignHeight="543" d:DesignWidth="1100" Width="Auto" Height="Auto" grid x:name="LayoutRoot" removed="White"
        <telerik:radgridview xmlns:telerik="#unknown"></telerik:radgridview> x:Name="rgv_list" Grid.Row="1" AutoExpandGroups="True" 
                 ShowColumnFooters="False" ShowGroupFooters="True"
                 AutoGenerateColumns="False"  ShowGroupPanel="False"
                 IsReadOnly="True" CanUserFreezeColumns="False" RowIndicatorVisibility="Collapsed"
                 CanUserResizeColumns="True" 
            telerik:radgridview.columns xmlns:telerik="#unknown"
                telerik:gridviewdatacolumn width="*" xmlns="http://schemas.microsoft.com/client/2007" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
             telerik:gridviewdatacolumn.header xmlns="http://schemas.microsoft.com/client/2007" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
                        grid name="gdGrid4" xmlns="http://schemas.microsoft.com/client/2007" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                                <grid.rowdefinitions>
                                    rowdefinition height="20*" 
                                    rowdefinition height="1"
                                    <rowdefinition height="20*" />
                                    <rowdefinition height="1" />
                                    <rowdefinition height="20*" />
                                    <rowdefinition height="1" />
                                </grid.rowdefinitions>
                                <grid.columndefinitions>
                                    <columndefinition width="50*" />
                                    <columndefinition width="1" />
                                    <columndefinition width="50*" />
                                    <columndefinition width="1" />
                                    <columndefinition width="50*" />
                                    <columndefinition width="1" />
                                    <columndefinition width="50*" />
                                    <columndefinition width="1" />
                                    <columndefinition width="50*" />
                                    <columndefinition width="1" />
                                    <columndefinition width="50*" />
                                    <columndefinition width="1" />
                                    <columndefinition width="50*" />
                                    <columndefinition width="1" />
                                    <columndefinition width="50*" />
                                    <columndefinition width="1" />
                                    <columndefinition width="50*" />
                                    <columndefinition width="1" />
                                </grid.columndefinitions>
                                <contentpresenter content="2013电量报表" verticalalignment="Center" horizontalalignment="Center" grid.columnspan="18" />
                                <rectangle fill="#FF0B1D1D" verticalalignment="Stretch" height="1" visibility="Visible" grid.row="1" grid.columnspan="18" />
                                <contentpresenter content="用户单位:阿迪锅" grid.row="2" verticalalignment="Center" horizontalalignment="Center" grid.columnspan="4" grid.column="0" />
                                <rectangle fill="#FF0B1D1D" verticalalignment="Stretch" width="1" visibility="Visible" grid.row="4" grid.column="1" />
                                <contentpresenter content="能源类型:用电" grid.row="2" verticalalignment="Center" horizontalalignment="Center" grid.columnspan="4" grid.column="6" />
                                <rectangle fill="#FF0B1D1D" verticalalignment="Stretch" width="1" visibility="Visible" grid.row="4" grid.column="3" />
                                <contentpresenter content="编号:43" grid.row="2" verticalalignment="Center" horizontalalignment="Center" grid.columnspan="4" grid.column="13" />
                                <rectangle fill="#FF0B1D1D" verticalalignment="Stretch" width="1" visibility="Visible" grid.row="4" grid.column="5" />
                                <contentpresenter content="编号" grid.row="4" verticalalignment="Center" horizontalalignment="Center" grid.column="0" />
                                <rectangle fill="#FF0B1D1D" verticalalignment="Stretch" width="1" visibility="Visible" grid.row="4" grid.column="1" />
                                <contentpresenter content="名称" grid.row="4" verticalalignment="Center" horizontalalignment="Center" grid.column="2" />
                                <rectangle fill="#FF0B1D1D" verticalalignment="Stretch" width="1" visibility="Visible" grid.row="4" grid.column="3" />
                                <contentpresenter content="名称" grid.row="4" verticalalignment="Center" horizontalalignment="Center" grid.column="4" />
                                <rectangle fill="#FF0B1D1D" verticalalignment="Stretch" width="1" visibility="Visible" grid.row="4" grid.column="5" />
                                <contentpresenter content="名称" grid.row="4" verticalalignment="Center" horizontalalignment="Center" grid.column="6" />
                                <rectangle fill="#FF0B1D1D" verticalalignment="Stretch" width="1" visibility="Visible" grid.row="4" grid.column="7" />
                                <contentpresenter content="名称" grid.row="4" verticalalignment="Center" horizontalalignment="Center" grid.column="8" />
                                <rectangle fill="#FF0B1D1D" verticalalignment="Stretch" width="1" visibility="Visible" grid.row="4" grid.column="9" />
                                <contentpresenter content="名称" grid.row="4" verticalalignment="Center" horizontalalignment="Center" grid.column="10" />
                                <rectangle fill="#FF0B1D1D" verticalalignment="Stretch" width="1" visibility="Visible" grid.row="4" grid.column="11" />
                                <contentpresenter content="名称" grid.row="4" verticalalignment="Center" horizontalalignment="Center" grid.column="12" />
                                <rectangle fill="#FF0B1D1D" verticalalignment="Stretch" width="1" visibility="Visible" grid.row="4" grid.column="13" />
                                <contentpresenter content="用电量" grid.row="4" verticalalignment="Center" horizontalalignment="Center" grid.column="14" />
                                <rectangle fill="#FF0B1D1D" verticalalignment="Stretch" width="1" visibility="Visible" grid.row="4" grid.column="15" />
                                <contentpresenter content="金额" grid.row="4" verticalalignment="Center" horizontalalignment="Center" grid.column="16" />
                                <rectangle fill="#FF0B1D1D" verticalalignment="Stretch" width="1" visibility="Visible" grid.row="4" grid.column="17" />
                                <rectangle fill="#FF0B1D1D" verticalalignment="Stretch" height="1" visibility="Visible" grid.row="3" grid.columnspan="18" />
                            </grid>
                        </telerik:gridviewdatacolumn.header>
                        <telerik:gridviewdatacolumn.celltemplate xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView">
<datatemplate>
                                <stackpanel orientation="Horizontal">
                                    <textblock width="49" text="{Binding L,Mode=TwoWay}" textalignment="Right" />
                                    <rectangle fill="#FF0B1D1D" verticalalignment="Stretch" width="1" height="23" visibility="Visible" />
                                    <textblock width="49" text="{Binding S,Mode=TwoWay}" textalignment="Right" />
                                    <rectangle fill="#FF0B1D1D" verticalalignment="Stretch" width="1" height="23" visibility="Visible" />
                                    <textblock width="49" text="{Binding M,Mode=TwoWay}" textalignment="Right" />
                                    <rectangle fill="#FF0B1D1D" verticalalignment="Stretch" width="1" height="23" visibility="Visible" />
                                    <textblock width="49" text="{Binding XL,Mode=TwoWay}" textalignment="Right" />
                                    <rectangle fill="#FF0B1D1D" verticalalignment="Stretch" width="1" height="23" visibility="Visible" />
                                    <textblock width="49" text="{Binding XXL,Mode=TwoWay}" textalignment="Right" />
                                    <rectangle fill="#FF0B1D1D" verticalalignment="Stretch" width="1" height="23" visibility="Visible" />
                                    <textblock width="49" text="{Binding XL3,Mode=TwoWay}" textalignment="Right" />
                                    <rectangle fill="#FF0B1D1D" verticalalignment="Stretch" width="1" height="23" visibility="Visible" />
                                    <textblock width="49" text="{Binding XL,Mode=TwoWay}" textalignment="Right" />
                                    <rectangle fill="#FF0B1D1D" verticalalignment="Stretch" width="1" height="23" visibility="Visible" />
                                    <textblock width="49" text="{Binding Liu,Mode=TwoWay}" textalignment="Right" />
                                    <rectangle fill="#FF0B1D1D" verticalalignment="Stretch" width="1" height="23" visibility="Visible" />
                                    <textblock width="49" text="{Binding Yang,Mode=TwoWay}" textalignment="Right" />
                                    <rectangle fill="#FF0B1D1D" verticalalignment="Stretch" width="1" height="23" visibility="Visible" />
                                </stackpanel>
                            </datatemplate>
                        </telerik:gridviewdatacolumn.celltemplate>
                    </telerik:gridviewdatacolumn>
 
                </telerik:radgridview.columns>
            
    </grid>
</usercontrol>
Posted 16-Apr-13 22:52pm
Edited 17-Apr-13 0:12am
(no name)8.1K
v5
Comments
sisirp88 at 17-Apr-13 5:38am
   
Your requirement is not so clear...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 230
1 PIEBALDconsult 150
2 DamithSL 125
3 BillWoodruff 108
4 Garth J Lancaster 90
0 OriginalGriff 5,790
1 DamithSL 4,601
2 Maciej Los 4,012
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,195


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 17 Apr 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100