Workaround: set the property with code this.radListView1.ListViewElement.ViewElement.VScrollBar.MinThumbLength = 50;
How to reproduce: this.radLabel1.Font = new System.Drawing.Font("Arial", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
Workaround:
public class MyRadLabel : RadLabel
{
public override string ThemeClassName
{
get
{
return typeof(RadLabel).FullName;
}
}
protected override RadLabelElement CreateLabelElement()
{
return new MyRadLabelElement();
}
}
public class MyRadLabelElement : RadLabelElement
{
protected override Type ThemeEffectiveType
{
get
{
return typeof(RadLabelElement);
}
}
protected override void CreateChildElements()
{
base.CreateChildElements();
MyTextPrimitive textPrimitive = new MyTextPrimitive();
textPrimitive.Alignment = ContentAlignment.MiddleLeft;
textPrimitive.BindProperty(TextPrimitive.TextProperty, this, RadLabelElement.TextProperty, PropertyBindingOptions.TwoWay);
textPrimitive.BindProperty(AlignmentProperty, this, RadLabelElement.TextAlignmentProperty, PropertyBindingOptions.OneWay);
textPrimitive.SetValue(ImageAndTextLayoutPanel.IsTextPrimitiveProperty, true);
textPrimitive.AutoEllipsis = true;
textPrimitive.TextWrap = true;
ImageAndTextLayoutPanel layoutPanel = this.FindDescendant<ImageAndTextLayoutPanel>();
if (layoutPanel != null)
{
layoutPanel.Children.RemoveAt(1);
layoutPanel.Children.Add(textPrimitive);
}
}
}
public class MyTextPrimitive : TextPrimitive
{
public override Font GetScaledFont(float scale)
{
Screen screen = Screen.PrimaryScreen;
SizeF startScale = new SizeF(1.0f, 1.0f);
if (RadControl.EnableDpiScaling)
{
startScale = NativeMethods.GetMonitorDpi(screen, NativeMethods.DpiType.Effective);
}
SizeF paintScale = new SizeF(scale / startScale.Width, scale / startScale.Height);
Font font = this.Font ?? Control.DefaultFont;
string key = paintScale.ToString() + font.FontFamily.Name + font.Size + font.Style.ToString() + font.Unit.ToString() + font.GdiCharSet.ToString() + font.GdiVerticalFont.ToString();
if (this.ScaledFontsCache.ContainsKey(key))
{
return this.ScaledFontsCache[key];
}
Font scaledFont = new Font(font.FontFamily, font.Size * paintScale.Height, font.Style, font.Unit, font.GdiCharSet, font.GdiVerticalFont);
this.ScaledFontsCache.Add(key, scaledFont);
return scaledFont;
}
}
Is it possible to add a Hamburger Menu to the Telerik UI for WinForms? like: https://docs.microsoft.com/en-us/windows/uwp/design/controls-and-patterns/navigationview
How to reproduce: store an image on the file and try to use it this way string path = @"D:\img.png"; this.radLabel1.Text = "<html><img src=" + path + "><b>Test</b></html>"; Workaround: if possible embed the image in the assembly and use it as a resource this.radLabel1.Text = "<html><img src=res:_1133506_RadLabelLinkHtmlLike.img.png><b>Test</b></html>";
Poor support for custom DPI scaling in Windows 7 - Windows 10.
There no null checking, and there is dirty hacks:
CASE 1: RadPageViewElement
public override void DpiScaleChanged(SizeF scaleFactor)
{
base.DpiScaleChanged(scaleFactor);
if (this.Owner != null && this.Owner.Pages.Count > 1)
{
this.Owner.SuspendEvents();
if (this.Owner.SelectedPage == this.Owner.Pages[0])
{
this.Owner.SelectedPage = this.Owner.Pages[1]; // NO NULL CHECKING
this.Owner.SelectedPage = this.Owner.Pages[0]; // DIRTY HACK: users can have their own processing OnSelectedPage, which is unexpected here!
}
else
{
RadPageViewPage page = this.Owner.SelectedPage;
this.Owner.SelectedPage = this.Owner.Pages[0];
this.Owner.SelectedPage = page;
}
CASE 2:
public partial class RadForm1 : Telerik.WinControls.UI.RadForm
{
public RadForm1()
{
InitializeComponent();
radWizard1.Pages.Add(new WizardPage()); // when user has 100% Dpi, this code works normally. But if user has custom scale DPI (e.g. 101%), user received System.NullReferenceException: 'Object reference not set to an instance of an object.' (because because again there is no verification for ContentArea = null)...
}
}
Please improve the work with custom DPI scaling!
I have a winforms controls product with specific license of 2017.1.221.40 and I need to know what themes are available for this specific version and how to implement it, since I need to know if I can apply the them "VisualStudio2012DarkTheme" and how do it.
I'd like to represent, update and delete WinForms Scheduler events in a Kendo MVC Web application and visa versa. Some kind of data converter would be appreciated.
Currently the only way to have this work on a windows 10 machine with vs2017 is to install a depreciated version of Build tools 2015. Which causes some conflicts with vs2017 backwards compatibility.
I have literally for weeks now, tried to find a single theme that works properly with High Dpi scaling, including the new material themes. None of them work, I mean not even to the point that, it's just a few quirks. I can't deploy applications, without extensive code to modify the way the controls look. My request, is take something like material (preferably with a professional color scheme), or telerik touch, make the need adjustments to make them HiDpi, and then EXTENSIVELY test it, to insure it works.
Use attached project to reproduce. Workaround: Use attached theme.
Implement a facility to convert a RadDocument to a RadPrintDocument (or something that can be handed to a RadPrintPreview) to avoid having to load up a RadRichTextEditor just to print a code-generated document.
This request is for control similar to RadImageEditor in ASP.NET AJAX suite: http://demos.telerik.com/aspnet-ajax/imageeditor/examples/overview/defaultcs.aspx
Workaround: use a bigger image
Me.radCheckBox1.ButtonElement.CheckMarkPrimitive.CheckElement.ShouldPaint = False
Dim dpi As Point = NativeMethods.GetSystemDpi()
Dim scale As Integer = dpi.X
If scale >= 300 Then
Me.radCheckBox1.ButtonElement.CheckMarkPrimitive.Image = Image.FromFile("..\..\check-mark.png")
ElseIf scale >= 200 Then
'...
Else
'...
End If
Similar to Material Themes Blending (https://docs.telerik.com/devtools/winforms/tools/visual-style-builder/working-with-visual-style-builder/material-themes-blending) provide an easy way to change the palette for the Fluent themes.
Hello, i have a suggestion for WinControls, please add a comfortable language Support without methode override. Please create a property field Pull-Down Menü in every Control where Developer can change the language of the control in e.g. englisch, spain, german and so on. The translation could be done very quickly with the help of the Telerik community and their experience.
How to reproduce: check the attached project and compare the font size of the two labels. Also when the form is moved from a screen with HDPI to a standard screen with DPI=96 the font does change.
To reproduce: - Open Theme Viewer, go ListView and sort it. - Change the theme to Fluent. Workaround: - Set the visibility of the item in the theme (see attached).
Do you have a version which can support Microsoft .NET Framework 2.0? I run a sample application TelerikUIforWinFormsDemoAppsHub\BugTracker asking for Microsoft .NET Framework 4.0. We had some PC still running Microsoft .NET Framework 2.0.