You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+ Adding a page on top of the current one by calling INavigationStack.Push\<T> method.
99
-
+ Setting a result and pop the cuurent page by calling INavigationStack.SetResult method.
99
+
+ Adding a page on top of the current one by calling `INavigationStack.Push<T>` method.
100
+
+ Setting a result and pop the cuurent page by calling `INavigationStack.SetResult` method.
100
101
101
102
ComponentWithStack.razor
102
103
```razor
@@ -126,4 +127,151 @@ StackPageComponent.razor
126
127
}
127
128
```
128
129
130
+
## Modifying Pushed Pages
131
+
132
+
In case a name or the menu of the current page need to be updated after it was push onto the stack, it can be done through `INavigationStack.SetName` and `INavigationStack.SetMenu` methods.
133
+
134
+
```csharp
135
+
// Change the name of the current page
136
+
NavigationStack?.SetName("Page Title");
137
+
138
+
// Set a custom menu to the curret page
139
+
NavigationStack?.SetMenu(CustomMenuFragment);
140
+
```
141
+
129
142
## Customization
143
+
You can customize virtually every part of the Navigation Stack, including:
144
+
- Overall layout
145
+
- Header stack appearance
146
+
- Individual header styling
147
+
- Header separators
148
+
- Menu appearance
149
+
- Back button
150
+
151
+
152
+
To customize the Navigation Stack, pass custom RenderFragments to the appropriate parameters of the NavigationStack component:
153
+
154
+
```cshtml
155
+
<NavigationStack
156
+
BaseName="Home"
157
+
Layout="@CustomLayout"
158
+
HeaderStack="@CustomHeaderStack"
159
+
Header="@CustomHeader"
160
+
HeaderSeparator="@CustomHeaderSeparator"
161
+
Menu="@CustomMenu"
162
+
Back="@CustomBack">
163
+
<BaseContent>
164
+
<!-- Your base content here -->
165
+
</BaseContent>
166
+
</NavigationStack>
167
+
```
168
+
### Overall Layout
169
+
The layout controls the overall structure of the navigation stack:
0 commit comments