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
Copy file name to clipboardExpand all lines: doc/articles/MvuxGallery/How-To-XamlNavigation.md
+60-1Lines changed: 60 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,11 +18,70 @@ Grundlegend enthält es die gleichen Bausteine wie man es von einer Navigation m
18
18
19
19
## Voraussetzungen erfüllen
20
20
21
+
Bevor es los geht, prüft bitte mit `Uno.Check` ob eure Entwicklungs-Umgebung startklar ist. Hierzu habe ich euch eine kurze Link Sammlung zu allen dahingehenden Dokumentations-Seiten im Bereich [Getting Started](../getting-started.md) erstellt.
22
+
21
23
Solltet ihr schon eine existierende Uno Anwendung haben, prüft einfach mal in der .csproj Datei, ob ihr in der `UnoFeatures` Sammlung die Elemente `Hosting` und `Navigation` habt und fügt diese hinzu, wenn das nicht bereits der Fall sein sollte.
22
24
23
25
Des weiteren benötigt eure App.xaml.cs Datei folgende Elemente:
<!--] TODO: uncomment as soon as the docs are DocFx generated-->
28
+
```diff
29
+
using Uno.Resizetizer;
30
+
31
+
namespace DevTKSS.Uno.Samples.MvuxGallery;
32
+
public partial class App : Application
33
+
{
34
+
/// <summary>
35
+
/// Initializes the singleton application object. This is the first line of authored code
36
+
/// executed, and as such is the logical equivalent of main() or WinMain().
+ new RouteMap("", View: views.FindByViewModel<ShellModel>(),
74
+
+ Nested:
75
+
+ [
76
+
+ new ("Main", View: views.FindByViewModel<MainModel>(), IsDefault:true),
77
+
+ new ("Second", View: views.FindByViewModel<SecondModel>()),
78
+
+ ]
79
+
+ )
80
+
+ );
81
+
+ }
82
+
+ }
83
+
84
+
```
26
85
27
86
Den Namespace, den wir in einer Xaml-basierten Navigation in einer Uno Anwendung benötigen, ist `Uno.Extensions.Navigation.UI`, meist mit dem xmlns Namespace Identifikator `xmlns:uen=` eurer Seite dann vorzufinden.
0 commit comments