Example #1
0
        protected override void OnInitialized(EventArgs e)
        {
            base.OnInitialized(e);
            cubeRotationHandler = new CubeRotationHandler();
            imageSourceManager  = new ImageSourceManager();
            front = (Image)FindName("frontImage");
            top   = (Image)FindName("topImage");
            right = (Image)FindName("rightImage");
            frontRotateTransform = (RotateTransform)FindName("frontRotate");
            topRotateTransform   = (RotateTransform)FindName("topRotate");
            rightRotateTransform = (RotateTransform)FindName("rightRotate");

            updateImages();
        }
 public void Setup() => Handler = new CubeRotationHandler();