This project is read-only.

Making File Tab the defalt displayed Tab?

Sep 1, 2010 at 4:00 AM

I know this is probably a simple answer but I'm finding it difficult.

How can I make the File tab the default displayed tab whenever my app is run. I want it to basically be activated to show the menu options after it starts to allow the user to load or create a new database for my app.

Sep 1, 2010 at 4:51 AM

You are searching ribbon.IsBackstageOpen = true.
However v.1.3 has a bug, so if it won't work, try to put it in dispatcher.

Daniel

Sep 1, 2010 at 6:33 AM

I found the setting and at first it looked like it was going to work, but upon running it did just like you said, it's bugged :(

 

What do you mean by putting it in the dispatcher?

Sep 1, 2010 at 8:08 AM
Edited Sep 1, 2010 at 8:19 AM

I had a similar / the same problem: http://fluent.codeplex.com/Thread/View.aspx?ThreadId=223684

Related bug with sample project of bugs and workaround: http://fluent.codeplex.com/workitem/18532

To get it to kind of work in v1.3 you basically have to set ribbon.IsBackstageOpen = true "later" than you would expect, ot it gets reset.

Dispatcher.BeginInvoke is one trick to do that. It calls a specified delegate later.

 

Sep 1, 2010 at 8:14 AM
Edited Sep 1, 2010 at 8:17 AM

Trick with dispatcher (somewhere in window's constructor):

Dispatcher.BeginInvoke((ThreadStart) (() => { ribbon.IsBackstageOpen = true; }), DispatcherPriority.Render);

Sep 1, 2010 at 5:22 PM

Will this be fixed in a future patch or in v2?

Sep 1, 2010 at 6:19 PM

Yes, it will be fixed in v2