Progress bar show look like intermediate = true

Dani_S 3,336 Reputation points
2023-04-17T08:01:22.16+00:00

Hi, How I config Progress bar show look like intermediate = true using MVVM? Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,231 questions
{count} votes

Accepted answer
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 72,251 Reputation points Microsoft Vendor
    2023-04-19T05:39:51.0633333+00:00

    Hello,

    Progressbar do not have the effect in MAUI, please add a feature request in the MAUI GitHub page.

    Or you can use Gird and add borders in it. Then you can control the progress by setting background color. Here is demo code.

        <Frame BorderColor="Gray">
            <Grid HeightRequest="10" x:Name="myGrid">
               <Grid ColumnSpacing="3" HeightRequest="10">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />                    
                    </Grid.ColumnDefinitions>
                    <Border StrokeThickness="0" BackgroundColor="Red" Grid.Column="0" ></Border>
                    <Border StrokeThickness="0" BackgroundColor="Red" Grid.Column="1"></Border>
                    <Border StrokeThickness="0" BackgroundColor="White" Grid.Column="2"></Border>               
                </Grid>
           </Grid>
        </Frame>
    

    Best Regards,

    Leon Lu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful