This project is read-only.

New project... error on adding ribbon

Dec 18, 2010 at 6:45 PM

Just create a new WPF project, change the window to a Fluent.RibbonWindow, and add the Ribbon...

Of course, the project won't compile.

System.NullReferenceException
Object reference not set to an instance of an object.
   at Fluent.Ribbon.OnJustLayoutUpdated(Object sender, EventArgs e) in C:\Users\Tim\Documents\Visual Studio 2010\Projects\Fluent\Fluent\Ribbon.cs:line 1703
   at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

Dec 18, 2010 at 11:16 PM

Did you by chance remember to add:       

<ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Fluent;Component/Themes/Office2010/Silver.xaml" />
            </ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
I forgot on a new project I tried and felt stupid when I remembered.
Dec 19, 2010 at 5:46 PM

<cough>
     <whistles nonchalantly />
</cough>

 

 

Dec 19, 2010 at 9:42 PM

<fallsoutofchair>

       <roflmao />

</fallsoutofchair>