Skip to content

Removed BackgroundColor for all the BoxView's in CustomView. #962

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: hotfix/hotfix-v26.1.35
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 18 additions & 49 deletions Xamarin/Shimmer/Custom-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,116 +47,100 @@ You can customize the shimmer using your own view using the [`CustomView`](https
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>

<BoxView BackgroundColor="Gray"
Grid.Row="0"
<BoxView Grid.Row="0"
Grid.ColumnSpan="2"
HorizontalOptions="Start"
WidthRequest="300" />

<BoxView BackgroundColor="Gray"
Grid.Row="1"
<BoxView Grid.Row="1"
Grid.ColumnSpan="2"
HorizontalOptions="Start"
WidthRequest="250" />

<BoxView BackgroundColor="Gray"
Grid.Row="2"
<BoxView Grid.Row="2"
Grid.ColumnSpan="2"
HeightRequest="10"
HorizontalOptions="Start"
VerticalOptions="Start"
WidthRequest="280" />

<BoxView BackgroundColor="Gray"
Grid.Row="3"
<BoxView Grid.Row="3"
Grid.ColumnSpan="2"
HeightRequest="10"
HorizontalOptions="Start"
VerticalOptions="Start"
WidthRequest="260" />

<BoxView BackgroundColor="Gray"
Grid.Row="5"
<BoxView Grid.Row="5"
Grid.RowSpan="8" />

<BoxView BackgroundColor="Gray"
Grid.Row="5"
<BoxView Grid.Row="5"
Grid.Column="1"
HeightRequest="10"
HorizontalOptions="Start"
VerticalOptions="Start"
WidthRequest="180" />

<BoxView BackgroundColor="Gray"
Grid.Row="6"
<BoxView Grid.Row="6"
Grid.Column="1"
HeightRequest="10"
HorizontalOptions="Start"
VerticalOptions="Start"
WidthRequest="190" />

<BoxView BackgroundColor="Gray"
Grid.Row="7"
<BoxView Grid.Row="7"
Grid.Column="1"
HeightRequest="10"
HorizontalOptions="Start"
VerticalOptions="Start"
WidthRequest="170" />

<BoxView BackgroundColor="Gray"
Grid.Row="8"
<BoxView Grid.Row="8"
Grid.Column="1"
HeightRequest="10"
HorizontalOptions="Start"
VerticalOptions="Start"
WidthRequest="180" />

<BoxView BackgroundColor="Gray"
Grid.Row="9"
<BoxView Grid.Row="9"
Grid.Column="1"
HeightRequest="10"
HorizontalOptions="Start"
VerticalOptions="Start"
WidthRequest="150" />

<BoxView BackgroundColor="Gray"
Grid.Row="10"
<BoxView Grid.Row="10"
Grid.Column="1"
HeightRequest="10"
HorizontalOptions="Start"
VerticalOptions="Start"
WidthRequest="160" />

<BoxView BackgroundColor="Gray"
Grid.Row="11"
<BoxView Grid.Row="11"
Grid.Column="1"
HeightRequest="10"
HorizontalOptions="Start"
VerticalOptions="Start"
WidthRequest="175" />

<BoxView BackgroundColor="Gray"
Grid.Row="13"
<BoxView Grid.Row="13"
Grid.RowSpan="3"
Grid.Column="1"
Margin="0,5,0,0" />

<BoxView BackgroundColor="Gray"
Grid.Row="13"
<BoxView Grid.Row="13"
HeightRequest="10"
HorizontalOptions="Start"
VerticalOptions="Start"
WidthRequest="150" />

<BoxView BackgroundColor="Gray"
Grid.Row="14"
<BoxView Grid.Row="14"
HeightRequest="10"
HorizontalOptions="Start"
VerticalOptions="Start"
WidthRequest="160" />

<BoxView BackgroundColor="Gray"
Grid.Row="15"
<BoxView Grid.Row="15"
HeightRequest="10"
HorizontalOptions="Start"
VerticalOptions="Start"
Expand Down Expand Up @@ -200,22 +184,19 @@ You can customize the shimmer using your own view using the [`CustomView`](https
var boxView1 = new BoxView
{
HorizontalOptions = LayoutOptions.Start,
BackgroundColor = Color.Gray,
WidthRequest = 300
};

var boxView2 = new BoxView
{
HorizontalOptions = LayoutOptions.Start,
BackgroundColor = Color.Gray,
WidthRequest = 250
};

var boxView3 = new BoxView
{
HorizontalOptions = LayoutOptions.Start,
VerticalOptions = LayoutOptions.Start,
BackgroundColor = Color.Gray,
HeightRequest = 10,
WidthRequest = 280
};
Expand All @@ -224,21 +205,19 @@ You can customize the shimmer using your own view using the [`CustomView`](https
{
HorizontalOptions = LayoutOptions.Start,
VerticalOptions = LayoutOptions.Start,
BackgroundColor = Color.Gray,
WidthRequest = 260,
HeightRequest = 10,
};

var boxView5 = new BoxView
{
BackgroundColor = Color.Gray

};

var boxView6 = new BoxView
{
HorizontalOptions = LayoutOptions.Start,
HeightRequest = 10,
BackgroundColor = Color.Gray,
VerticalOptions = LayoutOptions.Start,
WidthRequest = 180
};
Expand All @@ -247,7 +226,6 @@ You can customize the shimmer using your own view using the [`CustomView`](https
{
HorizontalOptions = LayoutOptions.Start,
VerticalOptions = LayoutOptions.Start,
BackgroundColor = Color.Gray,
HeightRequest = 10,
WidthRequest = 190
};
Expand All @@ -256,15 +234,13 @@ You can customize the shimmer using your own view using the [`CustomView`](https
HorizontalOptions = LayoutOptions.Start,
VerticalOptions = LayoutOptions.Start,
HeightRequest = 10,
BackgroundColor = Color.Gray,
WidthRequest = 170
};

var boxView9 = new BoxView
{
HorizontalOptions = LayoutOptions.Start,
VerticalOptions = LayoutOptions.Start,
BackgroundColor = Color.Gray,
HeightRequest = 10,
WidthRequest = 180
};
Expand All @@ -273,7 +249,6 @@ You can customize the shimmer using your own view using the [`CustomView`](https
{
HorizontalOptions = LayoutOptions.Start,
VerticalOptions = LayoutOptions.Start,
BackgroundColor = Color.Gray,
HeightRequest = 10,
WidthRequest = 150
};
Expand All @@ -282,7 +257,6 @@ You can customize the shimmer using your own view using the [`CustomView`](https
{
HorizontalOptions = LayoutOptions.Start,
VerticalOptions = LayoutOptions.Start,
BackgroundColor = Color.Gray,
HeightRequest = 10,
WidthRequest = 160
};
Expand All @@ -291,22 +265,19 @@ You can customize the shimmer using your own view using the [`CustomView`](https
{
HorizontalOptions = LayoutOptions.Start,
VerticalOptions = LayoutOptions.Start,
BackgroundColor = Color.Gray,
HeightRequest = 10,
WidthRequest = 175
};

var boxView3 = new BoxView
var boxView13 = new BoxView
{
BackgroundColor = Color.Gray,
Margin = new Thickness(0, 5, 0, 0)
};

var boxView14 = new BoxView
{
HorizontalOptions = LayoutOptions.Start,
VerticalOptions = LayoutOptions.Start,
BackgroundColor = Color.Gray,
HeightRequest = 10,
WidthRequest = 150
};
Expand All @@ -315,7 +286,6 @@ You can customize the shimmer using your own view using the [`CustomView`](https
{
HorizontalOptions = LayoutOptions.Start,
VerticalOptions = LayoutOptions.Start,
BackgroundColor = Color.Gray,
HeightRequest = 10,
WidthRequest = 160
};
Expand All @@ -324,7 +294,6 @@ You can customize the shimmer using your own view using the [`CustomView`](https
{
HorizontalOptions = LayoutOptions.Start,
VerticalOptions = LayoutOptions.Start,
BackgroundColor = Color.Gray,
HeightRequest = 10,
WidthRequest = 175
};
Expand Down