Hi,
our company is slowly rolling out high-DPI laptops to our users. On such devices, Windows automatically enables DPI scaling, using a value of 125% or 150%, depending on the screen's resolution. In combination with an external (unscaled) monitor, this causes our application, to appear blurry on the scaled screen.
Windows has built-in functionality to reduce the blurring, however, this only works on the main screen. If you connect a secondary screen and set that as your main screen, the application will always appear blurry on the laptop screen.
My understanding of the topic is that WPF is DPI aware - but on the system level. So it does not cope well with monitors that have different DPI settings. However, I found a tutorial on Microsoft Docs (https://docs.microsoft.com/en-gb/windows/win32/hidpi/declaring-managed-apps-dpi-aware?redirectedfrom=MSDN), hinting that it is possible to make WPF windows per-monitor DPI aware. Unfortunately, this workaround requires you to inherit your window class from their utility class.
Since all of our windows already inherit from RadWindow, I have no chance to include this without copying either their base class or RadWindow. Having RadWindow support per-monitor DPI awareness would be a great feature to have. Or is there already a way to support this?
Best Regards,
Simon Müller
Hofmann Fördertechnik GmbH
PS: Why does the first feature form in the feature request workflow (the one, where it first searches for similar requests) not let me select the control/area I am searching for like the one for private tickets? I almost submitted this request for the Area "All (Multiple Controls)" because of that.
Hi,
Please see attached project,
After use animation changed window size and use the mouse to drag to change the size of the window,
When the window size is smaller than the original size, the upper right button will be hide,
Original WPF Window no this problem, And changing size animation very Smooth then RadWIndow.
PreviewClosed event is called twice when using custom close button in DialogWindow
Hi,
There is a bug in version 2019.3.1023.45 RadWindow when I minimum and restore window from task bar
The RadWindow's size shrinks while dragging it on a monitor with high DPI scale which causes it to shake a bit. In other words, the dragging is not smooth.
This was reproduced on a monitor with DPI scale set to 175%.
This is reproducible if you set the RadWindowInteropHelper.AllowTransparency on the RadWindow control (regardless of the value - True or False).
This is more noticeable in .NetCore projects.
Environment: VS Community 2019 (16.0.3), with .NET Framework 4.8 (release version, run-time and developer pack installed), Windows 10 Pro October 2018
Telerik UI version: latest (2019.1.220.45)
When VS2019 opened, Telerik UI for WPF should have been found under the "Extension" menu --> Telerik --> Telerik UI for WPF. However, there is only "Telerik UI for WinForms" under "Telerik" now. There is neither "Telerik scenario" in the "Add New Item" window so no RadForms can be created. Manually replacing <Window> in XAML to <telerik:RadWindow> does change the appearance of the window in the designer, but the properties in the Property window does not change accordingly to RadForms but still WPF standard Form ones. Toolboxes shows current lists of Telerik UI for WPF controls and they can be correctly created (at least RadButton). "Repair" in the Progress Control Panel doesn't fix this problem.
Thanks!
The issue is reproducible when the DPI is changed at runtime(new feature introduced with Windows 10) and therefore the application is not notified for the change. In order the application to be aware of the change the user have to logout and sign in (or the application should be DPI aware).
In WPF browser application it is possible to move the focus of a focused TextBox control inside the RadWindow to the parent page with Shift+Tab keyboard combination
The default dialogs for the WPF RadWindow (Prompt, Alert, Confirm) do not seem to allow sizing of the content of the message. I have tried imbedding controls to set width and maxwidth, but I need to use a MaxWidth to prevent horizontal scrollbars. Ideally a Maxwidth parameter would be available allowing longer text message to spread out. The code below works, but I'm restricted to a narrow dialog. Dim Scroller As New ScrollViewer Dim TextBlk As New Controls.TextBlock() With Scroller .HorizontalScrollBarVisibility = ScrollBarVisibility.Disabled .VerticalScrollBarVisibility = ScrollBarVisibility.Auto If Owner IsNot Nothing Then .MaxHeight = (WPFScreen.GetScreenFromElement(Owner).WorkingArea.Height - 100) 'Do not use entire height Else .MaxHeight = (WPFScreen.Primary.WorkingArea.Height - 300) 'Do not use entire height End If With TextBlk .Margin = New Thickness(10) .TextWrapping = TextWrapping.Wrap .Text = Message 'We seem to be stuck with a fixed width available for our text. 'If this is increased a horizontal scrollbar appears. .MaxWidth = 230 End With .Content = TextBlk 'Put textblock in scroller End With Dim RadDialog As New DialogParameters With RadDialog .Content = Scroller .DefaultPromptResultValue = DefaultValue 'Default prompt result .DialogStartupLocation = DialogStartupLocation .Header = Header .IconContent = IconContent If ThemeName.ToLower <> "expression_dark" Then ' *NoLoc* .ModalBackground = m_SPIBackgroundBrush End If .Owner = Owner .Closed = New EventHandler(Of WindowClosedEventArgs)(AddressOf OnPromptClosed) 'Reference handler for response '.ContentStyle '.WindowStyle End With RadWindow.Prompt(RadDialog)