Unplanned
Last Updated: 09 Feb 2024 10:07 by ADMIN
erwin
Created on: 09 Feb 2024 10:00
Category: DesktopAlert
Type: Bug Report
1
RadDesktopAlert: Popup size is not correct when in high dpi
With 2024 R1, desktop alert does no longer scale to show its contents when in high dpi mode.
1 comment
ADMIN
Nadya | Tech Support Engineer
Posted on: 09 Feb 2024 10:07

Hello, Erwin,

You can use the following workaround:

private void Popup_PopupOpening(object sender, CancelEventArgs args)
 {
     var popup = sender as DesktopAlertPopup;
     SizeF dpiScale = NativeMethods.GetMonitorDpi(Screen.FromPoint(popup.Location), NativeMethods.DpiType.Effective);
     popup.Scale(dpiScale);

     Size popupSize = popup.Size;

     if (popup.LastShowDpiScaleFactor.IsEmpty)
     {
         popupSize = TelerikDpiHelper.ScaleSize(popupSize, dpiScale);
     }
     popup.Size = popupSize;
 }

Regards,
Nadya | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.