Differents QuickAccessToolBar in the same application #1053
-
Hello, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The state storage is very simple and only uses index based lookup for items. |
Beta Was this translation helpful? Give feedback.
The state storage is very simple and only uses index based lookup for items.
You can implement your own state storage by creating a class which implements
IRibbonStateStorage
.To make use of it you have to create a new class inheriting from
Ribbon
and overwriteCreateRibbonStateStorage
in that class.If you want to load a different state after some action you can then simply call
ribbon.RibbonStateStorage.Load();
.You can find the code for the default state storage at https://github.com/fluentribbon/Fluent.Ribbon/blob/v6.0.0/Fluent.Ribbon/Data/RibbonStateStorage.cs