This is a migrated thread and some comments may be shown as answers.

RibbonView in 2013_2_0729 hotfix

1 Answer 19 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Dodd
Top achievements
Rank 1
Dodd asked on 31 Jul 2013, 06:34 AM

Hello, I downloaded 2013_2_0729 hotfix and RadRibbionView doesn't work as before.
I'm using the below code (called from the OnContentRendered event of RadRibbonWindow).
_mainRibbon is a RadRibbonView instance and each tab in  _mainRibbon is dynamically created.
This code worked fine in former versions, but after applying 2013_2_0729 hotfix, NullExceptionError occurrs in _mainRibbon.Visibility = Visibility.Visible;. Can this be fixed?

        private void createFeatures()
        {
            List<IPluginFactory> featureFactories = PluginManager.Instance.GetFactories(typeof(IFeatureFactory));
            foreach (IPluginFactory factory in featureFactories)
            {
                // Providing callback (delegate) to create any number of FeatureWindows from the feature
                IFeature feature = (factory as IFeatureFactory).Create(_mainRibbon, createFeatureWindow, create3DWindow);
            }

            _mainRibbon.SelectedIndex = 0;
            _mainRibbon.Visibility = Visibility.Visible;
        }

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 02 Aug 2013, 04:41 PM
Hello Dodd,

Unfortunately from the provided information we cannot tell for sure what might be causing this exception. Can you please elaborate a bit more on your scenario and its implementation. And if possible, can you please try to isolate that case in a sample solution? Then we will be able to try and reproduce it locally and further investigate the cause.

Thank you in advance for your cooperation.

Regards,
Tina Stancheva
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
RibbonView and RibbonWindow
Asked by
Dodd
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or