How to reproduce:
1. Use the following code to change the default style of the document:
StyleDefinition h2 = this.radRichTextBox.Document.Style;
h2.SpanProperties.FontFamily = new System.Windows.Media.FontFamily("Microsoft Sans Serif");
h2.SpanProperties.FontSize = Unit.PointToDip(8.25f);
h2.ParagraphProperties.SpacingAfter = 0;
h2 = radRichTextBox.Document.Style;
h2.SpanProperties.FontFamily = new System.Windows.Media.FontFamily("Microsoft Sans Serif");
h2.SpanProperties.FontSize = Unit.PointToDip(8.25f);
h2.ParagraphProperties.SpacingAfter = 0;
StyleDefinition hyperlinkStyle = this.radRichTextBox.Document.StyleRepository["Hyperlink"];
hyperlinkStyle.SpanProperties.FontFamily = new System.Windows.Media.FontFamily("Microsoft Sans Serif");
hyperlinkStyle.SpanProperties.FontSize = Unit.PointToDip(8.25f);
2. Add some text to the document
3. Add a hyperlink somewhere in the middle of the text
4. Start moving the caret so it moves over the hyperlink start
Observed: When on hyperlink start/end, the caret is with bigger size than the content
Expected: The caret should be with the size of the content
Workaround: create the ThemableColor this way SetBordersCommandParameter bordersParam = new SetBordersCommandParameter(); System.Drawing.Color color = Color.Blue; System.Windows.Media.Color mediaColor = System.Windows.Media.Color.FromArgb(color.A, color.R, color.G, color.B); bordersParam.BorderColor = new ThemableColor(mediaColor);
How to reproduce: this.radTrackBar1.LabelStyle = Telerik.WinControls.UI.TrackBarLabelStyle.TopLeft; this.radTrackBar1.TickStyle = Telerik.WinControls.Enumerations.TickStyles.TopLeft; Workaround: this.radTrackBar1.LabelStyle = Telerik.WinControls.UI.TrackBarLabelStyle.TopLeft; this.radTrackBar1.TrackBarElement.BodyElement.ScaleContainerElement.BottomScaleElement.Visibility = ElementVisibility.Collapsed;
How to reproduce: test the attached project with the latest version on a Windows 7 machine, notice that the font sizes are scaled, test the project with assemblies before R2 2017 the fonts are not scaled
The issue is observed even with the RadControl.EnableDpiScaling property set to false. It would be expected that if the property was set to false, that the fonts would not be increased.
Workaround: change the fonts for each of the controls individually, the scaling can be calculated this way:
Protected Overrides Sub OnShown(e As EventArgs)
MyBase.OnShown(e)
Dim dpi = NativeMethods.GetSystemDpi()
Dim scale = dpi.X / 96.0
End Sub
To reproduce: please refer to the attached sample project and gif file. Workaround: use screentips: https://docs.telerik.com/devtools/winforms/telerik-presentation-framework/tooltips-and-screentips/screen-tips
How to reproduce: check the attached video Workaround: select a color from a different tab or use the color picker
How to reproduce: enabled High DPI scaling and create a form as an MDI child with a RadDataEntry control in it
Workaround: handle the Shown event of the MDI child and manually perform the scaling
private void radButtonElement1_Click(object sender, EventArgs e)
{
var view = new RadForm1
{
MdiParent = this
};
view.Shown += View_Shown;
view.Show();
}
private void ScaleRadControls(Control c)
{
foreach (var item in c.Controls)
{
Control control = item as Control;
if (control == null)
{
continue;
}
this.mi.Invoke(control, new object[] { this.FormElement.DpiScaleFactor, BoundsSpecified.All });
ScaleRadControls(control);
}
}
MethodInfo mi;
private void View_Shown(object sender, EventArgs e)
{
this.mi = typeof(Control).GetMethod("ScaleControl", BindingFlags.Instance | BindingFlags.NonPublic, null, new Type[] { typeof(SizeF), typeof(BoundsSpecified) }, null);
RadForm1 v = sender as RadForm1;
if (v != null)
{
ScaleRadControls(v.radDataEntry1.PanelContainer);
}
}
To reproduce: - Open the Element Hierarchy Editor and resize it.
http://demos.telerik.com/aspnet-ajax/treelist/examples/overview/defaultcs.aspx
To reproduce: 1. Add a RadContextMenu to the form. 2. Change at design time its Animation Enabled property to false. 3. Save the changes and reopen the form. 4. AnimationEnabled property value is set back to true.
- Add RadRibbonForm - Set the radRibbonBar1 RightToLeft property to YES at design time - Close the designer and open it again -> another ribbon is showing up Workaround: done set the ribbon's RightToLeft property, just set the RightToLeft property of the form itself.
One should be able to export to a stream instead to a file as well.
To reproduce: 1. Drag and drop RadPageView on the form 2. Add 2-3 pages 3. Set the ViewType to Backstage 4. Open smart tag and press Delete key to edit the Item Area Width property. After pressing the key, the RadPageView is removed from form. The issue is observed in Visual Studio 2015 only.
To reproduce: - Add RadLayoutControl to a form. - Change the Language property at design time. - You will receive the following message: There is already a command handler for the menu command '1496a755-94de-11d0-8c3f-00c04fc2aae2 : 103'. Workaround: - Reopen the designer.
To Reproduce: 1. Install Q2 2015 (version 2015.2.623) of Telerik UI Winforms on PC with Visual Studio 2008 2. Start the VS2008 and create new VB Winforms project 3. Drag and drop from toolbox any control (RadButton or RadGridView). 4. Open smart tag and click Edit UI Elements 5. Message box with error is shown Workaround: If is possible use Visual Studio 2010 or higher version.
To reproduce: - Drag RadDropDownList control on a form, expand its DropDownListElement property, and change the ItemHeight - Another case is, on a RadForm, expand FormElement>TitleBarElement and set its Visibility to Collapsed Workaround: set the desired property at runtime radDropDownList1.DropDownListElement.ItemHeight = 22;
Workaround: manually resize the editor or drag it upwards