/// <summary>
 ///     Called once for each element in the time of accession.
 /// </summary>
 private static void TextExtMemberAttached(TextView textBlock, MemberAttachedEventArgs args)
 {
     ServiceProvider
         .IocContainer
         .Get<IToastPresenter>()
         .ShowAsync("Invoking TextExtMemberAttached on " + textBlock.Id, ToastDuration.Short);
 }
 /// <summary>
 ///     Called once for each element in the time of accession.
 /// </summary>
 private static void TextExtMemberAttached(Label textBlock, MemberAttachedEventArgs args)
 {
     if (!ServiceProvider.DesignTimeManager.IsDesignMode)
         ServiceProvider
             .IocContainer
             .Get<IToastPresenter>()
             .ShowAsync("Invoking TextExtMemberAttached on " + textBlock.ClassId, ToastDuration.Short);
 }
 private static void TabBarSelectedItemAttached(UITabBarController bar, MemberAttachedEventArgs args)
 {
     bar.ViewControllerSelected += SelecectedControllerChangedHandler;
 }
 private static void AdapterViewCurrentItemAttached(ViewPager adapterView, MemberAttachedEventArgs memberAttached)
 {
     adapterView.PageSelected += (sender, args) => ((ViewPager)sender).SetBindingMemberValue(AttachedMembersCompat.ViewPager.CurrentItem, args.Position);
 }
 private static void ParentAttached(object o, MemberAttachedEventArgs args)
 {
     if (!ExplicitParentListener.SetParentValue(o) && DebbugerAttached)
     {
         lock (ExplicitParentTypes)
         {
             var type = o.GetType();
             if (!ExplicitParentTypes.Contains(type))
             {
                 Tracer.Warn(@"Could not find a 'Parent' property on type '{0}', you should register it, without this the data bindings may not work properly. You can ignore this message if you are using the attached parent member.", type);
                 ExplicitParentTypes.Add(type);
             }
         }
     }
 }