Exemple #1
0
        void Alignment_Pushed(Button itemChanged)
        {
            switch (layout.Alignment)
            {
                case AlignmentType.LeftOrTopEdge:
                    layout.Alignment = AlignmentType.Center;
                    break;
                case AlignmentType.Center:
                    layout.Alignment = AlignmentType.RightOrBottomEdge;
                    break;
                case AlignmentType.RightOrBottomEdge:
                    layout.Alignment = AlignmentType.LeftOrTopEdge;
                    break;
                case AlignmentType.Justify:
                    layout.Alignment = AlignmentType.LeftOrTopEdge;
                    break;
                default:
                    break;
            }

            UpdateLayoutTest();
        }
Exemple #2
0
        void Orientation_Pushed(Button itemChanged)
        {
            switch (layout.Orientation)
            {
                case OrientationType.Horizontal:
                    layout.Orientation = OrientationType.Vertical;
                    break;
                case OrientationType.Vertical:
                    layout.Orientation = OrientationType.Horizontal;
                    break;
                default:
                    break;
            }

            UpdateLayoutTest();
        }
Exemple #3
0
 public ButtonBlock(IPicture picture)
     : base()
 {
     MyButton = new Button(picture);
     Init();
 }
Exemple #4
0
 public ButtonBlock(IPicture picture, String text)
     : base()
 {
     MyButton = new Button(picture, text);
     Init();
 }
Exemple #5
0
 public ButtonBlock(String text, IPicture picture)
     : base()
 {
     MyButton = new Button(text, picture);
     Init();
 }
Exemple #6
0
 public ButtonBlock(String text)
     : base()
 {
     MyButton = new Button(text);
     Init();
 }
Exemple #7
0
 protected virtual void OnPushed(Button itemChanged)
 {
     RaisePushed();
 }