Completed
Last Updated: 03 Jan 2018 06:26 by ADMIN
ADMIN
Hristo
Created on: 11 Dec 2017 14:23
Category: Editors
Type: Bug Report
2
FIX. RadTextBoxControl - the null text set to the control is not correctly rendered when the scaling is increased to 200%
How to reproduce: run the attached project on a system with an increased scaling - 200%

Workaround: the null text needs to be set at run-time and after subscribe the control to the CreateTextBlock event

public class MyTextBlock : TextBlockElement
{
    public override void DpiScaleChanged(SizeF scaleFactor)
    {
        base.DpiScaleChanged(scaleFactor);
        this.ResetLayoutCore();
    }
} 

this.radTextBoxControl1.TextBoxElement.CreateTextBlock += this.RadTextBoxControl1_CreateTextBlock; 
private void RadTextBoxControl1_CreateTextBlock(object sender, CreateTextBlockEventArgs e)
{
    e.TextBlock = new MyTextBlock();
} 
0 comments