Approved
Last Updated: 26 Dec 2018 05:31 by Desislava
ADMIN
Created by: Dimitar
Comments: 1
Category: Form
Type: Bug Report
3
Use attached to reproduce.
Case 1 - the initial scaling is not correct and the showing dilog1 results in a different DPI each time. 
Case 2 - the AllowTheming property disabled the scaling - see dialog 2.

Workaround:

this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);

public class MyRadForm : RadForm
{
    protected override void HandleDpiChanged()
    {
        if (TelerikHelper.IsWindows10CreatorsUpdateOrHigher)
        {
            return;
        }

        base.HandleDpiChanged();
    }

}

Approved
Last Updated: 06 Dec 2018 07:15 by ADMIN
To reproduce:
- Set the StartPosition to CenterScreen
- Show the form on a HDPI monitor

Workaround:
var form = new RadForm();

float dpiX, dpiY;
Graphics graphics = this.CreateGraphics();
dpiX = graphics.DpiX /100;
dpiY = graphics.DpiY /100;

form.StartPosition = FormStartPosition.Manual;
var monSize = Screen.FromControl(this).Bounds;
var centerX = (monSize.Width / 2) - (form.DesktopBounds.Width * dpiX / 2);
var centerY = (monSize.Height / 2) - (form.DesktopBounds.Height * dpiY/ 2);
form.Location = new Point((int)centerX,(int) centerY);
form.Show();


New
Last Updated: 28 Nov 2018 12:19 by
ADMIN
Created by: Dess | Tech Support Engineer, Sr.
Comments: 1
Category: Form
Type: Bug Report
0
To reproduce: Add a RadForm and at design time in the Properties section of Visual Studio try to customize some properties of the RadForm >> FormElement >> TitleBar, e.g. Padding, ForeColor. You will notice that even though you save the changes, they are not serialized. Thus, when you run the application, none of the changes are applied.

Workaround: set the changes programmatically at run time.
Approved
Last Updated: 26 Oct 2018 11:47 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Sr.
Comments: 0
Category: Form
Type: Bug Report
5
A possible workaround is to set the RadControl.EnableDpiScaling property to false.
static class Program
{
    /// <summary>
    /// The main entry point for the application.
    /// </summary>
    [STAThread]
    static void Main()
    {
        RadControl.EnableDpiScaling = false;

        Application.EnableVisualStyles();
        Application.SetCompatibleTextRenderingDefault(false);
        Application.Run(new RadForm1());
    }
}

Another workaround is to mark the application as DPI-aware: https://docs.telerik.com/devtools/winforms/telerik-presentation-framework/dpi-support
Approved
Last Updated: 11 Sep 2018 11:50 by ADMIN
To reproduce: run the sample project. It ends up leaving significant blank space on the right and the bottom, whereas the normal MS Form does NOT do this and works right.

Workaround: in the Load event you can adjust the size with 10/15 px by setting the MaximumSize:

        private void Form1_Load(object sender, EventArgs e)
        {
            this.MaximumSize = new Size(this.Size.Width - 15, this.Size.Height - 10);
        }
Approved
Last Updated: 16 Jul 2018 11:16 by ADMIN
How to reproduce: add a RadRibbonForm and set its MaximizeBox, MinimizeBox properties to false. Set the HelpButton property of the form to true and change its Icon. You will notice that the designer in Visual Studio has not updated.

Workaround: use the element hierarchy editor and manually change the visibility of the elements.
Completed
Last Updated: 25 Jun 2018 06:46 by Dimitar
To reproduce: Create a RadForm, select a material theme from the ToolBox, and apply the theme to the Form. Set the size of the Form to anything simple like (300, 300) and then save and close out the Form. When you reopen the same Form it will grow to (304, 302).
Please refer to the attached gif file.

Workaround: set the size at run time.
Declined
Last Updated: 08 Mar 2018 11:07 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Sr.
Comments: 1
Category: Form
Type: Bug Report
1
To reproduce: on some Windows 10 machines the title bar's text is not rendered clearly. 

Workaround:

1. Set the RadForm.AllowTheming property to false.

2. In the form's Load event change the TextRenderingHint of the caption text primitive to AntiAliasGridFit:  

TextPrimitive tp = this.radRibbonBar2.RibbonBarElement.RibbonCaption.CaptionLayout.CaptionTextElement as TextPrimitive;
tp.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit;
Completed
Last Updated: 02 Mar 2018 09:47 by ADMIN
To reproduce:
- Set the icon of the form.
- Set the FormBorderStyle to FixedToolWindow.
- The default icon is displayed in the taskbar.

