xamarin-docs icon indicating copy to clipboard operation
xamarin-docs copied to clipboard

How capture the event for the ... (hamburger?) at right side of menu bar

Open gfmoore opened this issue 1 year ago • 5 comments

Hi guys, me again ;)

I'm implementing a title bar for a windows app. In AppShell.xaml

   <Shell.TitleView>  
      <Grid ColumnDefinitions="50, 200"
            ColumnSpacing="15">
        <Image Grid.Column="0"
               Source="logo.png"
               HorizontalOptions="Start"
               VerticalOptions="Center" 
               HeightRequest="40"
               WidthRequest="40"
               Margin="10,0,0,0"/>
        
        <Label Grid.Column="1"
               Text="RouteIt"
               TextColor="LightGreen"
               FontSize="30" 
               Margin="0,10,0,0"/>
      </Grid>
    </Shell.TitleView>

I notice that there are three dots at right hand side (what I used to know as a hamburger though that was three lines). How do I capture the event for that so that I can use it to display things and options. I didn't spot it in the docs, but might have missed it?

Thanks G

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

gfmoore avatar Jul 19 '22 10:07 gfmoore

image

gfmoore avatar Jul 19 '22 10:07 gfmoore

Clicking it does seem to change the height of the very top row of the windows app slightly?

gfmoore avatar Jul 19 '22 10:07 gfmoore

Ooops, seem to be in a Xamarin forms docs, I thought I was in Maui. Oh well.

gfmoore avatar Jul 19 '22 10:07 gfmoore

Sorry, I'll go to the Maui docs

gfmoore avatar Jul 19 '22 10:07 gfmoore

Actually, I can't see any equivalent in net maui and this is working apart from I can't figure out how to capture the event from the "meatballs" i.e. the three dots.

So I've re-opened, thanks.

gfmoore avatar Jul 19 '22 13:07 gfmoore