private static void RowsChanges(DependencyObject d, DependencyPropertyChangedEventArgs e) { MazeControl mc = (MazeControl)d; mc.Rows = (int)e.NewValue; }
private static void DirectionChanges(DependencyObject d, DependencyPropertyChangedEventArgs e) { MazeControl mc = (MazeControl)d; mc.Direction = (Position)e.NewValue; }
private static void MazeStringChanges(DependencyObject d, DependencyPropertyChangedEventArgs e) { MazeControl mc = (MazeControl)d; mc.MazeString = (string)e.NewValue; }