Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to vertically align items in Backstage #936

Closed
nlogozzo opened this issue May 15, 2021 · 1 comment
Closed

Add ability to vertically align items in Backstage #936

nlogozzo opened this issue May 15, 2021 · 1 comment
Assignees
Milestone

Comments

@nlogozzo
Copy link

I followed issue #896 to align some items to the bottom of the backstage below is my xaml

<ribbon:Backstage>
    <Grid>
        <ribbon:BackstageTabControl>
             <ribbon:Button Header="Open"/>
         </ribbon:BackstageTabControl>

         <ribbon:BackstageTabControl VerticalAlignment="Bottom" Margin="0,0,0,4" IsBackButtonVisible="False">
             <ribbon:BackstageTabItem Header="Settings">
                  <ui:Frame Content="{Binding SettingsPage}"/>
              </ribbon:BackstageTabItem>
              <ribbon:Button Header="Exit" Click="BtnExit_Click"/>
         </ribbon:BackstageTabControl>
    </Grid>
</ribbon:Backstage>

However it ends up looking like this:
image

How can i get it so the items stay all the way at the bottom and for the settings page to take up the entire screen. Thanks in advanced

@batzen batzen self-assigned this May 30, 2021
@batzen batzen added this to the 9.0 milestone May 30, 2021
@batzen batzen changed the title Help showing a page in backstage Add ability to vertically align items in Backstage May 30, 2021
@batzen batzen closed this as completed in 124954b May 30, 2021
@batzen
Copy link
Member

batzen commented May 30, 2021

@nlogozzo You can easily achieve this starting with version 9.0 by setting VerticalAlignment="Bottom", DockPanel.Dock="Bottom" and if you want to align multiple items at the bottom invert their order (because of how DockPanel works).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants