.Net Maui StatusBar Control

Al 21 Reputation points
2022-06-24T08:10:36.13+00:00

Hi

I have noticed that .Net Maui does not have a control equivalent to the WPF StatusBar control. What would be the best way to achieve this?

I imagine that a row in a grid layout could be suitably styled, but I was wondering if there was a better approach.

Cheers

Al

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,671 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,868 questions
0 comments No comments
{count} votes

Accepted answer
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,651 Reputation points Microsoft Vendor
    2022-06-27T07:49:02.437+00:00

    Hello,​

    You can use Grid layout to achieve it.
    If you want to add Border effect. You can use Frame, HorizontalStackLayout and BoxView to achieve it.
    https://learn.microsoft.com/en-us/dotnet/maui/user-interface/controls/frame

    For example, I add Gray border Frame, then add HorizontalStackLayout in it, if you want to result like delimiter, please add BoxView set width and VerticalOptions, you can refer to following code.

       <Frame   
                   BorderColor="Gray"  
                   CornerRadius="5"  
                   Padding="8">  
                   <HorizontalStackLayout>  
                       <Label Text="Test1"  
                              FontSize="14"  
                              FontAttributes="Bold" />   
                       <BoxView Color="Gray"  
                                WidthRequest="2"  
                                VerticalOptions="Fill"   
                                Margin="5,0,5,0"/>  
                       <Label Text="Test2"/>  
                   </HorizontalStackLayout>  
               </Frame>  
    

    You can make a feature request about this need in MAUI Github page: https://github.com/dotnet/maui/issues/new/choose

    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