Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scale property is not working properly in certain controls like ToolTip, Flyout etc. #4830

Open
Ajith-GS opened this issue Oct 25, 2024 · 0 comments

Comments

@Ajith-GS
Copy link

Ajith-GS commented Oct 25, 2024

Describe the bug

If the Scale property is applied to a parent control of a popup, the popup does not adjust the size. When applying the transform/scale property to the popup, the popup becomes double scaled. This issue is found in ToolTip, Flyout etc.
If scaling is applied to the Combo Box, the drop-down popup is scaled but its alignment is not properly.

Steps to reproduce the bug

Sample project simulating the above scenario is attached (TestApp.zip).
TestApp.zip

  1. Open the Test Application solution in Visual Studio 2022
  2. Rebuild in Debug mode
  3. In TestApp, the Scale property is applied to parent control, then verify the controls are scaled except ToolTip, Flyout, CalendarView.
  4. Apply Scale to the ToolTip control.
  5. Verify the ToolTip is double scaled.

Expected behavior

No response

Screenshots

• Scale property is applied to parent control, the parent control is scaled according to the scaled value, But the popup is not scaled.
Image

• Scale Property is applied to ToolTip, the popup become double scaled.
Image

• Scale property is applied to parent control, the parent control is scaled according to the scaled value, But the Flyout is not scaled.
Image

• Scale property is applied to the Combo Box, Both Combo Box and drop-down popup is scaled but its alignment is not proper.
Image

• Scale property is applied to CalendarDatePicker control, the parent control is scaled according to the scaled value, But the popup is not scaled.
Image

NuGet package version

Windows App SDK 1.6.1: 1.6.240923002

Packaging type

Packaged (MSIX), Unpackaged

Windows version

Windows 10 version 22H2 (19045, 2022 Update)

IDE

Visual Studio 2022

Additional context

For the behavior mentioned above,
Is this the proper way to apply the Scale property to Xaml control?
Is there any solution or workaround to solve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants