This is a migrated thread and some comments may be shown as answers.

VS2012 XAML Design Time Exception

1 Answer 52 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 21 Nov 2012, 06:26 PM
Hi,

I'm getting the following XAML design time exception in VS2012.

Exception

NullReferenceException: Object reference not set to an instance of an object.

Here's the stack trace:

   at Telerik.Windows.Controls.RichTextBoxUI.StatusBar.LayoutModeSelector.get_SelectedLayoutMode()
   at Telerik.Windows.Controls.RichTextBoxUI.StatusBar.LayoutModeSelector.set_SelectedLayoutMode(DocumentLayoutMode value)
   at Telerik.Windows.Controls.RichTextBoxUI.RadRichTextBoxStatusBar.OnDocumentLayoutModeChanged()
   at Telerik.Windows.Controls.RichTextBoxUI.RadRichTextBoxStatusBar.OnAssociatedRichTextBoxChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp, Boolean preserveCurrentValue)
   at System.Windows.Data.BindingExpressionBase.Invalidate(Boolean isASubPropertyChange)
   at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)
   at System.Windows.Data.BindingExpression.Activate(Object item)
   at System.Windows.Data.BindingExpression.AttachToContext(AttachAttempt attempt)
   at System.Windows.Data.BindingExpression.MS.Internal.Data.IDataBindEngineClient.AttachToContext(Boolean lastChance)
   at MS.Internal.Data.DataBindEngine.Task.Run(Boolean lastChance)
   at MS.Internal.Data.DataBindEngine.Run(Object arg)
   at MS.Internal.Data.DataBindEngine.OnLayoutUpdated(Object sender, EventArgs e)
   at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()

Any idea's what may be causing it?

Thanks,

Rob

1 Answer, 1 is accepted

Sort by
0
Boby
Telerik team
answered on 23 Nov 2012, 08:24 AM
Hi Robert,
Unfortunately we cannot reproduce the problem on our side. Could you try to isolated it in a sample project and send it to us for further investigation, or just post here some sample XAML that induces it?

Regards,
Boby
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
RichTextBox
Asked by
Robert
Top achievements
Rank 1
Answers by
Boby
Telerik team
Share this question
or