This repository has been archived by the owner on Nov 4, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from vniehues/develop
update to RC3, fix for AmbiguousRouteException, new interfaces & methods for navigation, testing
- Loading branch information
Showing
22 changed files
with
225 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System; | ||
using CommunityToolkit.Mvvm.Input; | ||
using mavvm; | ||
|
||
namespace mavvmApp.ViewModels | ||
{ | ||
public partial class ThirdPageViewModel : BindableBase, INavigateToAware | ||
{ | ||
|
||
[ICommand] | ||
async void GoBack() | ||
{ | ||
await BaseMethods.GoBack(parameters: new NavigationParameters {{"testKey1","testValue1" }}); | ||
} | ||
|
||
public void NavigatedTo(NavigationParameters parameters) | ||
{ | ||
Console.WriteLine(parameters); | ||
} | ||
|
||
public ThirdPageViewModel() | ||
{ | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
using System; | ||
using Microsoft.Maui.Controls; | ||
using Microsoft.Maui.Essentials; | ||
|
||
namespace mavvmApp.Views | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:viewmodels="clr-namespace:mavvmApp.ViewModels" | ||
x:Class="mavvmApp.Views.ThirdPage" | ||
Title="{Binding Title}" | ||
BackgroundColor="{DynamicResource SecondaryColor}" | ||
Shell.PresentationMode="Animated"> | ||
|
||
|
||
<ScrollView> | ||
<Grid RowSpacing="25" RowDefinitions="Auto,Auto,Auto,Auto,*" | ||
Padding="{OnPlatform iOS='30,60,30,30', Default='30'}"> | ||
|
||
<Label | ||
Text="Hello, World!" | ||
Grid.Row="0" | ||
SemanticProperties.HeadingLevel="Level1" | ||
FontSize="32" | ||
HorizontalOptions="Center" /> | ||
|
||
<Label | ||
Text="Welcome to .NET Multi-platform App UI" | ||
Grid.Row="1" | ||
SemanticProperties.HeadingLevel="Level1" | ||
SemanticProperties.Description="Welcome to dot net Multi platform App U I" | ||
FontSize="18" | ||
HorizontalOptions="Center" /> | ||
|
||
<Label | ||
Text="{Binding Count, StringFormat='Current count: {0}'}" | ||
Grid.Row="2" | ||
FontSize="18" | ||
FontAttributes="Bold" | ||
HorizontalOptions="Center" /> | ||
|
||
<Button Text="GoBack" | ||
Grid.Row="2" Command="{Binding GoBackCommand}"/> | ||
|
||
<Image Grid.Row="4" | ||
Source="dotnet_bot.png" | ||
SemanticProperties.Description="Cute dot net bot waving hi to you!" | ||
WidthRequest="250" | ||
HeightRequest="310" | ||
HorizontalOptions="Center" /> | ||
|
||
</Grid> | ||
</ScrollView> | ||
</ContentPage> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System; | ||
using mavvmApp.ViewModels; | ||
using Microsoft.Maui.Controls; | ||
|
||
namespace mavvmApp.Views | ||
{ | ||
public partial class ThirdPage : ContentPage | ||
{ | ||
public ThirdPage() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace mavvm | ||
{ | ||
public class NavigationParameters : Dictionary<string,object> | ||
{ | ||
public NavigationParameters() | ||
{ | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using System; | ||
namespace mavvm | ||
{ | ||
public interface INavigateBackToAware | ||
{ | ||
void NavigatedBackTo(NavigationParameters parameters); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using System; | ||
namespace mavvm | ||
{ | ||
public interface INavigateToAware | ||
{ | ||
void NavigatedTo(NavigationParameters parameters); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using System; | ||
namespace mavvm | ||
{ | ||
public interface INavigationAware : INavigateToAware, INavigateBackToAware | ||
{ | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
using System; | ||
namespace mavvm.Interfaces | ||
namespace mavvm | ||
{ | ||
public interface IPageAware | ||
{ | ||
|
Oops, something went wrong.