VS2012 XAML Design Time Exception

2 posts, 0 answers
  1. Robert
    Robert avatar
    271 posts
    Member since:
    Mar 2011

    Posted 21 Nov 2012 Link to this post

    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
  2. Boby
    Admin
    Boby avatar
    595 posts

    Posted 23 Nov 2012 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top