Exemple #1
0
        private static void RowsChanges(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MazeControl mc = (MazeControl)d;

            mc.Rows = (int)e.NewValue;
        }
Exemple #2
0
        private static void DirectionChanges(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MazeControl mc = (MazeControl)d;

            mc.Direction = (Position)e.NewValue;
        }
Exemple #3
0
        private static void MazeStringChanges(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MazeControl mc = (MazeControl)d;

            mc.MazeString = (string)e.NewValue;
        }