Пример #1
0
        /// <summary>
        /// Constructor which sets Event Handlers and design elements
        /// </summary>
        public EditPage()
        {
            this.InitializeComponent();
            DrawCanvas.PointerEntered += (sender, e) =>
            {
                Window.Current.CoreWindow.PointerCursor =
                    new Windows.UI.Core.CoreCursor(Windows.UI.Core.CoreCursorType.Cross, 1);
            };
            DrawCanvas.PointerExited += (sender, e) =>
            {
                Window.Current.CoreWindow.PointerCursor =
                    new Windows.UI.Core.CoreCursor(Windows.UI.Core.CoreCursorType.Arrow, 1);
            };

            ClassCanvas.Fill = new SolidColorBrush(Colors.Wheat);
            DrawCanvas.Fill  = new SolidColorBrush(Colors.DarkGray);

            this.Loaded += (sender, e) => { ToolState = new CreateClassState(); };

            IsDrawingBoardOpen = true;
            DrawCanvas.AddDrawingBoard();
            _instance = this;
        }