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: README.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,22 @@ public partial class App : TinyApplication
28
28
}
29
29
```
30
30
31
+
If you want to run code asynchronous when the app starts you can override the **Initialize** method of **TinyApplication**.
32
+
33
+
```csharp
34
+
publicApp()
35
+
{
36
+
InitializeComponent();
37
+
38
+
MainPage=newAppShell();
39
+
}
40
+
41
+
protectedoverrideasyncTaskInitialize()
42
+
{
43
+
44
+
}
45
+
```
46
+
31
47
### TinyView
32
48
TinyMvvm has a base view called **TinyView** that you need to use if you want to use the overides from **TinyViewModel**. TinyView has ContentPage as it's base class so you can use it exactly as a normal ContentPage.
0 commit comments