Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: IeuanWalker/Maui.Breadcrumb
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.0.0-Preview.4
Choose a base ref
...
head repository: IeuanWalker/Maui.Breadcrumb
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 12 commits
  • 25 files changed
  • 3 contributors

Commits on Dec 29, 2022

  1. Fix state button

    IeuanWalker committed Dec 29, 2022
    Copy the full SHA
    47d169c View commit details
  2. Update README.md

    IeuanWalker authored Dec 29, 2022
    Copy the full SHA
    550428b View commit details
  3. Update README.md

    IeuanWalker authored Dec 29, 2022
    Copy the full SHA
    0e37966 View commit details

Commits on Apr 12, 2023

  1. State button update (#8)

    * update
    
    * Update README.md
    IeuanWalker authored Apr 12, 2023
    Copy the full SHA
    58f496d View commit details

Commits on Apr 19, 2024

  1. Fix: Multipling breadcrumb (#9)

    * Fix bug introduced with .net 8
    * Upgraded project to .net 8
    IeuanWalker authored Apr 19, 2024
    Copy the full SHA
    b85134a View commit details
  2. Update release.yml (#11)

    IeuanWalker authored Apr 19, 2024
    Copy the full SHA
    71bbbcb View commit details
  3. Update build.yml (#10)

    IeuanWalker authored Apr 19, 2024
    Copy the full SHA
    9ddfb96 View commit details

Commits on Jun 20, 2024

  1. Update (#12)

    IeuanWalker authored Jun 20, 2024
    Copy the full SHA
    79ff4b7 View commit details
  2. Copy the full SHA
    fb1c94a View commit details

Commits on Sep 2, 2024

  1. Added FontFamily property (#16)

    * update
    
    * update
    IeuanWalker authored Sep 2, 2024
    Copy the full SHA
    1b39cd9 View commit details

Commits on Nov 19, 2024

  1. .NET 9 (#17)

    IeuanWalker authored Nov 19, 2024
    Copy the full SHA
    45bba53 View commit details

Commits on Nov 28, 2024

  1. Copy the full SHA
    7871436 View commit details
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ on:
schedule:
- cron: '0 0 1 */3 *' # Every 3 months
env:
NET_VERSION: 7.0.101
NET_VERSION: 9.*.*
PROJECT_PATH: 'Scr/Breadcrumb.csproj'
NUGET_PATH: './**/IeuanWalker.Maui.Breadcrumb.1.0.0.nupkg'

2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ on:
types: [published]

env:
NET_VERSION: 7.0.101
NET_VERSION: 9.*.*
PROJECT_PATH: 'Scr/Breadcrumb.csproj'
NUGET_PATH: './**/IeuanWalker.Maui.Breadcrumb.${{ github.event.release.tag_name }}.nupkg'

115 changes: 52 additions & 63 deletions Demo/App.csproj
Original file line number Diff line number Diff line change
@@ -1,65 +1,54 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net7.0-android;net7.0-ios;</TargetFrameworks>
<OutputType>Exe</OutputType>
<RootNamespace>App</RootNamespace>
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
<ImplicitUsings>enable</ImplicitUsings>
<PropertyGroup>
<TargetFrameworks>net9.0-android;net9.0-ios;</TargetFrameworks>
<OutputType>Exe</OutputType>
<RootNamespace>App</RootNamespace>
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<!-- Display name -->
<ApplicationTitle>Breadcrumb demo</ApplicationTitle>

<!-- App Identifier -->
<ApplicationId>IeuanWalker.Demo.Breadcrumb</ApplicationId>
<ApplicationIdGuid>78B8245A-7B57-41B6-A3BC-DA159DC85DE2</ApplicationIdGuid>

<!-- Versions -->
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
<ApplicationVersion>1</ApplicationVersion>

<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">14.2</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</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>
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.0.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Scr\Breadcrumb.csproj" />
</ItemGroup>

<ItemGroup>
<MauiXaml Update="Resources\Styles\DarkTheme.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Resources\Styles\DefaultTheme.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Resources\Styles\LightTheme.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
</ItemGroup>

</Project>
<!-- Display name -->
<ApplicationTitle>Breadcrumb demo</ApplicationTitle>
<!-- App Identifier -->
<ApplicationId>IeuanWalker.Demo.Breadcrumb</ApplicationId>
<ApplicationIdGuid>78B8245A-7B57-41B6-A3BC-DA159DC85DE2</ApplicationIdGuid>
<!-- Versions -->
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
<ApplicationVersion>1</ApplicationVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">14.2</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>

<MauiEnableXamlCBindingWithSourceCompilation>true</MauiEnableXamlCBindingWithSourceCompilation>
</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>
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.3.2" />
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.10" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Scr\Breadcrumb.csproj" />
</ItemGroup>
<ItemGroup>
<MauiXaml Update="Resources\Styles\DarkTheme.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Resources\Styles\DefaultTheme.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
<MauiXaml Update="Resources\Styles\LightTheme.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion Demo/App.xaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8" ?>
<?xml version="1.0" encoding="UTF-8" ?>
<Application x:Class="App.App"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
4 changes: 2 additions & 2 deletions Demo/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ public partial class App : Application
public App()
{
InitializeComponent();

MainPage = new NavigationPage(new TestPage1());
}

protected override Window CreateWindow(IActivationState? activationState) => new(new NavigationPage(new TestPage1()));
}
5 changes: 3 additions & 2 deletions Demo/MauiProgram.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using StateButton;
using IeuanWalker.Maui.StateButton;

namespace App;

@@ -14,8 +14,9 @@ public static MauiApp CreateMauiApp()
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
fonts.AddFont("fa-solid-900.ttf", "FASolid900");
fonts.AddFont("Sevillana-Regular.ttf", "SevillanaRegular");
})
.ConfigureStateButton();
.UseStateButton();

return builder.Build();
}
3 changes: 2 additions & 1 deletion Demo/Pages/BasePage.xaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage x:Class="App.Pages.BasePage"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
@@ -54,6 +54,7 @@
</Grid>
<breadcrumb:Breadcrumb BreadcrumbBackgroundColor="{DynamicResource BreadcrumBackground}"
CornerRadius="6"
FontFamily="SevillanaRegular"
FontSize="Small"
LastBreadcrumbBackgroundColor="{DynamicResource BreadcrumBackground}"
LastBreadcrumbCornerRadius="6"
4 changes: 2 additions & 2 deletions Demo/Pages/BasePage.xaml.cs
Original file line number Diff line number Diff line change
@@ -32,12 +32,12 @@ void ThemeToggle_Clicked(object? sender, EventArgs e)
{
ToolbarItem? item = (ToolbarItem?)sender;

if (item is null || Application.Current is null)
if(item is null || Application.Current is null)
{
return;
}

switch (item.Text)
switch(item.Text)
{
case nameof(Theme.Light):
Application.Current.Resources = new DarkTheme();
2 changes: 1 addition & 1 deletion Demo/Pages/TestPage1.xaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8" ?>
<pages:BasePage x:Class="App.Pages.TestPage1"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
2 changes: 1 addition & 1 deletion Demo/Pages/TestPage2.xaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8" ?>
<pages:BasePage x:Class="App.Pages.TestPage2"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
2 changes: 1 addition & 1 deletion Demo/Pages/TestPage3.xaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8" ?>
<pages:BasePage x:Class="App.Pages.TestPage3"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
4 changes: 2 additions & 2 deletions Demo/Platforms/Android/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +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" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
4 changes: 2 additions & 2 deletions Demo/Resources/AppIcon/appicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions Demo/Resources/AppIcon/appiconfg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Demo/Resources/Fonts/Sevillana-Regular.ttf
Binary file not shown.
184 changes: 92 additions & 92 deletions Demo/Resources/Images/dotnet_bot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions Demo/Resources/Splash/splash.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Demo/Resources/Styles/DarkTheme.xaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8" ?>
<ResourceDictionary x:Class="App.Resources.Styles.DarkTheme"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
2 changes: 1 addition & 1 deletion Demo/Resources/Styles/DefaultTheme.xaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8" ?>
<ResourceDictionary x:Class="App.Resources.Styles.DefaultTheme"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" />
2 changes: 1 addition & 1 deletion Demo/Resources/Styles/LightTheme.xaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8" ?>
<ResourceDictionary x:Class="App.Resources.Styles.LightTheme"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
35 changes: 0 additions & 35 deletions Demo/ViewModels/TestViewModel.cs

This file was deleted.

23 changes: 14 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
| :memo: | This is a MAUI version of my [Xamarin NuGet](https://github.com/IeuanWalker/Xamarin.Forms.Breadcrumb) |
|---------------|:------------------------|

| :warning: | I havnt tested iOS <i>yet, (all should be fine though)</i> |
|---------------|:------------------------|

# Maui.Breadcrumb [![Nuget](https://img.shields.io/nuget/v/IeuanWalker.Maui.Breadcrumb)](https://www.nuget.org/packages/IeuanWalker.Maui.Breadcrumb) [![Nuget](https://img.shields.io/nuget/dt/IeuanWalker.Maui.Breadcrumb)](https://www.nuget.org/packages/IeuanWalker.Maui.Breadcrumb)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FIeuanWalker%2FMaui.Breadcrumb.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2FIeuanWalker%2FMaui.Breadcrumb?ref=badge_shield) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/8893845ed9bc4f208def01baae7cb6c6)](https://app.codacy.com/gh/IeuanWalker/Maui.Breadcrumb?utm_source=github.com&utm_medium=referral&utm_content=IeuanWalker/Maui.Breadcrumb&utm_campaign=Badge_Grade_Settings)
@@ -20,11 +17,18 @@ Basic example | Production Example


## How to use it?
Install the [NuGet package](https://www.nuget.org/packages/Xamarin.Forms.Breadcrumb) into all of your projects
Install the [NuGet package](https://www.nuget.org/packages/IeuanWalker.Maui.Breadcrumb/) into all of your projects
```
Install-Package IeuanWalker.Maui.Breadcrumb
```

This control uses one of my other controls, [StateButton](https://github.com/IeuanWalker/Maui.StateButton), this is to make this control accessible. Ao you'll need to register the using in the `MauiProgram.cs` on the `MauiAppBuilder`
```csharp
builder
.UseMauiApp<App>()
.UseStateButton();
```

To add to a page the first thing we need to do is tell our XAML page where it can find the Breadcrumb control, which is done by adding the following attribute to our ContentPage:

```xml
@@ -50,13 +54,14 @@ Next up, just add the breadcrumb control onto that page and you're all set.
|---|---|---- |
| Separator | Sets the image source of the separator | This allows you to set the separator to `FontImageSource`, `UriImageSource` or `FileImageSource`. </br> Default is **new FontImageSource { Glyph = " / ", Color = Colors.Black, Size = 15, }** |
| SeparatorHeight | Sets the height of the separator | Default is **15** |
| FirstBreadcrumb | Allows you to override the first breadcrumb and set an image source. F.e. This is usefull if you want the first breadcrumb to be a home icon instead of the default title. | Default will be a label like all the other breadcrumbs |
| ScrollBarVisibility | Sets the HorizontalScrollBarVisibility of the scrollview | More info here [ScrollBarVisibility](https://docs.microsoft.com/en-us/dotnet/api/xamarin.forms.scrollbarvisibility?view=xamarin-forms). Default value is **ScrollBarVisibility.Never** |
| FirstBreadcrumb | Allows you to override the first breadcrumb and set an image source. F.e. This is useful if you want the first breadcrumb to be a home icon instead of the default title. | Default will be a label like all the other breadcrumbs |
| ScrollBarVisibility | Sets the HorizontalScrollBarVisibility of the ScrollView | More info here [ScrollBarVisibility](https://docs.microsoft.com/en-us/dotnet/api/xamarin.forms.scrollbarvisibility?view=xamarin-forms). Default value is **ScrollBarVisibility.Never** |
| FontSize | Sets the text font size for the breadcrumb | Default value is **15**. <br>Support [`NamedSize`](https://docs.microsoft.com/en-us/dotnet/api/xamarin.forms.namedsize?view=xamarin-forms) |
| TextColor | Sets the text color for the breadcrumb and seperator | A `Color` object. <br> Default value is **black**. <br>*(doesnt include the last breadcrumb)* |
| CornerRadius | A `CornerRadius` object representing each individual corner's radius for each breadcrumb. | Uses the `CornerRadius` struct allowing you to specify individual corners. <br> Default value is **10**. <br> *(doesnt include the last breadcrumb)* |
| TextColor | Sets the text color for the breadcrumb and separator | A `Color` object. <br> Default value is **black**. <br>*(doesn't include the last breadcrumb)* |
| FontFamily | Sets the font for the breadcrumb text | Defaults to default label font |
| CornerRadius | A `CornerRadius` object representing each individual corner's radius for each breadcrumb. | Uses the `CornerRadius` struct allowing you to specify individual corners. <br> Default value is **10**. <br> *(doesn't include the last breadcrumb)* |
| BreadcrumbMargin | A `Thickness` object used to define the spacing between the breadcrumb and separators | Uses the `Thickness` struct allowing you to specify left, top, right and bottom margin |
| BreadcrumbBackgroundColor | This is the background color for the individual breadcrumbs | A `Color` object. <br> Default value is **Transparent**. <br> *(doesnt include the last breadcrumb)* |
| BreadcrumbBackgroundColor | This is the background color for the individual breadcrumbs | A `Color` object. <br> Default value is **Transparent**. <br> *(doesn't include the last breadcrumb)* |
| LastBreadcrumbTextColor | Sets the text color for the last breadcrumb | A Color object. <br> Default value is **black**. |
| LastBreadcrumbCornerRadius | A `CornerRadius` object representing each individual corner's radius.| Uses the `CornerRadius` struct allowing you to specify individual corners. <br> Default value is **10**. |
| LastBreadcrumbBackgroundColor | Sets the background color of the last breadcrumbs | A Color object. <br> Default value is **Transparent**. |
65 changes: 31 additions & 34 deletions Scr/Breadcrumb.csproj
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net7.0;net7.0-android;net7.0-ios;</TargetFrameworks>
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
<ImplicitUsings>enable</ImplicitUsings>
<PropertyGroup>
<TargetFrameworks>net9.0;net9.0-android;net9.0-ios;</TargetFrameworks>
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">14.2</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>

<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">14.2</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
</PropertyGroup>

<MauiEnableXamlCBindingWithSourceCompilation>true</MauiEnableXamlCBindingWithSourceCompilation>
</PropertyGroup>
<PropertyGroup>
<GitInfoReportImportance>high</GitInfoReportImportance>
<PackageId>IeuanWalker.Maui.Breadcrumb</PackageId>
@@ -23,7 +22,8 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/IeuanWalker/Maui.Breadcrumb</PackageProjectUrl>
<RepositoryUrl>https://github.com/IeuanWalker/Maui.Breadcrumb</RepositoryUrl>
<PackageReleaseNotes></PackageReleaseNotes>
<PackageReleaseNotes>
</PackageReleaseNotes>
<DefineConstants>$(DefineConstants);</DefineConstants>
<UseFullSemVerForNuGet>false</UseFullSemVerForNuGet>
<Title>Breadcrumb for .NET MAUI</Title>
@@ -39,32 +39,29 @@
<Configurations>Debug;Release</Configurations>
<RepositoryType>git</RepositoryType>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
</PropertyGroup>

<ItemGroup>
<None Include="icon.png" Pack="true" PackagePath="\" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="DotNet.ReproducibleBuilds" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="IeuanWalker.Maui.StateButton" Version="1.0.0" />
</ItemGroup>

<ItemGroup>
<Compile Update="Breadcrumb.xaml.cs">
<DependentUpon>Breadcrumb.xaml</DependentUpon>
</Compile>
</ItemGroup>

<ItemGroup>
<MauiXaml Update="Breadcrumb.xaml">
<Generator></Generator>
</MauiXaml>
</ItemGroup>
</Project>
<ItemGroup>
<PackageReference Include="DotNet.ReproducibleBuilds" Version="1.2.25">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="IeuanWalker.Maui.StateButton" Version="1.2.0" />
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.10" />
</ItemGroup>
<ItemGroup>
<Compile Update="Breadcrumb.xaml.cs">
<DependentUpon>Breadcrumb.xaml</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<MauiXaml Update="Breadcrumb.xaml">
<Generator>
</Generator>
</MauiXaml>
</ItemGroup>
</Project>
13 changes: 6 additions & 7 deletions Scr/Breadcrumb.xaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
<?xml version="1.0" encoding="UTF-8" ?>
<?xml version="1.0" encoding="UTF-8" ?>
<ContentView x:Class="Breadcrumb.Breadcrumb"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
Padding="4"
AutomationProperties.IsInAccessibleTree="False"
IsVisible="False">
xmlns:control="clr-namespace:Breadcrumb"
AutomationProperties.IsInAccessibleTree="False">
<ContentView.Content>
<ScrollView x:Name="BreadCrumbsScrollView"
x:DataType="control:Breadcrumb"
AutomationProperties.IsInAccessibleTree="False"
HorizontalScrollBarVisibility="{Binding ScrollBarVisibility, Source={RelativeSource AncestorType={x:Type ContentView}}}"
IsVisible="False"
Orientation="Horizontal">
<HorizontalStackLayout x:Name="BreadCrumbContainer"
AutomationProperties.IsInAccessibleTree="False"
HorizontalOptions="Fill"
Loaded="BreadCrumbContainer_Loaded"
VerticalOptions="Center" />
Loaded="BreadCrumbContainer_Loaded" />
</ScrollView>
</ContentView.Content>
</ContentView>
154 changes: 92 additions & 62 deletions Scr/Breadcrumb.xaml.cs

Large diffs are not rendered by default.