Example #1
0
        static void OnEditableChange(BindableObject bindable, object oldValue, object newValue)
        {
            WorkoutItemView b = (WorkoutItemView)bindable;

            if ((bool)newValue)
            {
                b.Content = b.DisplayWorkout(editable: true);
            }
        }
Example #2
0
        // when the WorkoutListProperty changes, we update the display
        static void OnWorkoutChange(BindableObject bindable, object oldValue, object newValue)
        {
            System.Diagnostics.Debug.WriteLine("Workout Changed!");
            WorkoutItemView b = (WorkoutItemView)bindable;

            b.WorkoutChange(
                (ObservableCollection <WorkoutItem>)oldValue, (ObservableCollection <WorkoutItem>)newValue
                );

            b.Content = b.DisplayWorkout();
        }