Skip to content

Commit

Permalink
changed the background colour
Browse files Browse the repository at this point in the history
  • Loading branch information
Al-Sheikh, Lee committed May 12, 2020
1 parent 119344c commit bac20ff
Show file tree
Hide file tree
Showing 4 changed files with 12,166 additions and 86 deletions.
2 changes: 1 addition & 1 deletion Breadcrumb/Breadcrumb.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageId>Xamarin.Forms.Breadcrumb</PackageId>
<Version>2.4.0</Version>
<Version>2.5.0</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
10 changes: 8 additions & 2 deletions Breadcrumb/Breadcrumb.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ public Breadcrumb()
Source = Separator,
VerticalOptions = LayoutOptions.Center
});
continue;
}
Expand Down Expand Up @@ -212,15 +214,19 @@ private PancakeView BreadCrumbLabelCreator(Page page, bool isLast, bool isFirst)


// Create PancakeView, and add StackLayout containing the selectedPage title
return new PancakeView
PancakeView container = new PancakeView
{
Padding = 10,
VerticalOptions = LayoutOptions.Center,
CornerRadius = isLast ? LastBreadcrumbCornerRadius : CornerRadius,
BackgroundColor = isLast ? LastBreadcrumbBackgroundColor : BreadcrumbBackgroundColor,
Content = stackLayout,
Margin = BreadcrumbMargin
};
container.SetBinding(PancakeView.BackgroundColorProperty, new Binding(isLast ? nameof(LastBreadcrumbBackgroundColor) : nameof(BreadcrumbBackgroundColor), source: new RelativeBindingSource(RelativeBindingSourceMode.FindAncestor, typeof(Breadcrumb))));



return container;
}

/// <summary>
Expand Down
Loading

0 comments on commit bac20ff

Please sign in to comment.