Just installed 2012.1 and now I get build errors saying it can't find RibbonStyles and RibbonCommonDictionary.
So what happen to them?
Just installed 2012.1 and now I get build errors saying it can't find RibbonStyles and RibbonCommonDictionary.
So what happen to them?
Hi David,
In 2011.2, we unified all native control styles from places like RibbonStyles to a common ActiproSoftware.Windows.Themes.SharedResourceKeys class. There are equivalent and more style keys there.
Similarly, ActiproSoftware.Windows.Themes.AssetResourceKeys now contains a unified set of brush resources. Brushes that were RibbonControl* now are a more general ToolBar*.
I am using RibbonStyles.ComboBoxKey and CheckBoxKey. I don't find these in AssetResourceKeys. Also I am using themes:RibbonCommonDictionary.ContextualTabGroupStockColorCyan I can't find this anywhere.
Do these keys and colors go by diffferent name?
Ok. I finially found them. I found "ribbon:RibbonStyles.ComboBoxKey" under "themes:SharedResourceKeys.ComboBoxStyleKey" and
"themes:RibbonCommonDictionary.ContextualTabGroupStockColorCyan" as "ribbon:ContextualTabGroupColors.Cyan"
I am sure that this new way is better and I'm am willing to change. I just whish that there was some translate table to make this process a little easier.
Hi David,
A number of these things we list in the "Converting to 2011.2" documentation topics. Both the main one and the Ribbon-specific one. We'll add a little more info in the general converting one for the next maintenance release too.
Following up on David's post, is there any way to get a table that I can use to map the old names to the new ones?
For example, I'm using a key:
RibbonCommonDictionary.RibbonControlOuterBorderHoverBrushKey
and I can't seem to find a similar key in the AssetResourceKeys class ().
Hi Mick,
The latest maintenance release has updated documentation on that with some tips (in the main Converting to 2011.2 topic). While it doesn't have a old to new mapping table, it does have hints like:
Many of the former RibbonControl* assets are now named a more generic ToolBar*.
I am using the latest build and I am looking for the correct AssetResourceKeys for a ribbon:PopupButton Pressed state, ribbon:Button Pressed state, and ribbon:ButtonGroup hover and pressed state.
[Modified 12 years ago]
Hello, I believe your company has WPF Studio, so you can download the default XAML styles/templates for our controls from your account. Once you have those, just look up the proper XAML file for the Ribbon controls you are interested in and you can see what we use for the various control states.
Thank you! The default XAML styles were what I needed!
Please log in to a validated account to post comments.