Thanks @alexsmid and @neo - I worked out a similar solution, see: Menus and pages - #3 by pharnos
Basically what you did, @neo but I’ve hidden the appbar that -NavigationLayout
/ -LoadNavigation
creates, and shown my custom appbar…
In the $Navigation script block that is loaded for each page I set an Id of ‘CustomisedAppBar’
$Navigation = {
New-UDAppBar -Id 'CustomisedAppBar' -DisableThemeToggle -Children {
...
...
On my New-UDDashboard I’ve added -Stylesheets @("/assets/style_changes.css"
New-UDDashboard -Title "Dashboard Nav Test" -Theme $Theme -Pages $Pages -Stylesheets @("/assets/style_changes.css")
In this css file I’ve hidden the header.MuiAppBar-root element.class and made visible only my New-UDAppBar
with the Id of ‘CustomisedAppBar’
header.MuiAppBar-root {
visibility: hidden !important;
}
#CustomisedAppBar {
visibility: visible !important;
}
Setting the z-index may be a better solution though! Thanks!