Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Templates/src/templates/maui-mobile/MauiApp.1.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
<!--#if (IncludeSampleContent) -->
<ItemGroup>
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.3.2" />
<PackageReference Include="CommunityToolkit.Maui" Version="9.1.0" />
<PackageReference Include="CommunityToolkit.Maui" Version="11.1.0" />
<PackageReference Include="Microsoft.Data.Sqlite.Core" Version="8.0.8" />
<PackageReference Include="SQLitePCLRaw.bundle_green" Version="2.1.10" />
<PackageReference Include="Syncfusion.Maui.Toolkit" Version="1.0.4" />
Expand Down
4 changes: 4 additions & 0 deletions src/Templates/src/templates/maui-mobile/Pages/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,20 @@
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
x:Class="MauiApp._1.Pages.MainPage"
x:DataType="pageModels:MainPageModel"
x:Name="OverviewPage"
Title="{Binding Today}">

<ContentPage.Behaviors>
<toolkit:EventToCommandBehavior
BindingContext="{Binding Path=BindingContext, Source={x:Reference OverviewPage}, x:DataType=ContentPage}"
EventName="NavigatedTo"
Command="{Binding NavigatedToCommand}" />
<toolkit:EventToCommandBehavior
BindingContext="{Binding Path=BindingContext, Source={x:Reference OverviewPage}, x:DataType=ContentPage}"
EventName="NavigatedFrom"
Command="{Binding NavigatedFromCommand}" />
<toolkit:EventToCommandBehavior
BindingContext="{Binding Path=BindingContext, Source={x:Reference OverviewPage}, x:DataType=ContentPage}"
EventName="Appearing"
Command="{Binding AppearingCommand}" />
</ContentPage.Behaviors>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
x:DataType="pageModels:ManageMetaPageModel"
x:Class="MauiApp._1.Pages.ManageMetaPage"
x:Name="MetaPage"
Title="Categories and Tags">


<ContentPage.Behaviors>
<toolkit:EventToCommandBehavior
BindingContext="{Binding Path=BindingContext, Source={x:Reference MetaPage}, x:DataType=ContentPage}"
EventName="Appearing"
Command="{Binding AppearingCommand}" />
</ContentPage.Behaviors>
Expand Down Expand Up @@ -61,7 +62,7 @@
<Entry.Behaviors>
<toolkit:TextValidationBehavior
InvalidStyle="{StaticResource InvalidEntryStyle}"
Flags="ValidateOnUnfocusing"
Flags="ValidateOnUnfocused"
RegexPattern="^#(?:[0-9a-fA-F]{3}){1,2}$" />
</Entry.Behaviors>
</Entry>
Expand Down Expand Up @@ -103,7 +104,7 @@
<Entry.Behaviors>
<toolkit:TextValidationBehavior
InvalidStyle="{StaticResource InvalidEntryStyle}"
Flags="ValidateOnUnfocusing"
Flags="ValidateOnUnfocused"
RegexPattern="^#(?:[0-9a-fA-F]{3}){1,2}$" />
</Entry.Behaviors>
</Entry>
Expand Down
Loading