FIX. RadRibbonForm - theme is not applying correctly, when some changes are made to ribbon button while RadRibbonBar is collapsed.
Steps to reproduce:
1. Add button to some ribbon group.
2. Collapse the ribbon.
3. Disable this button.
4. Enable this button.
5. Expand the ribbon.
Workaround - subscribe to ExpandedStateChanged event and reapply the theme. For example:
this.radRibbonBar1.ExpandedStateChanged += new EventHandler(radRibbonBar1_ExpandedStateChanged);
void radRibbonBar1_ExpandedStateChanged(object sender, EventArgs e)
{
this.radRibbonBar1.ElementTree.ApplyThemeToElementTree();
}
You have a scenario where there is a maximized MDI child form in a RadRibbonForm. You try to close the maximized child form from the MDI box of RadRibbonBar, but instead of getting the form closed, you programmatically hide it, so that you can reuse it further. The moment you try to show that form again, it appears non-maximized which is not a correct behavior.
1. Create a new project with RadRibbonBar. 2. Set the ApplicationMenuStyle to BackstageView 3. Change the application theme to Office2010Blue when handling Form.Load event. 4. Run the project.
The Click event is fired for another element instead for the element where the MouseDown event is fired in RadRibbonBar.
To reproroduce: - open the smart tag and uncheck the ShowBorder check box. - save, close and reopen the form WORKAROUND: set the property in code radRibbonBarButtonGroup1.ShowBorder = false;
To reproduce: - allow selection by setting ItemSelection = true - set the SelectedItem to some of the elements - set the SelectedItem to null -> the item remains selected
To reproduce:
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
For index = 1 To 10
Dim Temp As New RadButtonElement
Temp.Image = Image.FromFile("C:\Program Files (x86)\Telerik\RadControls for WinForms Q3 2012\Examples\QuickStart\Resources\1RibbonMenuNewMagenta.png")
Temp.TextImageRelation = TextImageRelation.ImageAboveText
Temp.ImageAlignment = ContentAlignment.MiddleCenter
Temp.Text = "Test"
RadRibbonBarGroup1.Items.Add(Temp)
Next
'workaround
'RadRibbonBar1.RibbonBarElement.ElementTree.ApplyThemeToElement(RadRibbonBar1.RibbonBarElement)
End Sub
1. Create a new project with RadRibbonForm. 2. Set the ApplicationMenuStyle to BackstageView. 3. Add two buttons inside the backstage view. The first one should change the theme to Windows 7 and the second one to TelerikMetro. 4. Run the project and observe how application button position changes when changing the theme.
If one sets any of the Office 2010 themes to a ribbon bar with radio buttons and runs the project the radio buttons would not work.
1. Create a new application with RadRibbonForm. 2. Set the ApplicationThemeName to TelerikMetro. 3. Run the application. You will see that the quick access toolbar is visible and there are not items in it.
1. Create a new RadRibbonForm and add some tabs. 2. Set the backstage view mode. 2. Run the application. The application icon will not be visible.
If you add a maximized child form with ControlBox = false or FormBorderStyle = None, the MDI control box of the RadRibbonBar in the MDIParent should not be visible.
Currently the Keytips in the Ribbonbar and cannot process some chars like "Ä", "Ü", "Ö" and "ß".
Using VS2012 RadRibbonForm's caption element is misplaced. As a result a horizontal black line appears below the title. Additionally, the system borders of the form are thinner that they are supposed to be.
According to the design guidelines, the width of a ContextualTab is determined by the sum of the widths of the RibbonTabs. However, there are cases where the width of the containing tabs is less than the width needed by the ContextualTab to display its text. To handle this case, we should allow the users to set the width of the ContextualTabs.
WORKAROUND: increase the size of the inner tabs:
private void radButton1_Click(object sender, EventArgs e)
{
ribbonTab1.MinSize = new Size(ribbonTab1.Size.Width+60, 0);
radRibbonBar1.RibbonBarElement.InvalidateMeasure(true);
radRibbonBar1.RibbonBarElement.UpdateLayout();
radRibbonBar1.RibbonBarElement.RibbonCaption.CaptionLayout.InvalidateMeasure(true);
radRibbonBar1.RibbonBarElement.RibbonCaption.CaptionLayout.UpdateLayout();
}
Add a RadRibbonForm, set AllowAero = false, save and close the form. Open it again and an exception will be thrown.
add additional minimize options:
- minimize to panel titles
- minimize to panel buttons
To Reproduce:
this.AllowAero = false;
this.radRibbonBar1.RibbonBarElement.RibbonCaption.MinimizeButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
this.radRibbonBar1.RibbonBarElement.RibbonCaption.MaximizeButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
Work around:
void radRibbonBar1_CommandTabSelecting(object sender, Telerik.WinControls.UI.CommandTabSelectingEventArgs args)
{
if (args.NewCommandTab.Visibility == Telerik.WinControls.ElementVisibility.Collapsed || args.NewCommandTab.Visibility == Telerik.WinControls.ElementVisibility.Hidden)
{
args.Cancel = true;
}
}
It will be nice if RadRibbonBar has the QuickAccessToolbar property exposed in the property grid of Visual Studio, just like ExpandButton, ExitButton, etc.