首页 新闻 会员 周边

Wpf 的xaml文件设计器打不开

0
悬赏园豆:200 [已关闭问题] 关闭于 2009-07-06 10:36

今天很郁闷,出现在以下的问题,估计是.net本身出问题了,问题现象如下: 

无法在流的结尾之外进行读取。  标记文件“Microsoft.Windows.Design.Developer;component/themes/ZoomControl.xaml”中对象“Trigger_26”处的错误。
   在 System.Windows.Markup.XamlParseException.ThrowException(String message, Exception innerException, Int32 lineNumber, Int32 linePosition, Uri baseUri, XamlObjectIds currentXamlObjectIds, XamlObjectIds contextXamlObjectIds, Type objectType)
   在 System.Windows.Markup.XamlParseException.ThrowException(ParserContext parserContext, Int32 lineNumber, Int32 linePosition, String message, Exception innerException)
   在 System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord)
   在 System.Windows.Markup.StyleBamlRecordReader.ReadRecord(BamlRecord bamlRecord)
   在 System.Windows.Markup.BamlRecordReader.Read(Boolean singleRecord)
   在 System.Windows.Markup.StyleTreeBuilderBamlTranslator.ParseFragment()
   在 System.Windows.Markup.TreeBuilder.Parse()
   在 System.Windows.Markup.XamlStyleSerializer.ConvertBamlToObject(BamlRecordReader reader, BamlRecord bamlRecord, ParserContext context)
   在 System.Windows.Markup.BamlRecordReader.ReadElementStartRecord(BamlElementStartRecord bamlElementRecord)
   在 System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord)
   在 System.Windows.Markup.BamlRecordReader.ReadElement(Int64 startPosition, XamlObjectIds contextXamlObjectIds, Object dictionaryKey)
   在 System.Windows.ResourceDictionary.CreateObject(Int32 valuePosition, Object key)
   在 System.Windows.ResourceDictionary.RealizeDeferContent(Object key, Object& value, Boolean& canCache)
   在 System.Windows.ResourceDictionary.GetValueWithoutLock(Object key, Boolean& canCache)
   在 System.Windows.ResourceDictionary.GetValue(Object key, Boolean& canCache)
   在 System.Windows.ResourceDictionary.GetValueWithoutLock(Object key, Boolean& canCache)
   在 System.Windows.ResourceDictionary.GetValue(Object key, Boolean& canCache)
   在 System.Windows.DeferredResourceReference.GetValue(BaseValueSourceInternal valueSource)
   在 System.Windows.DependencyPropertyChangedEventArgs.get_NewValue()
   在 System.Windows.FrameworkElement.OnStyleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   在 System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   在 System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   在 System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   在 System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, OperationType operationType)
   在 System.Windows.StyleHelper.ApplyTemplatedParentValue(DependencyObject container, FrameworkObject child, Int32 childIndex, FrugalStructList`1& childRecordFromChildIndex, DependencyProperty dp, FrameworkElementFactory templateRoot)
   在 System.Windows.StyleHelper.InvalidatePropertiesOnTemplateNode(DependencyObject container, FrameworkObject child, Int32 childIndex, FrugalStructList`1& childRecordFromChildIndex, Boolean isDetach, FrameworkElementFactory templateRoot)
   在 System.Windows.StyleHelper.LoadOptimizedTemplateContent(DependencyObject container, ParserContext parserContext, OptimizedTemplateContent optimizedTemplateContent, FrameworkTemplate frameworkTemplate, IComponentConnector componentConnector, IStyleConnector styleConnector, List`1 affectedChildren, UncommonField`1 templatedNonFeChildrenField)
   在 System.Windows.FrameworkTemplate.LoadContent(DependencyObject container, List`1 affectedChildren, UncommonField`1 templatedNonFeChildrenField)
   在 System.Windows.StyleHelper.ApplyTemplateContent(UncommonField`1 dataField, DependencyObject container, FrameworkElementFactory templateRoot, Int32 lastChildIndex, HybridDictionary childIndexFromChildID, FrameworkTemplate frameworkTemplate)
   在 System.Windows.FrameworkTemplate.ApplyTemplateContent(UncommonField`1 templateDataField, FrameworkElement container)
   在 System.Windows.FrameworkElement.ApplyTemplate()
   在 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   在 System.Windows.UIElement.Measure(Size availableSize)
   在 MS.Internal.Designer.Viewport.MeasureOverride(Size availableSize)
   在 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   在 System.Windows.UIElement.Measure(Size availableSize)
   在 MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   在 System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint)
   在 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   在 System.Windows.UIElement.Measure(Size availableSize)
   在 System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   在 System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
   在 System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   在 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   在 System.Windows.UIElement.Measure(Size availableSize)
   在 System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)
   在 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   在 System.Windows.UIElement.Measure(Size availableSize)
   在 System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   在 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   在 System.Windows.UIElement.Measure(Size availableSize)
   在 MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   在 System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   在 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   在 System.Windows.UIElement.Measure(Size availableSize)
   在 System.Windows.Controls.Control.MeasureOverride(Size constraint)
   在 System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   在 System.Windows.UIElement.Measure(Size availableSize)
   在 System.Windows.Interop.HwndSource.SetLayoutSize()
   在 System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
   在 System.Windows.Interop.HwndSource.set_RootVisual(Visual value)
   在 MS.Internal.Designer.VSIsolatedDesigner.ViewHolder.Initialize()
   在 MS.Internal.Designer.VSIsolatedDesigner.ViewHolder..ctor(UIElement content)
   在 MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedView.get_ViewHandle()
   在 MS.Internal.Host.Isolation.IsolatedView.get_ViewHandle()
   在 MS.Internal.Designer.DesignerPane.LoadDesignerView()

 
无法在流的结尾之外进行读取。
   在 System.IO.__Error.EndOfFile()
   在 System.IO.BinaryReader.ReadString()
   在 System.Windows.Markup.BamlPropertyRecord.LoadRecordData(BinaryReader bamlBinaryReader)
   在 System.Windows.Markup.BamlPropertyWithConverterRecord.LoadRecordData(BinaryReader bamlBinaryReader)
   在 System.Windows.Markup.BamlRecordManager.ReadNextRecord(BinaryReader bamlBinaryReader, Int64 bytesAvailable, BamlRecordType recordType)
   在 System.Windows.Markup.BamlRecordReader.ReadNextRecordWithDebugExtension(Int64 bytesAvailable, BamlRecordType recordType)
   在 System.Windows.Markup.BamlRecordReader.GetNextRecord()
   在 System.Windows.Markup.BamlRecordReader.Read(Boolean singleRecord)
   在 System.Windows.Markup.TemplateTreeBuilderBamlTranslator.ParseFragment()
   在 System.Windows.Markup.TreeBuilder.Parse()
   在 System.Windows.Markup.XamlTemplateSerializer.ConvertBamlToObject(BamlRecordReader reader, BamlRecord bamlRecord, ParserContext context)
   在 System.Windows.Markup.BamlRecordReader.ReadElementStartRecord(BamlElementStartRecord bamlElementRecord)
   在 System.Windows.Markup.StyleBamlRecordReader.ReadElementStartRecord(BamlElementStartRecord bamlElementRecord)
   在 System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord)

 

老马的家的主页 老马的家 | 初学一级 | 园豆:20
提问于:2009-07-02 15:05
< >
分享
所有回答(1)
0

这个问题应该是读到流末尾还在继续读产生的错误吧,较大可能是BUG

就这一个XAML打不开,还是所有的都不行?

斯克迪亚 | 园豆:4124 (老鸟四级) | 2009-07-02 15:47
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册