Skip to content
Discussion options

You must be logged in to vote

Try this (change the namespace to something that works for you):

using Microsoft.Maui.Layouts;

namespace Example.MAUI.Controls;

#region StretchDirection

/// <summary>
/// StretchDirection - Enum which describes when scaling should be used on the content of a Viewbox. This
/// enum restricts the scaling factors along various axes.
/// </summary>
public enum StretchDirection
    {
        /// <summary>
        /// Only scales the content upwards when the content is smaller than the Viewbox.
        /// If the content is larger, no scaling downwards is done.
        /// </summary>
        UpOnly,

        /// <summary>
        /// Only scales the content downwards when the content is larg…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@Realinspirer
Comment options

@nextcodelab
Comment options

@Realinspirer
Comment options

@john-hollander
Comment options

@Realinspirer
Comment options

Answer selected by Symbai
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants