Binding IsMinimized with dynamic ribbon content breaks

8 posts, 0 answers
  1. Mel
    Mel avatar
    5 posts
    Member since:
    Feb 2013

    Posted 30 Jan 2014 Link to this post

    We're using the RadRibbonView and are populating it's content dynamically using models for tabs, groups, and buttons. In the constructor of our window we initialize some default tab for the ribbon and make it selected. Then after the window has been loaded we add some more ribbon tabs based off a certain configuration. By itself this works just fine. However we've now decided to bind the RadRibbonView.IsMinimized property so that we can change it in code (get/set from config class). This also works fine by itself, but when you combine these two usage behaviors the RadRibbonView kind of breaks on initial start. You can download a sample project that demonstrates the problem here: https://dl.dropboxusercontent.com/u/22608/RibbonViewMinimized.zip

    It seems to be related to the tab selection. In the constructor of the MainWindow if you remove the line that sets the initially selected tab then the problem goes away. Otherwise the SelectedTabContent component of the RadRibbonView seems to become detached from the window (if you move the window around the screen after it initially loads you'll see what I mean). Also, after the window is displayed and the ribbon view is broken, toggling IsMinizmied (double-clicking on a tab header) fixes the issue.

    There's things we can do to easily work around this, but I just wanted to present it as a bug and see if you had any feedback.

    Thanks!
  2. Kiril Vandov
    Admin
    Kiril Vandov avatar
    324 posts

    Posted 04 Feb 2014 Link to this post

    Hello Mel,

    We can confirm that there is an bug related to the selected tab item popup when the RadRibbonView is minimized. I have isolated that problem regardless of the binding to the IsMinimized or SelectedItem properties.
    Could you please try to reproduce the issue using the following steps and let us know if that is the issue you are experiencing:
    1) Remove the binding to the SelectedItem and IsMinimized. Set the IsMinimized property to true in xaml and run your project.
    2) Hover one of the TabItems and single click the item on its bottom border.
    3) Now you can move your window and the popup will remain open(displayed as detached to the window).

    If that is not the issue, could you give us more detailed steps in order to reproduce it on our side.

    Thank you for your cooperation.

    Kind regards,
    Kiril Vandov
    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Mel
    Mel avatar
    5 posts
    Member since:
    Feb 2013

    Posted 04 Feb 2014 Link to this post

    Hey Kiril,

    Yes, following the three steps you outlined produces the exact result you described in our application. I'm assuming then that this is the issue. Please let me know if there's anything else you need from me.

    Thanks,

    Mel Green
  5. Kiril Vandov
    Admin
    Kiril Vandov avatar
    324 posts

    Posted 05 Feb 2014 Link to this post

    Hello Mel,

    Thank you for your cooperation.
    I have updated your Telerik as a small sign of appreciation for your efforts and cooperation during the investigation. We will try to fix this issue for our next official release Q1 2014.

    King regards,
    Kiril Vandov
    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 >>
  6. Jason Intardonato
    Jason Intardonato avatar
    5 posts
    Member since:
    Mar 2010

    Posted 28 Apr 2014 Link to this post

    I'm using WPF RadRibbonView 2014 Q1 and experiencing this same issue.  Any fixes?
  7. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 01 May 2014 Link to this post

    Hello Mel,

    Note that the described issue with the popup was fixed in 2014 Q1. We tested the project from your first post to see if we can reproduce this behavior with the new assemblies (2014 Q1) but we were not able to do it. Can you provide us with a sample project which isolates the reported behavior. Also, it will be helpful if you can send us steps to reproduce it. This will help us investigating this behavior further.

    Thank you in advance for the cooperation.

    Regards,
    Martin
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  8. Russ
    Russ avatar
    14 posts
    Member since:
    Aug 2012

    Posted 14 May 2014 Link to this post

    Is this still open?  I have having the same issue I think.  If I set the RadRibbonView to

    IsMinimized="True"

    I get this error;
    Error 1 Object reference not set to an instance of an object. D:\local projects\der_project\der_project\MainWindow.xaml 19 254 der_project


  9. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 16 May 2014 Link to this post

    Hi Russell,

    I am not able to reproduce the reported error, but I can suggest you to try the following:
    • Ensure that all the referenced assemblies are the same version
    • Delete the bin and obj folders of your project and then clean it.

    If this doesn't help can you send us a sample project which isolates the issue. This will allow us to test locally and further investigate the error. However, you cannot attach zip files in the forum so I will ask you to open a new support ticket. Thank you in advance for your cooperation.

    Regards,
    Martin
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top
UI for WPF is Visual Studio 2017 Ready