Set one of the monitors to use 125% DPI scaling. Start the attached project on a monitor with 100% DPI scaling - the form is expected to be with size 400,400. Move the form to the monitor with 125% DPI scaling. You are expecting the form's size to be 500,500, but it is 507,521. Please refer to the screenshots.
Workaround:
Override the RadForm.ScaleControl method as follows:
Protected Overrides Sub ScaleControl(factor As SizeF, specified As BoundsSpecified)
Dim initialSize As Size = Me.Size
MyBase.ScaleControl(factor, specified)
Me.Size = TelerikDpiHelper.ScaleSize(initialSize, factor)
End Sub
The shape defined at design-time is not generated correctly. Hence, the shape is not applied to the Form.
To reproduce: public Form1() { InitializeComponent(); RadButton bt = new RadButton(); bt.Dock = DockStyle.Right; bt.Parent = this; RadTitleBar tb = new RadTitleBar(); tb.Dock = DockStyle.Top; tb.Parent = this; tb.Size = new Size(150, 100); this.Shape = new RoundRectShape(20); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable; }
Create a brand new project and add a ShapedForm. Please follow the steps illustrated in the attached gif file.
The RadTitleBar shows incorrect title when the theme is Aqua. If you set the Form.Text to "Text(text)", the RadTitleBar will show "(Text(text". Work Around - Turn off RightToLeft of the TitlePrimitive. For example: C# this.FormElement.TitleBar.TitlePrimitive.RightToLeft = false;
RadTitleBar's system buttons are active while in the VSB and thus can close/minimize the VSB main form.
When the visibility property of the Minimize and Maximize system buttons in the RadtitleBar control are set to Hidden/Collapsed, they remain visible.
1. Add RadTitleBar 2. Set Image, ImageClicked and ImageHovered of RadImageButtonElement by 'Edit UI Elements' (design time). 3. Run project and hover or click image and will see that image is not shown.
To reproduce: - Add shaped form with some buttons to a DPI-aware application. - Start it on an HDPI monitor. - The form is not scaled. Workaround: protected override void OnLoad(EventArgs e) { base.OnLoad(e); Screen showScreen = Screen.FromControl(this); SizeF scale = NativeMethods.GetMonitorDpi(showScreen, NativeMethods.DpiType.Effective); var currentDpi = (int)Math.Round(scale.Width * 96f, MidpointRounding.AwayFromZero); if (scale.Width != 1) { var fi = typeof(ShapedForm).GetField("currentDpi", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic); fi.SetValue(this, currentDpi); var mi = typeof(ShapedForm).GetMethod("HandleDpiChanged", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic); mi.Invoke(this, null); } }
Please run the attached sample project.
1. Click the Child Form button.
2. Maximize the MDI child form either by clicking the maximized button or by double-clicking the title bar.
You will notice that there is an empty space between the docked command bar and the top edge of the form.
I'm having an issue when using the RadMarkupDialog control where the & symbol is not being saved correctly. All other symbols seem to be encoded which is causing a problem.
Using the control, if I put the following in the markup section:
<span style="font-size: 16pt">Test of the & symbol. <br />Test of the < symbol.</span>
When I click the Apply button and close the dialog, grabbing the Value (Dialog.value) gives me the following:
<html><span style="font-size: 16pt">Test of the & symbol. <br />Test of the < symbol.</span></html>