Pressing the ALT key should displays the Key Tips and moves keyboard focus to the RadRibbonBar by pressing any of the typical keyboard navigation key (i.e., TAB, SHIFT+TAB, ARROW RIGHT, ALT+ARROW, DOWN, SPACE BAR, etc.)
The caption text of the RibbonBarGroups disappears when switching themes runtime. The important part is that this behavior is observable when switching from the Office2010Blue theme to other themes. In this specific theme, the FillPrimitive holding the TextPrimitive (caption text) has the PositionOffset property set to 0,-1. This minus one pixel is messing up the layout during theme change.
What can be done as a workaround is to reset this property for every group. When the Office2010Blue theme is applied run this code:
private void radButton1_Click(object sender, EventArgs e)
{
Office2010BlueTheme theme = new Office2010BlueTheme();
ThemeResolutionService.ApplicationThemeName = "Office2010Blue";
foreach (var item in this.ribbonTab1.Items)
{
if (item is RadRibbonBarGroup)
{
var group = item as RadRibbonBarGroup;
group.Children[1].Children[0].PositionOffset = new SizeF(0, 0);
}
}
}
In this case, the group is in collapsed mode. When we open its drop-down button to see the elements inside and afterward expand the form to see the whole group, the theme of the group is reset. Moving the mouse over the group will reset the theme.
To reproduce:
1. Add a form with a RadRibbonBar and add some tabs
2. Create a second form that inherits the first one
3. Open the second form at design time and add a few items to the application menu.
Expected: either the applied changes in the derived form should be serialized properly or the ribbon in the derived form should be locked for such changed.
Actual: even though the menu items are added in the designer and you can see them, after restarting the designer, they are not shown in the application menu anymore. You can see that they are still available in the Designer.cs but they are not added to the application menu. The same behavior is observed if you add tabs and groups with different elements.
The theme component is added to the form:
Here is the code:
Public Class RadRibbonForm1
Sub New()
InitializeComponent()
Me.AllowAero = False
End Sub
Private Sub RadButtonElement1_Click(sender As Object, e As EventArgs) Handles RadButtonElement1.Click
ThemeResolutionService.ApplicationThemeName = "Office2010Blue"
End Sub
End Class
When RadGallery is collapsed there are missing scroll buttons arrow. Also hover state of the gallery items is missing.
FIX. RadRibbonForm title bar buttons location is misplaced.
The property is not serializable, thus the items are not added.
To reproduce: 1. set a local setting to the back color of a ribbon tab 2. run the project and change the selected tab => your setting is removed
To reproduce: 1. Add WindowsForm and RadRibbonBar 2. Use this code snippet this.Text = string.Empty; this.ControlBox = false; this.radRibbonBar1.Text = "Example"; 3. Run the project and you will see that title is visible in the Form and in the RadRibbonBar Workaround: Use RadForm or RadRibbonForm and set the Text property. If you use the WindowsForm, please use this code snippet: this.ControlBox = false; this.radRibbonBar1.Text = "Example"; this.FormBorderStyle = FormBorderStyle.None;
To reproduce: Add a RadRibbonForm and set the theme to Office2013Light. Start the application and click the backstage button. Click the close button and you will see an exception. Workaround: this.RibbonBar.BackstageControl.BackstageElement.TitleBarElement.CloseButton.MouseDown += TitleBarElement_MouseDown; void TitleBarElement_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e) { this.RibbonBar.BackstageControl.BackstageElement.TitleBarElement.CanManageOwnerForm = false; this.Close(); }
To reproduce: - Add ribbon bar with a few buttons subscribe to ScreenTipNeeded event and show different text for each button. - Collapse the tabs by clicking the collapse button, the expand a tab by clicking its name. - You will notice that the ScreenTipNeeded event is not fired. Workaround: Create separate screen tip for each element: RadOffice2007ScreenTipElement button2Tip = new RadOffice2007ScreenTipElement(); button2Tip.CaptionLabel.Text = "button 2"; button2Tip.MainTextLabel.Text = "button 2"; radButtonElement2.ScreenTip = button2Tip;
To reproduce: - add RadRibbonbar with two groups; - add several RadButtonsElements in each group; - subscribe for the ToolTipTextNeeded event: private void radRibbonBar1_ToolTipTextNeeded(object sender, ToolTipTextNeededEventArgs e) { e.ToolTipText = sender.ToString(); } If you hover a certain button, the tool tip for button element appears, which is correct. If you hover precisely the ribbon bar group, the correct tool tip also appears. But after that each element hovering, displays the wrong tool tip.
To reproduce: - add RadRibbonBar with several CommandTabs and private void Form1_Load(object sender, EventArgs e) { radRibbonBar1.Expanded = false; } - add RadButton and on its Click event use: private void radButton1_Click(object sender, EventArgs e) { radRibbonBar1.CommandTabs[0].Visibility = Telerik.WinControls.ElementVisibility.Collapsed; } As a result the CommandTab is collapsed but some empty space remains. Workaround: private void radButton1_Click(object sender, EventArgs e) { radRibbonBar1.CommandTabs[0].Visibility = Telerik.WinControls.ElementVisibility.Collapsed; this.radRibbonBar1.Expanded = !this.radRibbonBar1.Expanded; this.radRibbonBar1.Expanded = !this.radRibbonBar1.Expanded; }
To reproduce: - add RadRibbonForm; - add one tab with RadToggleButtonElement; - subscribe to toggle button click event and use the following code: public Form1() { InitializeComponent(); RadOffice2007ScreenTipElement tip1 = new RadOffice2007ScreenTipElement(); tip1.CaptionLabel.Text = "Button1"; tip1.MainTextLabel.Text = "My Text"; RadOffice2007ScreenTipElement tip2 = new RadOffice2007ScreenTipElement(); tip2.CaptionLabel.Text = "Button2"; tip2.MainTextLabel.Text = "My Text"; radToggleButtonElement1.ScreenTip = tip1; } private void radToggleButtonElement1_Click(object sender, EventArgs e) { radRibbonBar1.Expanded = false; } When the screen is shown (hovering the toggle button), then click the button and the ribbon bar will collapse. As a result the screen tip will not disappear even on mouse move. Workaround: private void radToggleButtonElement1_Click(object sender, EventArgs e) { radRibbonBar1.Expanded = false; RadToggleButtonElement btn = sender as RadToggleButtonElement; if (btn != null && btn.ScreenTip != null) { PropertyInfo[] pinfos = ((ComponentBehavior)radRibbonBar1.Behavior).GetType().GetProperties(BindingFlags.NonPublic | BindingFlags.Instance); PropertyInfo barProperty = ((ComponentBehavior)radRibbonBar1.Behavior).GetType().GetProperty("ScreenPresenter", BindingFlags.NonPublic | BindingFlags.Instance); Form screenTip = barProperty.GetValue(((ComponentBehavior)radRibbonBar1.Behavior), null) as Form; screenTip.Hide(); } }
To reproduce: -add RadRibbonBar (ControlDefault theme) and several tabs; -click the ribbon bar arrow to collapse the ribbon bar; -click the first tab to show the pop up; -click the ribbon bar arrow once to expand the ribbon bar and click it again to collapse it; -click the tab does not display it from the first time;