Exemplo n.º 1
0
        private static void IsCompletedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SubtaskItem item = d as SubtaskItem;

            if (item != null)
            {
                item.UpdateVisualState((bool)e.NewValue ? CompletedState : UncompletedState);
            }
        }
Exemplo n.º 2
0
        private static void DeleteFromChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            SubtaskItem item = d as SubtaskItem;

            if (item != null)
            {
                item.UpdateVisualState(e.NewValue != null ? DeletedState : NotDeletedState);
            }
        }