Beispiel #1
0
        //make all buttons unclickable
        public void DisableButtons()
        {
            Board.Children.OfType <Button>().ToList().ForEach(button =>
            {
                buttonController.Clickable(button, false);
                //button.IsHitTestVisible = false;
                if (!button.Name.Equals("ButtonDice"))
                { //keeps from preventing dice button from highlighting
                    buttonController.SetStyle(button, "clear", null);

                    /*button.ClearValue(Button.BorderBrushProperty);
                     * button.ClearValue(Button.BorderThicknessProperty);*/
                }
            });

            //pieceChosen = "";
        }