Skip to content

Clarify fit behavior #783

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

Merged
merged 1 commit into from
May 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/routes/docs/features/folder-config/+page.md
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be useful to retain the XAML style behaviour here alongside the prettier documentation
e.g.: Fill: The image is stretched...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is of much use.

Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ Files_BackgroundOpacity=0.4

The `Files_BackgroundFit` property accepts values between `0` and `3`, corresponding to the behaviors listed in the table below.

| Value | Behavior |
|-------|----------------|
| 0 | Fill |
| 1 | None |
| 2 | Uniform |
| 3 | UniformToFill |
| Value | Behavior |
|-------|-----------------------------------------------------------------------------------------------------------------------------------|
| 0 | The image is stretched to fill the pane without keeping the aspect ratio. |
| 1 | The image is not stretched. |
| 2 | The image is stretched so that the whole image is visible and the aspect ratio is preserved. There may be unfilled space. |
| 3 | The image is stretched so that the image fills the pane and the aspect ratio is preserved. Parts of the image may not be visible. |

### Vertical alignment

Expand All @@ -62,4 +62,4 @@ The `Files_BackgroundHorizontalAlignment` property accepts values between `0` an
| 0 | Center |
| 1 | Left |
| 2 | Right |
| 3 | Stretch |
| 3 | Stretch |