To reproduce: Show RadMessageBox as follows: RadMessageBox.Show(this, "מסר כלשהו", "Caption", MessageBoxButtons.OKCancel, RadMessageIcon.Error, MessageBoxDefaultButton.Button1, RightToLeft.Yes, "מסר2 כלשהו"); Open the details button and you will see that the text is כלשהו מסר2
To reproduce: Create a RadForm and set the property as follows: public Form1() { InitializeComponent(); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; } Workaround: Set the ShowIcon property to false: public Form1() { InitializeComponent(); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; this.ShowIcon = false; }
To reproduce: 1. Open a RadForm 2. Maximize the form. 3. Restore the form. Then we can see odd line on the bottom of title bar / top of the form. If you resize the form (make it bigger), new visible areas of form doesn't contain this weird line. Workaround: protected override void WndProc(ref Message m) { FormWindowState currentWindowState = this.WindowState; base.WndProc(ref m); if (currentWindowState == FormWindowState.Maximized && this.WindowState== FormWindowState.Normal) { this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable; } }
Workaround: use RadRibbonForm instead or set minimum and maximum size
RadMessageBox - Buttons are not arranged correctly in RTL
To reproduce: 1.Add a RadButton and on its Click event, show a RadMessageBox. 2.Add a RadDropDownList . 3.Drag several themes from the toolbox and drop them onto the form (e.g. Office2010Black, Office2010Blue, TelerikMetro, Windows8) 4.Use the following code: public Form1() { InitializeComponent(); this.radDropDownList1.Items.Add("Office2010Black"); this.radDropDownList1.Items.Add("Office2010Blue"); this.radDropDownList1.Items.Add("TelerikMetro"); this.radDropDownList1.Items.Add("Windows8"); this.radDropDownList1.SelectedIndexChanged += radDropDownList1_SelectedIndexChanged; this.radDropDownList1.SelectedItem = this.radDropDownList1.Items[0]; } private void radDropDownList1_SelectedIndexChanged(object sender, Telerik.WinControls.UI.Data.PositionChangedEventArgs e) { string itemText = this.radDropDownList1.Items[e.Position].Text; ThemeResolutionService.ApplicationThemeName = itemText; } private void radButton1_Click(object sender, EventArgs e) { RadMessageBox.Show("Some message", "Confirmation", MessageBoxButtons.OKCancel); } When you select a new item from the RadDropDownList, the theme for the entire application is changed. But when you click the button to show a RadMessageBox, the RadMessageBox has incorrect style for its buttons. Workaround: set the RadMessageBox.ThemeName before showing it: RadMessageBox.ThemeName = ThemeResolutionService.ApplicationThemeName; RadMessageBox.Show("Some message", "Confirmation", MessageBoxButtons.OKCancel);
Workaround: set the property at run time
To reproduce: -add a RadForm and specify its Icon property; -modify Resources area on project's Properties -> Application tab in order to add Icon and manifest; -run the project and you will notice that the specified icon is displayed in the taskbar. However, Alt+Tab panel does not display the certain RadForm's icon.
To reproduce: Add a RadForm and set its icon property. You will notice that the Form's icon is changed but it is not in the taskbar.
To reproduce: - set your windows taskbar to auto-hide. - Add RadForm to a blank solution. - Change the forms behaviour with the following one: RadRibbonFormBehavior radRibbonFormBehavior1 = new RadRibbonFormBehavior(); this.radRibbonFormBehavior1.Form = this; this.FormBehavior = this.radRibbonFormBehavior1; - When you maximize the form the taskbar won't show like in the normal case.
To reproduce: Add a RadRibbonBar, associate AcceptButton and CancelButton and subscribe to their events. Run the application press escape and the CancelButton's event should be fired. Press enter - no results. Workaround: protected override bool ProcessCmdKey(ref System.Windows.Forms.Message msg, System.Windows.Forms.Keys keyData) { if (keyData == System.Windows.Forms.Keys.Enter) { this.AcceptButton.PerformClick(); } return base.ProcessCmdKey(ref msg, keyData); } Resolution: The issue is fixed in Telerik`s RadForm and RadRibbonForm. If you use MS Form, this is still not working.
To reproduce: Create a RadForm set Maxmize/Minimize box to false. Run it and try to drag the form by clicking on where the buttons used to be. Workaround: void MainForm_Load(object sender, EventArgs e) { this.FormElement.TitleBar.MaximizeButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed; this.FormElement.TitleBar.MinimizeButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed; }
Description: Text alignment of the title bar caption can not be changed. this.FormElement.TitleBar.TitlePrimitive.Alignment = ContentAlignment.MiddleCenter;
Workaround: ((RadFormControlBase)this).MinimumSize = new Size(350, 350); ((RadFormControlBase)this).MaximumSize = new Size(350, 350);
QSF Forms&Dialogs Message box - show RadMessageBox when click on the right side of the title bar the popup dialog cannot be dragged.
To reproduce: - Set the form MinimumSize to or close to the RadForm's actual size. - Turn all windows visual effects off - Set the theme to Office2010Silver - Start the application Workaround: - Load the theme manually in code like this: ThemeResolutionService.LoadPackageFile("C:\Office2010Silver.tssp") ThemeResolutionService.ApplicationThemeName = "Office2010Silver"
RadRibbonForm back stage button is missplaced when in maximized state with office2010SilverTheme Workarouond: Set the margin when the window is set to maximize. void Form1_Resize(object sender, EventArgs e) { if (this.WindowState == FormWindowState.Maximized) { this.radRibbonBar1.RibbonBarElement.ApplicationButtonElement.Margin = new Padding(3, 35, 3, 0); } else { this.radRibbonBar1.RibbonBarElement.ApplicationButtonElement.Margin = new Padding(3, 33, 3, 0); } }
RadMessageBox - SetThemeName method is not working correctly, after dispose on owner form. Workaround - Reset the radMessageBoxForm field via reflection. For example: var field = typeof(RadMessageBox).GetField("radMessageBoxForm", BindingFlags.NonPublic | BindingFlags.Static); field.SetValue(null, null); RadMessageBox.SetThemeName("Office2007Black");
MDI control box does not appear when MDI child forms are hidden istead of closed. This happens the second time you are trying to open a previously hidden form right after hiding another MDI child form. Workaround: First, you should add the RadMDIControlsItemExtended class to your real solution and then add the following code snippet in the constructor of the parent MDI form: this.rbMain.RibbonBarElement.ButtonsContainer.Children.RemoveAt(2); RadMDIControlsItemExtended MDIBox = new RadMDIControlsItemExtended(); this.rbMain.RibbonBarElement.ButtonsContainer.Children.Add(MDIBox); MDIBox.LayoutPropertyChanged(); RadMDIControlsItemExtended.cs: using System; using System.Collections.Generic; using System.Text; using Telerik.WinControls.UI; using System.Windows.Forms; using Telerik.WinControls; using System.Reflection; namespace StandardMdiApplication { class RadMDIControlsItemExtended : RadMDIControlsItem { protected override void OnHostFormLayout() { base.OnHostFormLayout(); FieldInfo fi = typeof(RadMDIControlsItem).GetField("hostForm", BindingFlags.NonPublic | BindingFlags.Instance); object o = fi.GetValue(this); Form hostForm = (Form)o; if (hostForm != null && hostForm.IsMdiContainer) { Form maximizedForm = null; foreach (Form form in hostForm.MdiChildren) { if (form is ShapedForm) { foreach (Control mdiFormControls in form.Controls) { if (mdiFormControls is RadTitleBar) { mdiFormControls.Visible = form.WindowState != FormWindowState.Maximized; } } } if (form.WindowState == FormWindowState.Maximized && form.Visible && (maximizedForm == null || hostForm.ActiveMdiChild == form)) { maximizedForm = form; break; } } if (maximizedForm == null) { this.Visibility = ElementVisibility.Collapsed; this.InvalidateMeasure(); return; } FormBorderStyle borderStyle = (maximizedForm is RadFormControlBase) ? ((RadFormControlBase)maximizedForm).FormBorderStyle : maximizedForm.FormBorderStyle; if (maximizedForm != null && maximizedForm.Visible && maximizedForm.ControlBox && borderStyle != FormBorderStyle.None && borderStyle != FormBorderStyle.SizableToolWindow && borderStyle != FormBorderStyle.FixedToolWindow) { this.Visibility = ElementVisibility.Visible; this.InvalidateMeasure(); } else { this.Visibility = ElementVisibility.Collapsed; this.InvalidateMeasure(); } } } } }
Setting the ShowIcon to false hides the icon. You then decide to show the icon again, and you set ShowIcon back to true. However, the icon does not appear again.