MahApps.Metro icon indicating copy to clipboard operation
MahApps.Metro copied to clipboard

Navigation history in Hamburger Menu

Open raggnic opened this issue 2 years ago • 0 comments

Describe the feature

I'm using HamburgerMenu in our app. Item are related so I'd need to go back and forth between pages. Is it possible to mix the MetroNavigationWindow with the HamburgerMenu?

Additional context

I think UI could go in header left of Content Title

<mah:HamburgerMenu.ContentTemplate>
                <DataTemplate DataType="{x:Type mah:HamburgerMenuItem }">
                    <Grid x:Name="TheContentGrid">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="48" />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <Border Grid.Row="0"
                                Background="#FF444444">
                            <Grid>
                                 <!-- Navigation UI -->
                                 <navigation:NavigationUI HorizontalAlignment="Left" VerticalAlignment="Center"/>
                                <TextBlock x:Name="Header"
                                       HorizontalAlignment="Center"
                                       VerticalAlignment="Center"
                                       FontSize="24"
                                       Foreground="White"
                                       Text="{Binding Label}" />
                                <status:StatusButton HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,15,0"/>
                            </Grid>
                        </Border>
                        <ContentControl x:Name="TheContent"
                                        Grid.Row="1"
                                        Focusable="False"
                                        Content="{Binding Tag}" />
                    </Grid>
                </DataTemplate>
            </mah:HamburgerMenu.ContentTemplate>

Does it sound like a feasible idea?

raggnic avatar Oct 04 '22 13:10 raggnic