RibbonView with Implicit Theme Design Exceptions

10 posts, 0 answers
  1. Jason
    Jason avatar
    5 posts
    Member since:
    Aug 2012

    Posted 13 Mar 2013 Link to this post

    I have vs2013 and Q1 2013 using the OfficeSliver Theme creating a project with 4.5 Framework. I am getting a design error anytime a try to open any XAML file in designer.  I am getting this on brand new solutions with no controls on the window. 
    I tried what was listed on this form http://www.telerik.com/community/forums/wpf/ribbonview/ribbonview-w-windows-8-theme-rd---blend-with-sketchflow-for-vs-2012-preview-crashing.aspx and confirmed that my theme file was indeed set the way suggested and it was but that is not changing the fact that I can not load a completely blank window. 

    Any suggestions on what I can do? 

    This is the design error that I am getting:

    System.ArgumentException

    '{DependencyProperty.UnsetValue}' is not a valid value for the 'Telerik.Windows.Controls.RadRibbonView.HelpButtonImageSource' property on a Setter.

    at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal) at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOutSynchronous(Action action, Int32 targetApartmentId, WaitHandle aborted, WaitHandle timeoutSignal) at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalOut(Action action, Int32 targetApartmentId, WaitHandle aborted, CallSynchronizationMode syncMode, WaitHandle timeoutSignal) at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TValue](RemoteHandle`1 targetObject, Action action, CallSynchronizationMode syncMode) at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalOut[TResult,TValue](RemoteHandle`1 targetObject, Func`2 func, CallSynchronizationMode syncMode) at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CreateDesignerImpl(IHostSourceItem item, IHostTextEditor editor, RemoteCancellationToken remoteCancelToken) at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass12.<Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner>b__11(RemoteCancellationToken remoteToken) at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.CallWithCancellation[TResult](CancellationToken cancelToken, Func`2 func) at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.Microsoft.Expression.DesignHost.IDesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken) at Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)

     

     

     

    System.ArgumentException

    '{DependencyProperty.UnsetValue}' is not a valid value for the 'Telerik.Windows.Controls.RadRibbonView.HelpButtonImageSource' property on a Setter.

    Server stack trace: at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.WaitForCompletion(NestedCallContext nestedCallContext, BlockingCall call, WaitHandle timeoutSignal) at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.MarshalIn(Action action, Int32 targetApartmentId) at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn(IRemoteObject targetObject, Action action) at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.MarshalIn[TResult](IRemoteObject targetObject, Func`1 func) at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem remoteItem, IRemoteHostTextEditor remoteEditor, IRemoteCancellationToken remoteToken) at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner(IRemoteHostSourceItem remoteItem, IRemoteHostTextEditor remoteEditor, IRemoteCancellationToken cancelToken) at Microsoft.Expression.DesignHost.Isolation.Remoting.LocalDesignerService.<>c__DisplayClass8.<CreateDesignerImpl>b__6(IRemoteDesignerService d) at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass4`2.<MarshalOut>b__3() at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

     

    System.ArgumentException

    '{DependencyProperty.UnsetValue}' is not a valid value for the 'Telerik.Windows.Controls.RadRibbonView.HelpButtonImageSource' property on a Setter.

    at System.Windows.Setter.Seal() at System.Windows.SetterBaseCollection.Seal() at System.Windows.Style.Seal() at System.Windows.Style.System.Windows.ISealable.Seal() at System.Windows.StyleHelper.SealIfSealable(Object value) at System.Windows.ResourceDictionary.SealValue(Object value) at System.Windows.ResourceDictionary.SealValues() at System.Windows.ResourceDictionary.AddOwner(DispatcherObject owner) at System.Windows.ResourceDictionary.PropagateParentOwners(ResourceDictionary mergedDictionary) at System.Windows.ResourceDictionary.OnMergedDictionariesChanged(Object sender, NotifyCollectionChangedEventArgs e) at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e) at System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, T item) at System.Windows.ResourceDictionaryCollection.InsertItem(Int32 index, ResourceDictionary item) at System.Collections.ObjectModel.Collection`1.Add(T item) at Microsoft.Expression.DesignSurface.View.WPFSceneView.WpfResourceHost.TrySetApplicationResources() at Microsoft.Expression.DesignSurface.View.WPFSceneView.WpfResourceHost.EndInstanceBuilding() at Microsoft.Expression.DesignSurface.View.WPFSceneView.CrossDocumentUpdateToken.System.IDisposable.Dispose() at Microsoft.Expression.Platform.InstanceBuilders.ViewNodeManager.UpdateInstances(IAttachViewRoot siteRoot, IList`1 contextNodes, CancellationToken cancelToken) at Microsoft.Expression.DesignSurface.View.XamlSceneView.UpdateInstancesInternal() at Microsoft.Expression.DesignSurface.View.XamlSceneView.UpdateInternal(Boolean updateInstances, Boolean updateReferences) at Microsoft.Expression.DesignSurface.View.WPFSceneView.UpdateInternal(Boolean updateInstances, Boolean updateReferences) at Microsoft.Expression.DesignSurface.View.XamlSceneView.Update(Boolean updateReferences) at Microsoft.Expression.DesignSurface.View.ViewUpdateManager.UpdateInvalidRelatedDocuments(SceneView view) at Microsoft.Expression.DesignSurface.View.XamlSceneView.EnsureActiveViewUpdated() at Microsoft.Expression.DesignSurface.View.WPFSceneView.EnsureActiveViewUpdated() at Microsoft.Expression.DesignSurface.View.XamlSceneView.SetVisible(Boolean visible) at Microsoft.Expression.DesignSurface.View.WPFSceneView.SetVisible(Boolean visible) at Microsoft.Expression.DesignSurface.DocumentViewContext.CreateAndOpenView(ISourceItemContext sourceItem, CancellationToken cancelToken, Boolean activate, Boolean ensureOpenInHost, Boolean suppressUI) at Microsoft.Expression.DesignSurface.DesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken) at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass10.<>c__DisplayClass12.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner>b__f(CancellationToken cancelToken) at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.CallWithCancellation[TResult](IRemoteCancellationToken remoteToken, Func`2 func) at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteDesignerService.<>c__DisplayClass10.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteDesignerService.CreateDesigner>b__e() at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass16`1.<MarshalIn>b__15() at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

     

     

  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    2955 posts
    Member since:
    Apr 2014

    Posted 18 Mar 2013 Link to this post

    Hi Jason,

    I am not sure why you get these exceptions if the Icon properties are properly defined. Can you elaborate on the setup of your solution - particularly if you use No-Xaml or normal assemblies. Also can you describe the approach you use to define the RibbonView theme?

    I attached a sample solution where I used No-Xaml dlls and implicit styles to defined the Office-Silver style on the RibbonView control (following the approach described here) and I couldn't detect any issues so please let me know if I missed anything.

    Regards,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft Release
  4. Jason
    Jason avatar
    5 posts
    Member since:
    Aug 2012

    Posted 18 Mar 2013 Link to this post

    I did use the No-Xaml assemblies, at least I should be.  This was all done with Telerik wizard.  There errors are happing after that was done.  Also It seems that it might have to do with my install as I am getting the same error as with the attached project as I am with the one that I created.  I am not sure why that would be though.

  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2574 posts
    Member since:
    Sep 2012

    Posted 21 Mar 2013 Link to this post

    Hi Jason,

    Since you are able to reproduce this with our project we think this might be strongly related to some known design time issues with VS 2012. Our VS 2012 version is 11.0.51106.01 Update1. What is yours ?

    Kind regards,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Jason
    Jason avatar
    5 posts
    Member since:
    Aug 2012

    Posted 25 Mar 2013 Link to this post

    I am also running VS 11.0.51106.01 Update 1 and .NET Framework version 4.5.50709

    Microsoft Visual Studio Professional 2012
    Version 11.0.51106.01 Update 1
    Microsoft .NET Framework
    Version 4.5.50709

    Installed Version: Professional

    Office Developer Tools   04938-088-0142932-02976
    Microsoft Office Developer Tools

    Team Explorer for Visual Studio 2012   04938-088-0142932-02976
    Microsoft Team Explorer for Visual Studio 2012

    Visual Basic 2012   04938-088-0142932-02976
    Microsoft Visual Basic 2012

    Visual C# 2012   04938-088-0142932-02976
    Microsoft Visual C# 2012

    Visual C++ 2012   04938-088-0142932-02976
    Microsoft Visual C++ 2012

    Visual F# 2012   04938-088-0142932-02976
    Microsoft Visual F# 2012

    Visual Studio 2012 Code Analysis Spell Checker   04938-088-0142932-02976
    Microsoft® Visual Studio® 2012 Code Analysis Spell Checker

    Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

    The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

    Visual Studio 2012 SharePoint Developer Tools   04938-088-0142932-02976
    Microsoft Visual Studio 2012 SharePoint Developer Tools

    NuGet Package Manager   2.2.40116.9051
    NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

    PreEmptive Analytics Visualizer   1.0
    Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

    SQL Server Data Tools   11.1.20627.00
    Microsoft SQL Server Data Tools

    Telerik WPF VSExtensions   2013.1.215.0
    Telerik RadControls for WPF VSExtensions Package

    Web Developer Tools   1.0.30710.0
    Microsoft Web Developer Tools contains the following components:
    Page Inspector: Tool that offers an efficient way to decompose Web Applications and diagnose front-end issues.
    Web Publishing: Extensions required for Web Publishing for both hosted servers as well as on premises.
    Web Form Templates: Includes the default templates for Web Form Applications.
    Editor Extensions: Includes HTML, CSS, and JS editor extensions that greatly enhance the development experience.

  7. Tina Stancheva
    Admin
    Tina Stancheva avatar
    2955 posts
    Member since:
    Apr 2014

    Posted 28 Mar 2013 Link to this post

    Hi Jason,

    Thank you for getting back to us. Unfortunately we still can't reproduce this locally. But the solution I sent used the NoXaml assemblies, version 2013.1.0220 but as I haven't explicitly defined the path to the assemblies and I haven't included any assemblies in the archive I previously attached it is possible that on your side, my solution gets build against another version.

    This is why I wanted to ask you if you can check to see which version of our controls is used on your side. Something else you can try is to copy only the binaries you need in a separate folder ( and make sure you copy the Q1 2013 - v. 2013.1.0220) and reference the binaries in your solution from that folder.

    As we have seen this exceptions in previous releases, my guess is that perhaps you're using older assemblies or older version of our styles in your solution. And if that isn't the case, then it would be great if you can attach a solution demonstrating the issue - perhaps reattach my solution but make sure to include the assemblies used on your side. Then we can further investigate this case.

    Regards,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  8. David Liebeherr - rent-a-developer
    David Liebeherr - rent-a-developer avatar
    11 posts
    Member since:
    Dec 2006

    Posted 06 May 2013 Link to this post

    Hi,

    I just discovered the same Problem.
    The Solution for me was to change the URis of all Icons (in particular the RadRibbonView.HelpButtonImageSource) in the implicit theme style XAMLs from the Uri Format like this "Telerik.Windows.Controls.RibbonView;component/HelpIcon.png" to this "pack://application:,,,/Telerik.Windows.Controls.RibbonView;component/HelpIcon.png".

    This solved the Issue for me.
    I hope this helps someone else too.

    Greetings,
    Dave

  9. Maarten
    Maarten avatar
    1 posts
    Member since:
    Feb 2013

    Posted 25 May 2013 Link to this post

    Hi,

    I had the exact same problem. Thanks Dave for saving my day!

    Maarten

  10. Ristogod
    Ristogod avatar
    57 posts
    Member since:
    Aug 2008

    Posted 17 Oct 2013 Link to this post

    I have the same problem. I tried doing as Dave suggested and it doesn't seem to be working. Is my code incorrect? I'm changing

    <BitmapImage UriSource="/Telerik.Windows.Controls.RibbonView;component/HelpIcon.png"/>

    to this

    <BitmapImage UriSource="pack://application:,,,/Telerik.Windows.Controls.RibbonView;component/HelpIcon.png"/>

    But it doesn't seem to be working. What am I doing wrong?

  11. David Liebeherr - rent-a-developer
    David Liebeherr - rent-a-developer avatar
    11 posts
    Member since:
    Dec 2006

    Posted 17 Oct 2013 Link to this post

    Hi Ristogod,

    As far as I can see everyhting looks okay with your UriSource.
    I'd suggest you upload a sample project in this thread so I can try to cross check on my development environment what's the issue.

    Greetings,
    Dave

Back to Top
DevCraft Release