-
Notifications
You must be signed in to change notification settings - Fork 13
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 #108 from MykhailoDav/adding_appShell
Adding AppShell
- Loading branch information
Showing
19 changed files
with
322 additions
and
144 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,35 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<Shell | ||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
x:Class="SampleApp.AppShell" | ||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit" | ||
Title="Calendar" | ||
BackgroundColor="{toolkit:AppThemeResource ShellColor}" | ||
FlyoutBackgroundColor="{toolkit:AppThemeResource BackgroundColorfullPageColor}" | ||
xmlns:local="clr-namespace:SampleApp.Views;assembly=SampleApp" | ||
Shell.TitleColor="{toolkit:AppThemeResource TextColor}" | ||
Shell.FlyoutBehavior="Disabled"> | ||
<Shell.Resources> | ||
<ResourceDictionary> | ||
<toolkit:AppThemeColor | ||
x:Key="ShellColor" | ||
Dark="#FF243138" | ||
Light="#FFE2E3D4"/> | ||
</ResourceDictionary> | ||
</Shell.Resources> | ||
<TabBar> | ||
<Tab Icon="calendar" | ||
Title="MainPage"> | ||
<ShellContent | ||
ContentTemplate="{DataTemplate local:MainPage}" | ||
Route="MainPage"/> | ||
</Tab> | ||
<Tab Icon="settings" | ||
Title="Settings"> | ||
<ShellContent | ||
ContentTemplate="{DataTemplate local:UserSettingPage}" | ||
Route="UserSettingPage"/> | ||
</Tab> | ||
</TabBar> | ||
</Shell> |
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,21 @@ | ||
using SampleApp.Views; | ||
|
||
namespace SampleApp; | ||
|
||
public partial class AppShell : Shell | ||
{ | ||
public AppShell() | ||
{ | ||
InitializeComponent(); | ||
|
||
Routing.RegisterRoute(nameof(UserSettingPage), typeof(UserSettingPage)); | ||
Routing.RegisterRoute(nameof(SimplePage), typeof(SimplePage)); | ||
Routing.RegisterRoute(nameof(WeekendCalendarPage), typeof(WeekendCalendarPage)); | ||
Routing.RegisterRoute(nameof(MultiSelectionPage), typeof(MultiSelectionPage)); | ||
Routing.RegisterRoute(nameof(AdvancedPage), typeof(AdvancedPage)); | ||
Routing.RegisterRoute(nameof(RangeSelectionPage), typeof(RangeSelectionPage)); | ||
Routing.RegisterRoute(nameof(WeekViewPage), typeof(WeekViewPage)); | ||
Routing.RegisterRoute(nameof(TwoWeekViewPage), typeof(TwoWeekViewPage)); | ||
Routing.RegisterRoute(nameof(Windows11CalendarPage), typeof(Windows11CalendarPage)); | ||
} | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.