Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Updated the sample to test also the BoxView Brush offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuarezruiz authored and jfversluis committed Sep 6, 2021
1 parent 563e0c4 commit 380bb01
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Title="Issue 11795"
x:Class="Xamarin.Forms.Controls.Issues.Issue11795">
<controls:TestContentPage.Resources>
<ResourceDictionary>
Expand Down Expand Up @@ -37,12 +38,22 @@
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid
<StackLayout
Grid.Row="0"
Margin="12, 0"
Padding="12">
<Label
Text="BoxView"/>
<BoxView
x:Name="GradientBoxView"
HeightRequest="120"
WidthRequest="120"
CornerRadius="12"
Background="{StaticResource LinearBrush}"/>
<Label
Text="Frame"/>
<Frame
x:Name="GradientView"
x:Name="GradientFrame"
HasShadow="True"
HeightRequest="120"
WidthRequest="120"
Expand All @@ -55,7 +66,7 @@
Text="LinearGradientBrush"/>
</Grid>
</Frame>
</Grid>
</StackLayout>
<ScrollView
Grid.Row="1"
Margin="12, 0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ void UpdateBackground(float offset1, float offset2)
}
};

GradientView.Background = linearGradient;
GradientBoxView.Background = linearGradient;
GradientFrame.Background = linearGradient;
}
#endif
}
Expand Down

0 comments on commit 380bb01

Please sign in to comment.