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

Visual bug when expanding ribbon

2 Answers 32 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Blake
Top achievements
Rank 1
Blake asked on 01 Dec 2008, 04:22 PM
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 Answers, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 04 Dec 2008, 06:45 PM
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.
0
Blake
Top achievements
Rank 1
answered on 08 Dec 2008, 03:02 PM

The problem went away when these lines were added:

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

ThemeResolutionService.ApplicationThemeName = "Office2007Black";

Thanks

 

Tags
RibbonBar
Asked by
Blake
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
Blake
Top achievements
Rank 1
Share this question
or