Example #1
0
        protected override View GetViewImpl(Context context, ViewGroup parent)
        {
#warning convertView is junk here?
            View view = _layoutId > 0 ? DroidResources.LoadLayout(context, parent, _layoutId) : DroidResources.LoadLayout(context, parent, LayoutName);

            if (view == null)
            {
                Log.Error("Android.Dialog", "ViewElement: Failed to load resource: " + LayoutName);
            }
            else
            {
                Populate?.Invoke(view);
            }
            return(view);
        }
 /// <summary>
 /// Initializes the <see cref="ImageList"/> by raising the <see cref="Populate"/> event.
 /// </summary>
 public void Initialize()
 {
     Populate?.Invoke(this, EventArgs.Empty);
 }
Example #3
0
 public void Hydrate(object surrogate, object instance) => Populate.Invoke(surrogate, new object[] { instance });