Version

OnInsertingChild Method (CustomLegendContainer)

Override this in order to control how a child gets inserted and configured in the custom legend container.
Syntax
public bool OnInsertingChild( 
   Android.Views.ViewGroup existingContainer,
   Android.Views.View child,
   int index,
   LegendSettings settings
)

Parameters

existingContainer
This gives a reference to the existing container you created.
child
The new child being inserted.
index
The index for the new child being inserted.
settings
This provides the current settings for the legend.

Return Value

True if the default behavior should be suppressed, false if the default behavior should execute.
Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also