}
}
+ /// <summary>
+ /// return the children of ContentContainer when user try to get the children of ScrollableBase.
+ /// </summary>
+ /// <returns></returns>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ protected override List<View> GetChildren()
+ {
+ return ContentContainer.Children;
+ }
+
/// <summary>
/// Scrolls to the item at the specified index.
/// </summary>
{
get
{
- return childViews;
+ return GetChildren();
}
}
OnResourcesChanged(changedResources);
}
+ /// <summary>
+ /// Some type which inherit from Container overwrite the Add/Remove, so the getter of children should also be overwrite.
+ /// </summary>
+ /// <returns></returns>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ protected virtual List<View> GetChildren()
+ {
+ return childViews;
+ }
+
/// <summary>
/// Invoked whenever the binding context of the element changes. Implement this method to add class handling for this event.
/// </summary>