Workaround:
public RadForm2()
{
    InitializeComponent();
    this.ShowIcon = true;
  
}
protected override void OnShown(EventArgs e)
{
    base.OnShown(e);
    this.FormElement.TitleBar.IconPrimitive.Visibility = ElementVisibility.Collapsed;
}
Approved
Last Updated: 28 Feb 2018 13:55 by ADMIN
ADMIN
Created by: Dimitar
Comments: 0
Category: Form
Type: Bug Report
0
To reproduce:
- Hide the border and change the BackColor of the form. 
- Dock a MenuStrip to the top. 
- You will notice that there are 2 pixels on the left and right sides of the menu. 

Project is attached as well.
Approved
Last Updated: 26 Feb 2018 16:24 by ADMIN
How to reproduce: set the Size property of the form in the designer of Visual Studio, pay attention to the serialized ClientSize value. Run the form and check the ClientSize, it has increased

Workaround: 
public partial class Form2 : RadForm
{
    public Form2()
    {
        InitializeComponent();
        Padding p = TelerikDpiHelper.ScalePadding(this.FormBehavior.ClientMargin, new SizeF(1f / this.RootElement.DpiScaleFactor.Width, 1f / this.RootElement.DpiScaleFactor.Height));
        this.MaximumSize = new Size(this.Size.Width - p.Horizontal, this.Size.Height - p.Vertical- this.FormBehavior.ClientMargin.Bottom + this.FormElement.TitleBar.Size.Height);
    }

    protected override void OnShown(EventArgs e)
    {
        base.OnShown(e);

        this.MaximumSize = new Size(0, 0);
    }
}
Completed
Last Updated: 20 Feb 2018 13:55 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Sr.
Comments: 2
Category: Form
Type: Bug Report
1
To reproduce:

1. Create a RadForm - Form1
2. Change its BackColor at design time
3. Create another RadForm - Form2 
4. Open it at design time. It is expected to have the BackColor coming from the parent form.

Workaround: Set the color in the form's constructor instead of at design time.
Completed
Last Updated: 15 Feb 2018 07:48 by ADMIN
Use attached to reproduce. This was working in version 2017.1.221

Workaround:
private void Instance_LocationChanged(object sender, EventArgs e)
{
    var box = sender as RadMessageBoxForm;
    box.Location = new Point((this.Location.X + this.Width / 2) - (box.Width/2), (this.Location.Y + this.Height / 2 )- (box.Height/2));  
    
}
Approved
Last Updated: 27 Dec 2017 06:25 by ADMIN
To reproduce:

public partial class RadRibbonForm1 : Telerik.WinControls.UI.RadRibbonForm
    {
        public RadRibbonForm1()
        {
            InitializeComponent();
            this.AllowAero = true;
            this.RibbonBar.QuickAccessToolbarBelowRibbon = false;
        }
    }

Note: the system buttons not always handle the mouse click.

Workaround: set AllowAero to false OR RibbonBar.QuickAccessToolbarBelowRibbon to true.
Completed
Last Updated: 15 Dec 2017 12:35 by ADMIN
How to reproduce: create a DPI-aware application and set the AllowAero property of the ribbon form to false, the titlebar will not be themed

Workaround: override the ScaleControl method of in the RadRibbonForm instance in the project
Protected Overrides Sub ScaleControl(ByVal factor As SizeF, ByVal specified As BoundsSpecified)
    MyBase.ScaleControl(factor, specified)

    If Me.HasOwnToolbar AndAlso Me.AllowTheming AndAlso Not Me.IsDesignMode AndAlso Me.IsInitialized Then
        Me.AllowTheming = False
    End If
End Sub
Declined
Last Updated: 15 Dec 2017 09:49 by ADMIN
Please refer to the attached sample project.
 
Workaround: Initialize the form just before showing it.
Approved
Last Updated: 20 Nov 2017 15:53 by ADMIN
To reproduce: follow the steps from the attached gif file.

Workaround:

        public RadForm1()
        {
            InitializeComponent();

            ((RadRibbonFormBehavior)this.FormBehavior).AllowTheming = false;
        }
Approved
Last Updated: 20 Nov 2017 15:48 by ADMIN
How to reproduce: just create a RadForm, in the designer change its size and set its FormBorderStyle property to be None. When the form loads its size will be increased.

Workaround: set its MaximumSize property
this.MaximumSize = new Size(400, 80);
Approved
Last Updated: 20 Nov 2017 13:26 by ADMIN
1 2 3 4 5 6