protected override void OnSetItem(PivotItem pivot, MobileSrc.Commuter.Shared.CommuteDefinition item) { CommuteOverviewControl ctrl = pivot.Content as CommuteOverviewControl; if (null != ctrl) { ctrl.Source = item; } }
public static void OnSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { CommuteOverviewControl ctrl = (CommuteOverviewControl)d; ctrl.OnSourceChanged(e.OldValue, e.NewValue); }