Visual bug when expanding ribbon

3 posts, 0 answers
  1. Blake
    Blake avatar
    2 posts
    Member since:
    Oct 2008

    Posted 01 Dec 2008 Link to this post

    Hi,

    I am evaluating the ribbon control. I have a button that expands/collapses the ribbon bar by using the following event handler.

    private void OnToggleStateChanged(object sender, StateChangedEventArgs args)  
    {  
        ribbonBar.Expanded = !ribbonBar.Expanded;  
    }  
     
    The title bar does not get repainted properly when expanding. I have linked some screen shots that show the problem.

    1. Initial state
    2. Collapsed state
    3. Buggy expanded state

    Thanks
  2. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 04 Dec 2008 Link to this post

    Hi Blake,

    Thank you for writing.

    I have tried similar scenarios like the described one, but I could not reproduce the issue. I have used the code below:
    private void radToggleButton1_ToggleStateChanged(object sender, StateChangedEventArgs args)  
    {  
        if (this.radRibbonBar1.Expanded)  
        {  
            this.radRibbonBar1.Expanded = false;  
            this.radToggleButton1.Text = "Expand";  
        }  
        else 
        {  
            this.radRibbonBar1.Expanded = true;  
            this.radToggleButton1.Text = "Collapse";  
        }  

    On my side this code is producing correct results. Maybe the issue is related to something specific in your project. It will be very helpful if you could send me a small example that demonstrates the issue. This will help me to investigate your case and to provide you with further assistance.

    I am looking forward to your reply.

    Regards,
    Martin Vasilev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Blake
    Blake avatar
    2 posts
    Member since:
    Oct 2008

    Posted 08 Dec 2008 Link to this post

    The problem went away when these lines were added:

    officeBlackTheme = new Telerik.WinControls.Themes.Office2007BlackTheme();

    ThemeResolutionService.ApplicationThemeName = "Office2007Black";

    Thanks

     

Back to Top