Commit b561e5a
authored
Fix: Modal window sample not scaled to dpi (#2147)
<!--- Provide a general summary of your changes in the Title above -->
## Description
The Modal window example size is not scaled to dpi currently. On a high
dpi screen,the window content is not even complete. This PR fixes it,
together with sample code.
## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here. -->
## How Has This Been Tested?
<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, and the tests you ran
to -->
<!--- see how your change affects other areas of the code, etc. -->
## Screenshots (if appropriate):
Before:
<img width="370" height="285" alt="image"
src="https://github.com/user-attachments/assets/46b358a9-cf5a-49ea-887c-ba6e14e98387"
/>
After:
<img width="1170" height="885" alt="image"
src="https://github.com/user-attachments/assets/df01a450-553b-45b0-b831-64905705c202"
/>
## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all
the boxes that apply: -->
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)1 parent e045dd9 commit b561e5a
File tree
2 files changed
+11
-3
lines changed- WinUIGallery/Samples
- SampleCode/AppWindow
- SamplePages
2 files changed
+11
-3
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| |||
0 commit comments