Sample: BoxView.Fill (Brush) — .NET MAUI 11 Preview 5#771
Open
davidortinau wants to merge 1 commit into
Open
Conversation
Demonstrates the new BoxView.Fill property added in .NET MAUI 11 (dotnet/maui#31789, closes dotnet/maui#2365). Includes: - SolidColorBrush, LinearGradientBrush, RadialGradientBrush on BoxView.Fill - Fill vs BackgroundColor comparison - docregions for inclusion in docs/user-interface/controls/boxview.md Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a new sample under
11.0/UserInterface/Views/BoxView/BoxViewFill/that demonstrates the newBoxView.Fillproperty added in .NET MAUI 11 Preview 5 (dotnet/maui#31789, closes dotnet/maui#2365).BoxView.Fillis of typeBrush, soSolidColorBrush,LinearGradientBrush,RadialGradientBrush, and any other brush can paint aBoxViewwithout a custom handler —BackgroundColorstill works but only handles solid colors.What the sample shows
BoxViewwithSolidColorBrushassigned toFillBoxViewwithLinearGradientBrushBoxViewwithRadialGradientBrushBackgroundColorvsFillcomparisonNote
11.0/Directory.Build.propsis currently pinned to Preview 3 (MauiVersion=11.0.0-preview.3.26203.7,DotNetVersion=11.0.0-preview.3.26207.106). Restoring this sample requires the bump to Preview 5, which is normally coordinated with the preview NuGet rollout. Not blocking for merge; flagging so the first P5 sample to land knows the props bump needs to land alongside it.