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;
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 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 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: 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
FIX. RadRibbonForm title bar buttons location is misplaced.
The property is not serializable, thus the items are not added.
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;
When clicking with the right mouse-button on one of the system buttons, and then dragging the mouse over the button until leaving it, without releasing the mouse-button itself, the button stays marked. It is reproducible in all themes. Workaround: public Form1() { InitializeComponent(); this.radRibbonBar1.RibbonBarElement.RibbonCaption.MinimizeButton.MouseLeave += Button_MouseLeave; this.radRibbonBar1.RibbonBarElement.RibbonCaption.MaximizeButton.MouseLeave += Button_MouseLeave; this.radRibbonBar1.RibbonBarElement.RibbonCaption.CloseButton.MouseLeave += Button_MouseLeave; } private void Button_MouseLeave(object sender, EventArgs e) { RadImageButtonElement btn = sender as RadImageButtonElement; if (btn != null) { btn.IsMouseDown = false; } }
To reproduce: 1.Add a RadForm. 2.Create a UserControl with RadRibbonBar. 3.Apply Window8 theme to the RadRibbonBar and to the RadForm. 4.Use the following code: Me.RadRibbonBar1.CloseButton = False Me.RadRibbonBar1.MinimizeButton = False Me.RadRibbonBar1.MaximizeButton = False Me.RadRibbonBar1.RibbonBarElement.Text = String.Empty 5.When you add the UserControl to the RadForm and run the application, the QuickAccessToolbar items are cut off. Workaround: Me.RadRibbonBar1.RibbonBarElement.QuickAccessToolBar.OverflowButtonElement.Padding = New Padding(0, 0, 0, -15) Me.RadRibbonBar1.RibbonBarElement.QuickAccessToolBar.InnerItem.Padding = New Padding(0, 10, 0, -10)
To reproduce: - Add a tab to a RadRibbonForm form. - Collapse the ribbon and press the Alt key to show the KeyTips. - Select a tab by pressing the corresponding key. - You will notice that the tab is not expanded. Workaround: void radRibbonBar1_KeyTipActivating(object sender, CancelEventArgs e) { keyExpanded = true; } void radRibbonBar1_Click(object sender, EventArgs e) { keyExpanded = false; } bool keyExpanded = false; void radRibbonBar1_CommandTabSelected(object sender, Telerik.WinControls.UI.CommandTabEventArgs args) { if (!radRibbonBar1.Expanded && keyExpanded) { radRibbonBar1.Expanded = true; } }
To reproduce: Add a RadRibbonBar, a tab and a group. In the group add a RadButtonElement. Add two buttons on the form. One for enabling and one for disabling the RadButtonElement. Start the application , collapse the RadRibbon and disable the button inside. Now expand it and you will see the visual bug. Workaround: Subscribe to the ExpandedChanged event of the RadRibbonBar and if the RadRibbonBar is expanded and the button is disabled re-enable and re-disable the button. This will correct its visual appearance.
To reproduce: 1. Add a RadRibbonBar and add several buttons with images as follows: public Form1() { InitializeComponent(); RibbonTab tabItem1 = new RibbonTab(); tabItem1.Text = "Manage"; radRibbonBar1.CommandTabs.Add(tabItem1); RadRibbonBarGroup radRibbonBarGroup1 = new RadRibbonBarGroup(); radRibbonBarGroup1.Text = "radRibbonBarGroup1"; tabItem1.Items.Add(radRibbonBarGroup1); RadButtonElement radButtonElement1 = new RadButtonElement(); radButtonElement1.Image = Properties.Resources.about; radButtonElement1.TextImageRelation = TextImageRelation.ImageBeforeText; radButtonElement1.Text = "First Button"; radRibbonBarGroup1.Items.Add(radButtonElement1); RadButtonElement radButtonElement2 = new RadButtonElement(); radButtonElement2.Image = Properties.Resources.about; radButtonElement2.TextImageRelation = TextImageRelation.ImageBeforeText; radButtonElement2.Text = "Second Button"; radRibbonBarGroup1.Items.AddRange(new RadItem[] { radButtonElement1, radButtonElement2 }); RadRibbonBarButtonGroup radRibbonBarButtonGroup1 = new RadRibbonBarButtonGroup(); radRibbonBarButtonGroup1.Orientation = System.Windows.Forms.Orientation.Vertical; radRibbonBarButtonGroup1.ShowBorder = true; RadButtonElement radButtonElement3 = new RadButtonElement(); radButtonElement3.Text = "Button One"; radButtonElement3.Image = Properties.Resources.about; radButtonElement3.TextImageRelation = TextImageRelation.ImageBeforeText; RadButtonElement radButtonElement4 = new RadButtonElement(); radButtonElement4.Text = "Button Two"; radButtonElement4.Image = Properties.Resources.about; radButtonElement4.TextImageRelation = TextImageRelation.ImageBeforeText; radRibbonBarButtonGroup1.Items.AddRange(new RadItem[] { radButtonElement3, radButtonElement4 }); radRibbonBarGroup1.Items.Add(radRibbonBarButtonGroup1); } 2. Run the applications, re-size the form horizontally until all buttons are collapsed to smallest size, then click the form's maximize button. As a result all buttons are drawn without text. Workaround: protected override void WndProc(ref Message message) { const int WM_SYSCOMMAND = 0x0112; const int SC_MAXIMIZE = 0xF030; switch (message.Msg) { case WM_SYSCOMMAND: int command = message.WParam.ToInt32() & 0xfff0; if (command == SC_MAXIMIZE) { this.Size = new System.Drawing.Size(300, 300); } break; } base.WndProc(ref message); }
To reproduce: 1. Add a RadRibbonBar 2. Apply Office2013Light theme 3. Use the following code snippet: public Form1() { InitializeComponent(); this.radRibbonBar1.CloseButton = false; this.radRibbonBar1.MinimizeButton = false; this.radRibbonBar1.MaximizeButton = false; this.radRibbonBar1.ApplicationMenuStyle = Telerik.WinControls.UI.ApplicationMenuStyle.ApplicationMenu; } Workaround: this.radRibbonBar1.RibbonBarElement.ApplicationButtonElement.Margin = new Padding(3, 8, 0, 0);
When you set the ApplicationMenuStyle property to BackstageView at design time and set its theme to Office2013Dark or Office2013Light you lose the ability to return back to the designer page by clicking the back button. Workaround: select the RadRibbonBar via Visual Studio's Document Outline window (ctrl+W, U) or via Visual Studio's Property Grid's Component combobox (on the top of the property grid)
To rperoduce: - Set the themes as follows: var theme = new Office2010BlackTheme(); new Telerik.WinControls.RadControlSpy.RadControlSpyForm().Show(); ThemeResolutionService.ApplicationThemeName = theme.ThemeName; this.radRibbonBar1.ElementTree.EnableApplicationThemeName = false; this.radRibbonBar1.ThemeName = "ControlDefault"; - Start and collapse the ribbon tabs. - Click on a tab to show its controls. Workaround: Use the ApplyThemeToControlTree method instead of settig the ApplicationThemeName property. ThemeResolutionService.ApplyThemeToControlTree(this, "Windows");