using System; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace Xamarin.Forms { public partial class VisualElement { sealed class MergedStyle : IStyle { ////If the base type is one of these, stop registering dynamic resources further ////The last one (typeof(Element)) is a safety guard as we might be creating VisualElement directly in internal code static readonly IList s_stopAtTypes = new List { typeof(View), typeof(Layout<>), typeof(VisualElement), typeof(Element) }; IList _classStyleProperties; readonly List _implicitStyles = new List(); IList