protected override void Update(XamFormsContext context, IShadow <Xamarin.Forms.ContentPage> shadow, ContentPage current, ContentPage next) { shadow.UpdateContent <Xamarin.Forms.View>(context, current?.ContentView, next?.ContentView, (s) => { shadow.Item.Content = s.Item; }, (s) => { shadow.Item.Content = null; }); }
protected override void Update(AndroidContext context, IShadow <Android.App.Activity> shadow, Activity current, Activity next) { shadow.UpdateContent <Android.Views.View>(context, current?.ContentView, next?.ContentView, (s) => { shadow.Item.SetContentView(s.Item); }, (s) => { shadow.Item.SetContentView(null); }); }
protected override void Update(XamFormsContext context, IShadow <Xamarin.Forms.ScrollView> shadow, ScrollView current, ScrollView next) { shadow.UpdateContent <Xamarin.Forms.View>(context, current?.Attributes?.GetAttributeOrDefault(ViewExtensions.ContentAttribute), next?.Attributes?.GetAttributeOrDefault(ViewExtensions.ContentAttribute), (s) => { shadow.Item.Content = s.Item; }, (s) => { shadow.Item.Content = null; }); }
protected override void Update(XamFormsContext context, IShadow <Xamarin.Forms.ViewCell> shadow, ViewCell current, ViewCell next) { base.Update(context, shadow, current, next); shadow.UpdateContent <Xamarin.Forms.View>(context, current?.Attributes?.GetAttributeOrDefault(ViewExtensions.ContentAttribute), next?.Attributes?.GetAttributeOrDefault(ViewExtensions.ContentAttribute), (s) => { shadow.Item.View = s.Item; }, (s) => { shadow.Item.View = null; }); }
protected override void Update(XamFormsContext context, IShadow <TControl> shadow, XamFormsVisualElement <TControl> current, XamFormsVisualElement <TControl> next) { base.Update(context, shadow, current, next); shadow.UpdateContent <Xamarin.Forms.View>(context, current?.Attributes.GetAttributeOrDefault(ViewExtensions.ContentAttribute), next?.Attributes.GetAttributeOrDefault(ViewExtensions.ContentAttribute), (s) => { shadow.Item.Content = s.Item; }, (s) => { shadow.Item.Content = null; }); }