forked from AvaloniaUI/Avalonia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
But not yet implemented.
- Loading branch information
Showing
3 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
namespace Avalonia.Media | ||
{ | ||
/// <summary> | ||
/// Describes the type of scaling that can be used when scaling content. | ||
/// </summary> | ||
public enum StretchDirection | ||
{ | ||
/// <summary> | ||
/// Only scales the content upwards when the content is smaller than the available space. | ||
/// If the content is larger, no scaling downwards is done. | ||
/// </summary> | ||
UpOnly, | ||
|
||
/// <summary> | ||
/// Only scales the content downwards when the content is larger than the available space. | ||
/// If the content is smaller, no scaling upwards is done. | ||
/// </summary> | ||
DownOnly, | ||
|
||
/// <summary> | ||
/// Always stretches to fit the available space according to the stretch mode. | ||
/// </summary> | ||
Both, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters