public static void OniIndexChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) { CanvasWithPhoto c = (CanvasWithPhoto)sender; int newValue = (int)e.NewValue; int oldValue = (int)e.OldValue; c.Index = (int)e.NewValue; c.OnIndexChanged(oldValue, newValue); }
private void CanvasWithPhoto_IndexChanged(object sender, RoutedPropertyChangedEventArgs <int> e) { CanvasWithPhoto c = (CanvasWithPhoto)sender; UpdataRadioBtn(c.Index); }