public static SetTarget ( global::Xamarin.Forms.BindableObject d, object target ) : void | ||
d | global::Xamarin.Forms.BindableObject | The element to attach the target to. |
target | object | The target for instances of |
Результат | void |
static void ItemsSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { var pager = (Pager)d; var source = (IBindablePagedQuery)e.NewValue; source.IsLoadingChanged += (s, args) => { var state = args.Value ? "Loading" : "Loaded"; Execute.OnUIThread(() => VisualStateManager.GoToState(pager, state, true)); }; Action.SetTarget(pager.LayoutRoot, e.NewValue); }
protected override void OnDeactivate(bool close) { var view = _cachedView as CharacteristicView; if (view == null) { return; } // fix for Caliburn's issue when conventions are not applied when cached view is activated. ToDo: report or fix Action.SetTarget(view, null); Action.SetTarget(view, this); }
public void SetActionTarget(object target) { Action.SetTarget(viewContainer, target); }