Completed
Last Updated: 23 Sep 2022 13:07 by ADMIN
Release R3 2022
david
Created on: 22 Jul 2022 08:42
Category: CheckedDropDownList
Type: Bug Report
0
RadCheckedDropDownList: Child elements are not rendered correctly on higher DPI when the control is placed in ScrollViewer

In this case, we have the following structure added dynamically.

RadPanel -> RadPanel -> RadScrollViewer -> StackLayoutPanel -> GridLayout -> RadCheckedDropDownList on each row.

When the form is moved to monitor with higher resolution, the RadCheckedDropDownList is not rendered correctly. Only the first row in the GridLayout is scaled. 

As a workaround, we could call the InvalidateMeasure and UpdateLayout methods when the Dpi is changed.

RadPanel 

RadPanel (second panel).RootElement.DpiScaleFactorChanged += RootElement_DpiScaleFactorChanged;

private void RootElement_DpiScaleFactorChanged(object sender, EventArgs e)
{
    var gridLayout = (sender as RootRadElement).FindDescendant<GridLayout>();
    gridLayout.InvalidateMeasure(true);
    gridLayout.UpdateLayout();
}

 

0 comments