XamlParseException: 名称不能以“.”字符(十六进制值 0x2E)开头。 第 2 行,位置 13。 --LineNumber: 2 --LinePosition: 13 --BaseUri: pack://application:,,,/ StackTrace: 在 System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri) 在 System.Windows.Markup.XamlReader.Load(XmlReader reader, ParserContext parserContext, XamlParseMode parseMode, Boolean useRestrictiveXamlReader, List`1 safeTypes) 在 System.Windows.Markup.XamlReader.Load(XmlReader reader) 在 DynamicClass.WpfViewer.Show(Object rootObject) 在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 在 System.Threading.ThreadHelper.ThreadStart() XmlException: 名称不能以“.”字符(十六进制值 0x2E)开头。 第 2 行,位置 13。 --LineNumber: 2 --LinePosition: 13 --Message: 名称不能以“.”字符(十六进制值 0x2E)开头。 第 2 行,位置 13。 StackTrace: 在 System.Xml.XmlTextReaderImpl.Throw(Exception e) 在 System.Xml.XmlTextReaderImpl.ParseAttributes() 在 System.Xml.XmlTextReaderImpl.ParseElement() 在 System.Xml.XmlTextReaderImpl.ParseDocumentContent() 在 System.Xaml.XmlCompatibilityReader.Read() 在 MS.Internal.Xaml.Parser.XamlScanner.DoXmlRead() 在 MS.Internal.Xaml.Parser.XamlPullParser.<Parse>d__4.MoveNext() 在 MS.Internal.Xaml.NodeStreamSorter.StartNewNodeStreamWithSettingsPreamble() 在 MS.Internal.Xaml.NodeStreamSorter..ctor(XamlParserContext context, XamlPullParser parser, XamlXmlReaderSettings settings, Dictionary`2 xmlnsDictionary) 在 System.Xaml.XamlXmlReader.Initialize(XmlReader givenXmlReader, XamlSchemaContext schemaContext, XamlXmlReaderSettings settings) 在 System.Windows.Markup.XamlReader.Load(XmlReader reader, ParserContext parserContext, XamlParseMode parseMode, Boolean useRestrictiveXamlReader, List`1 safeTypes)