-
-
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.
- Loading branch information
1 parent
e7ec394
commit 23c6231
Showing
41 changed files
with
1,782 additions
and
0 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.
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,15 @@ | ||
<?xml version = "1.0" encoding = "UTF-8" ?> | ||
<Application | ||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:local="clr-namespace:MauiPane.Gallery" | ||
x:Class="MauiPane.Gallery.App"> | ||
<Application.Resources> | ||
<ResourceDictionary> | ||
<ResourceDictionary.MergedDictionaries> | ||
<ResourceDictionary Source="Resources/Styles/Colors.xaml" /> | ||
<ResourceDictionary Source="Resources/Styles/Styles.xaml" /> | ||
</ResourceDictionary.MergedDictionaries> | ||
</ResourceDictionary> | ||
</Application.Resources> | ||
</Application> |
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,12 @@ | ||
namespace MauiPane.Gallery | ||
{ | ||
public partial class App : Application | ||
{ | ||
public App() | ||
{ | ||
InitializeComponent(); | ||
|
||
MainPage = new AppShell(); | ||
} | ||
} | ||
} |
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,177 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<Shell | ||
x:Class="MauiPane.Gallery.AppShell" | ||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:local="clr-namespace:MauiPane.Gallery" | ||
xmlns:mauipane="clr-namespace:MauiPane;assembly=MauiPane" | ||
Shell.FlyoutBehavior="Disabled" | ||
Title="MauiPane"> | ||
<Shell.Resources> | ||
<ResourceDictionary> | ||
|
||
<Style TargetType="BoxView"> | ||
<Setter Property="HeightRequest" Value="100" /> | ||
<Setter Property="WidthRequest" Value="100" /> | ||
</Style> | ||
|
||
</ResourceDictionary> | ||
</Shell.Resources> | ||
<TabBar> | ||
<!-- DOCKLAYOUT --> | ||
<Tab | ||
Title="Dock"> | ||
<ShellContent | ||
Title="Default"> | ||
<ContentPage | ||
Title="Dock Layout"> | ||
<mauipane:DockLayout> | ||
<Button mauipane:DockLayout.Dock="Top" Text="Top" HeightRequest="50"/> | ||
<Button mauipane:DockLayout.Dock="Bottom" Text="Bottom" HeightRequest="50"/> | ||
<Button mauipane:DockLayout.Dock="Left" Text="Left" WidthRequest="50" /> | ||
<Button mauipane:DockLayout.Dock="Right" Text="Right" WidthRequest="50" /> | ||
<Button Text="Center" /> | ||
</mauipane:DockLayout> | ||
</ContentPage> | ||
</ShellContent> | ||
<ShellContent | ||
Title="LastChildFill"> | ||
<ContentPage | ||
Title="Dock Layout"> | ||
<mauipane:DockLayout | ||
LastChildFill="False"> | ||
<Button mauipane:DockLayout.Dock="Top" Text="Top" HeightRequest="50"/> | ||
<Button mauipane:DockLayout.Dock="Bottom" Text="Bottom" HeightRequest="50"/> | ||
<Button mauipane:DockLayout.Dock="Left" Text="Left" WidthRequest="60"/> | ||
<Button mauipane:DockLayout.Dock="Left" Text="Left" WidthRequest="60"/> | ||
<Button mauipane:DockLayout.Dock="Right" Text="Right" WidthRequest="80"/> | ||
<Button mauipane:DockLayout.Dock="Right" Text="Right" WidthRequest="80"/> | ||
</mauipane:DockLayout> | ||
</ContentPage> | ||
</ShellContent> | ||
</Tab> | ||
<!-- CIRCULARLAYOUT --> | ||
<Tab | ||
Title="Circular"> | ||
<ShellContent | ||
Title="Clockwise"> | ||
<ContentPage | ||
Title="Circular Layout"> | ||
<mauipane:CircularLayout | ||
Orientation="Clockwise"> | ||
<BoxView Color="Black" CornerRadius="6" WidthRequest="6" HeightRequest="6" /> | ||
<BoxView Color="Red" CornerRadius="12" WidthRequest="12" HeightRequest="12" mauipane:CircularLayout.Angle="0" mauipane:CircularLayout.Radius="120" /> | ||
<BoxView Color="Green" CornerRadius="12" WidthRequest="12" HeightRequest="12" mauipane:CircularLayout.Angle="10" mauipane:CircularLayout.Radius="120" /> | ||
<BoxView Color="Blue" CornerRadius="12" WidthRequest="12" HeightRequest="12" mauipane:CircularLayout.Angle="20" mauipane:CircularLayout.Radius="120" /> | ||
<BoxView Color="Yellow" CornerRadius="12" WidthRequest="12" HeightRequest="12" mauipane:CircularLayout.Angle="30" mauipane:CircularLayout.Radius="120" /> | ||
<Label Text="1" mauipane:CircularLayout.Angle="30" mauipane:CircularLayout.Radius="90" /> | ||
<Label Text="2" mauipane:CircularLayout.Angle="60" mauipane:CircularLayout.Radius="90" /> | ||
<Label Text="3" mauipane:CircularLayout.Angle="90" mauipane:CircularLayout.Radius="90" /> | ||
<Label Text="4" mauipane:CircularLayout.Angle="120" mauipane:CircularLayout.Radius="90" /> | ||
<Label Text="5" mauipane:CircularLayout.Angle="150" mauipane:CircularLayout.Radius="90" /> | ||
<Label Text="6" mauipane:CircularLayout.Angle="180" mauipane:CircularLayout.Radius="90" /> | ||
<Label Text="7" mauipane:CircularLayout.Angle="210" mauipane:CircularLayout.Radius="90" /> | ||
<Label Text="8" mauipane:CircularLayout.Angle="240" mauipane:CircularLayout.Radius="90" /> | ||
<Label Text="9" mauipane:CircularLayout.Angle="270" mauipane:CircularLayout.Radius="90" /> | ||
<Label Text="10" mauipane:CircularLayout.Angle="300" mauipane:CircularLayout.Radius="90" /> | ||
<Label Text="11" mauipane:CircularLayout.Angle="330" mauipane:CircularLayout.Radius="90" /> | ||
<Label Text="12" mauipane:CircularLayout.Angle="360" mauipane:CircularLayout.Radius="90" /> | ||
</mauipane:CircularLayout> | ||
</ContentPage> | ||
</ShellContent> | ||
<ShellContent | ||
Title="Counterclockwise"> | ||
<ContentPage | ||
Title="Circular Layout"> | ||
<mauipane:CircularLayout | ||
Orientation="Counterclockwise"> | ||
<BoxView Color="Black" CornerRadius="6" WidthRequest="6" HeightRequest="6" /> | ||
<BoxView Color="Red" CornerRadius="12" WidthRequest="12" HeightRequest="12" mauipane:CircularLayout.Angle="0" mauipane:CircularLayout.Radius="120" /> | ||
<BoxView Color="Green" CornerRadius="12" WidthRequest="12" HeightRequest="12" mauipane:CircularLayout.Angle="10" mauipane:CircularLayout.Radius="120" /> | ||
<BoxView Color="Blue" CornerRadius="12" WidthRequest="12" HeightRequest="12" mauipane:CircularLayout.Angle="20" mauipane:CircularLayout.Radius="120" /> | ||
<BoxView Color="Yellow" CornerRadius="12" WidthRequest="12" HeightRequest="12" mauipane:CircularLayout.Angle="30" mauipane:CircularLayout.Radius="120" /> | ||
<Label Text="1" mauipane:CircularLayout.Angle="30" mauipane:CircularLayout.Radius="90" /> | ||
<Label Text="2" mauipane:CircularLayout.Angle="60" mauipane:CircularLayout.Radius="90" /> | ||
<Label Text="3" mauipane:CircularLayout.Angle="90" mauipane:CircularLayout.Radius="90" /> | ||
<Label Text="4" mauipane:CircularLayout.Angle="120" mauipane:CircularLayout.Radius="90" /> | ||
<Label Text="5" mauipane:CircularLayout.Angle="150" mauipane:CircularLayout.Radius="90" /> | ||
<Label Text="6" mauipane:CircularLayout.Angle="180" mauipane:CircularLayout.Radius="90" /> | ||
<Label Text="7" mauipane:CircularLayout.Angle="210" mauipane:CircularLayout.Radius="90" /> | ||
<Label Text="8" mauipane:CircularLayout.Angle="240" mauipane:CircularLayout.Radius="90" /> | ||
<Label Text="9" mauipane:CircularLayout.Angle="270" mauipane:CircularLayout.Radius="90" /> | ||
<Label Text="10" mauipane:CircularLayout.Angle="300" mauipane:CircularLayout.Radius="90" /> | ||
<Label Text="11" mauipane:CircularLayout.Angle="330" mauipane:CircularLayout.Radius="90" /> | ||
<Label Text="12" mauipane:CircularLayout.Angle="360" mauipane:CircularLayout.Radius="90" /> | ||
</mauipane:CircularLayout> | ||
</ContentPage> | ||
</ShellContent> | ||
</Tab> | ||
<!-- UNIFORMGRID --> | ||
<Tab | ||
Icon="uniform.png" | ||
Title="UniformGrid"> | ||
<ShellContent> | ||
<ContentPage | ||
Title="UniformGrid"> | ||
<mauipane:UniformGrid> | ||
<BoxView Color="Red" /> | ||
<BoxView Color="Yellow" /> | ||
<BoxView Color="Orange" /> | ||
<BoxView Color="Purple" /> | ||
<BoxView Color="Blue" /> | ||
<BoxView Color="Green" /> | ||
<BoxView Color="LightGreen" /> | ||
<BoxView Color="Gray" /> | ||
<BoxView Color="Pink" /> | ||
</mauipane:UniformGrid> | ||
</ContentPage> | ||
</ShellContent> | ||
</Tab> | ||
<!-- WRAPLAYOUT --> | ||
<Tab | ||
Icon="wrap.png" | ||
Title="Wrap"> | ||
<ShellContent | ||
Title="Vertical"> | ||
<ContentPage | ||
Title="Wrap Layout"> | ||
<mauipane:WrapLayout | ||
Orientation="Vertical" | ||
Spacing="6" | ||
HorizontalOptions="Center"> | ||
<BoxView Color="Red" /> | ||
<BoxView Color="Yellow" /> | ||
<BoxView Color="Orange" /> | ||
<BoxView Color="Purple" /> | ||
<BoxView Color="Blue" /> | ||
<BoxView Color="Green" /> | ||
<BoxView Color="LightGreen" /> | ||
<BoxView Color="Gray" /> | ||
<BoxView Color="Pink" /> | ||
</mauipane:WrapLayout> | ||
</ContentPage> | ||
</ShellContent> | ||
<ShellContent | ||
Title="Horizontal"> | ||
<ContentPage | ||
Title="Wrap Layout"> | ||
<mauipane:WrapLayout | ||
Orientation="Horizontal" | ||
Spacing="6" | ||
HorizontalOptions="Center"> | ||
<BoxView Color="Red" /> | ||
<BoxView Color="Yellow" /> | ||
<BoxView Color="Orange" /> | ||
<BoxView Color="Purple" /> | ||
<BoxView Color="Blue" /> | ||
<BoxView Color="Green" /> | ||
<BoxView Color="LightGreen" /> | ||
<BoxView Color="Gray" /> | ||
<BoxView Color="Pink" /> | ||
</mauipane:WrapLayout> | ||
</ContentPage> | ||
</ShellContent> | ||
</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,10 @@ | ||
namespace MauiPane.Gallery | ||
{ | ||
public partial class AppShell : Shell | ||
{ | ||
public AppShell() | ||
{ | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>net6.0-android;net6.0-ios;net6.0-maccatalyst</TargetFrameworks> | ||
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net6.0-windows10.0.19041.0</TargetFrameworks> | ||
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET --> | ||
<!-- <TargetFrameworks>$(TargetFrameworks);net6.0-tizen</TargetFrameworks> --> | ||
<OutputType>Exe</OutputType> | ||
<RootNamespace>MauiPane.Gallery</RootNamespace> | ||
<UseMaui>true</UseMaui> | ||
<SingleProject>true</SingleProject> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
|
||
<!-- Display name --> | ||
<ApplicationTitle>MauiPane.Gallery</ApplicationTitle> | ||
|
||
<!-- App Identifier --> | ||
<ApplicationId>com.companyname.mauipane.gallery</ApplicationId> | ||
<ApplicationIdGuid>2E7113D9-CF06-41A0-9867-C8431CC7BFCC</ApplicationIdGuid> | ||
|
||
<!-- Versions --> | ||
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion> | ||
<ApplicationVersion>1</ApplicationVersion> | ||
|
||
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">14.2</SupportedOSPlatformVersion> | ||
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">14.0</SupportedOSPlatformVersion> | ||
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion> | ||
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion> | ||
<TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion> | ||
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<!-- App Icon --> | ||
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" /> | ||
|
||
<!-- Splash Screen --> | ||
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" /> | ||
|
||
<!-- Images --> | ||
<MauiImage Include="Resources\Images\*" /> | ||
<MauiImage Update="Resources\Images\dotnet_bot.svg" BaseSize="168,208" /> | ||
|
||
<!-- Custom Fonts --> | ||
<MauiFont Include="Resources\Fonts\*" /> | ||
|
||
<!-- Raw Assets (also remove the "Resources\Raw" prefix) --> | ||
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\MauiPane\MauiPane.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
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,17 @@ | ||
using MauiPane.Hosting; | ||
|
||
namespace MauiPane.Gallery | ||
{ | ||
public static class MauiProgram | ||
{ | ||
public static MauiApp CreateMauiApp() | ||
{ | ||
var builder = MauiApp.CreateBuilder(); | ||
builder | ||
.UseMauiApp<App>() | ||
.ConfigureMauiPane(); | ||
|
||
return builder.Build(); | ||
} | ||
} | ||
} |
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,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<application android:allowBackup="true" android:icon="@mipmap/appicon" android:roundIcon="@mipmap/appicon_round" android:supportsRtl="true"></application> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
</manifest> |
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,11 @@ | ||
using Android.App; | ||
using Android.Content.PM; | ||
using Android.OS; | ||
|
||
namespace MauiPane.Gallery | ||
{ | ||
[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)] | ||
public class MainActivity : MauiAppCompatActivity | ||
{ | ||
} | ||
} |
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,16 @@ | ||
using Android.App; | ||
using Android.Runtime; | ||
|
||
namespace MauiPane.Gallery | ||
{ | ||
[Application] | ||
public class MainApplication : MauiApplication | ||
{ | ||
public MainApplication(IntPtr handle, JniHandleOwnership ownership) | ||
: base(handle, ownership) | ||
{ | ||
} | ||
|
||
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/MauiPane.Gallery/Platforms/Android/Resources/values/colors.xml
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,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="colorPrimary">#512BD4</color> | ||
<color name="colorPrimaryDark">#2B0B98</color> | ||
<color name="colorAccent">#2B0B98</color> | ||
</resources> |
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,10 @@ | ||
using Foundation; | ||
|
||
namespace MauiPane.Gallery | ||
{ | ||
[Register("AppDelegate")] | ||
public class AppDelegate : MauiUIApplicationDelegate | ||
{ | ||
protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); | ||
} | ||
} |
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,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>UIDeviceFamily</key> | ||
<array> | ||
<integer>1</integer> | ||
<integer>2</integer> | ||
</array> | ||
<key>UIRequiredDeviceCapabilities</key> | ||
<array> | ||
<string>arm64</string> | ||
</array> | ||
<key>UISupportedInterfaceOrientations</key> | ||
<array> | ||
<string>UIInterfaceOrientationPortrait</string> | ||
<string>UIInterfaceOrientationLandscapeLeft</string> | ||
<string>UIInterfaceOrientationLandscapeRight</string> | ||
</array> | ||
<key>UISupportedInterfaceOrientations~ipad</key> | ||
<array> | ||
<string>UIInterfaceOrientationPortrait</string> | ||
<string>UIInterfaceOrientationPortraitUpsideDown</string> | ||
<string>UIInterfaceOrientationLandscapeLeft</string> | ||
<string>UIInterfaceOrientationLandscapeRight</string> | ||
</array> | ||
<key>XSAppIconAssets</key> | ||
<string>Assets.xcassets/appicon.appiconset</string> | ||
</dict> | ||
</plist> |
Oops, something went wrong.