Skip to content
Merged
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
26 changes: 22 additions & 4 deletions src/Controls/src/Core/Element/Element.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1041,14 +1041,32 @@

void OnDescendantAdded(Element child)
{
DescendantAdded?.Invoke(this, new ElementEventArgs(child));
RealParent?.OnDescendantAdded(child);
OnDescendantAddedCore(child, null);
}

void OnDescendantAddedCore(Element child, ElementEventArgs? args)

Check failure on line 1047 in src/Controls/src/Core/Element/Element.cs

View check run for this annotation

Azure Pipelines / maui-pr-uitests (Build UITests Material3 Sample App Build Sample App (Material3))

src/Controls/src/Core/Element/Element.cs#L1047

src/Controls/src/Core/Element/Element.cs(1047,61): Error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check failure on line 1047 in src/Controls/src/Core/Element/Element.cs

View check run for this annotation

Azure Pipelines / maui-pr-uitests (Build UITests Material3 Sample App Build Sample App (Material3))

src/Controls/src/Core/Element/Element.cs#L1047

src/Controls/src/Core/Element/Element.cs(1047,61): Error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check failure on line 1047 in src/Controls/src/Core/Element/Element.cs

View check run for this annotation

Azure Pipelines / maui-pr-uitests (Build UITests Material3 Sample App Build Sample App (Material3))

src/Controls/src/Core/Element/Element.cs#L1047

src/Controls/src/Core/Element/Element.cs(1047,61): Error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check failure on line 1047 in src/Controls/src/Core/Element/Element.cs

View check run for this annotation

Azure Pipelines / maui-pr-uitests (Build UITests Sample App Build Sample App)

src/Controls/src/Core/Element/Element.cs#L1047

src/Controls/src/Core/Element/Element.cs(1047,61): Error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check failure on line 1047 in src/Controls/src/Core/Element/Element.cs

View check run for this annotation

Azure Pipelines / maui-pr-uitests (Build UITests Sample App Build Sample App)

src/Controls/src/Core/Element/Element.cs#L1047

src/Controls/src/Core/Element/Element.cs(1047,61): Error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check failure on line 1047 in src/Controls/src/Core/Element/Element.cs

View check run for this annotation

Azure Pipelines / maui-pr-uitests (Build UITests Sample App Build Sample App)

src/Controls/src/Core/Element/Element.cs#L1047

src/Controls/src/Core/Element/Element.cs(1047,61): Error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check failure on line 1047 in src/Controls/src/Core/Element/Element.cs

View check run for this annotation

Azure Pipelines / maui-pr-uitests (Build UITests CoreCLR Sample App Build Sample App)

src/Controls/src/Core/Element/Element.cs#L1047

src/Controls/src/Core/Element/Element.cs(1047,61): Error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check failure on line 1047 in src/Controls/src/Core/Element/Element.cs

View check run for this annotation

Azure Pipelines / maui-pr-uitests (Build UITests CoreCLR Sample App Build Sample App)

src/Controls/src/Core/Element/Element.cs#L1047

src/Controls/src/Core/Element/Element.cs(1047,61): Error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check failure on line 1047 in src/Controls/src/Core/Element/Element.cs

View check run for this annotation

Azure Pipelines / maui-pr-uitests (Build UITests CoreCLR Sample App Build Sample App)

src/Controls/src/Core/Element/Element.cs#L1047

src/Controls/src/Core/Element/Element.cs(1047,61): Error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
{
if (DescendantAdded is not null)
{
args ??= new ElementEventArgs(child);
DescendantAdded.Invoke(this, args);
}
RealParent?.OnDescendantAddedCore(child, args);
}

void OnDescendantRemoved(Element child)
{
DescendantRemoved?.Invoke(this, new ElementEventArgs(child));
RealParent?.OnDescendantRemoved(child);
OnDescendantRemovedCore(child, null);
}

void OnDescendantRemovedCore(Element child, ElementEventArgs? args)

Check failure on line 1062 in src/Controls/src/Core/Element/Element.cs

View check run for this annotation

Azure Pipelines / maui-pr-uitests (Build UITests Material3 Sample App Build Sample App (Material3))

src/Controls/src/Core/Element/Element.cs#L1062

src/Controls/src/Core/Element/Element.cs(1062,63): Error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check failure on line 1062 in src/Controls/src/Core/Element/Element.cs

View check run for this annotation

Azure Pipelines / maui-pr-uitests (Build UITests Material3 Sample App Build Sample App (Material3))

src/Controls/src/Core/Element/Element.cs#L1062

src/Controls/src/Core/Element/Element.cs(1062,63): Error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check failure on line 1062 in src/Controls/src/Core/Element/Element.cs

View check run for this annotation

Azure Pipelines / maui-pr-uitests (Build UITests Sample App Build Sample App)

src/Controls/src/Core/Element/Element.cs#L1062

src/Controls/src/Core/Element/Element.cs(1062,63): Error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check failure on line 1062 in src/Controls/src/Core/Element/Element.cs

View check run for this annotation

Azure Pipelines / maui-pr-uitests (Build UITests Sample App Build Sample App)

src/Controls/src/Core/Element/Element.cs#L1062

src/Controls/src/Core/Element/Element.cs(1062,63): Error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check failure on line 1062 in src/Controls/src/Core/Element/Element.cs

View check run for this annotation

Azure Pipelines / maui-pr-uitests (Build UITests CoreCLR Sample App Build Sample App)

src/Controls/src/Core/Element/Element.cs#L1062

src/Controls/src/Core/Element/Element.cs(1062,63): Error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check failure on line 1062 in src/Controls/src/Core/Element/Element.cs

View check run for this annotation

Azure Pipelines / maui-pr-uitests (Build UITests CoreCLR Sample App Build Sample App)

src/Controls/src/Core/Element/Element.cs#L1062

src/Controls/src/Core/Element/Element.cs(1062,63): Error CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
{
if (DescendantRemoved is not null)
{
args ??= new ElementEventArgs(child);
DescendantRemoved.Invoke(this, args);
}
RealParent?.OnDescendantRemovedCore(child, args);
}

void OnResourceChanged(BindableProperty property, object value, SetterSpecificity specificity)
Expand Down
Loading