Skip to content

can snackbar show in top of window? #2768

Closed Answered by Keboo
li-zheng-hao asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, this is possible. The location where the Snackbar appears is determined by where you place the Snackbar control within your XAML.

For example, if the root control in your Window is a DockPanel, something like this will cause the Snackbar to be placed at the top.

<Window>
  <DockPanel>
    <materialDesign:Snackbar
                        MessageQueue="{materialDesign:MessageQueue}"
                        DockPanel.Dock="Top"/>
  </DockPanel>
</Window>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@li-zheng-hao
Comment options

Answer selected by ElieTaillard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants