Esempio n. 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();
        }
Esempio n. 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();
        }
Esempio n. 3
0
 public ButtonBlock(IPicture picture)
     : base()
 {
     MyButton = new Button(picture);
     Init();
 }
Esempio n. 4
0
 public ButtonBlock(IPicture picture, String text)
     : base()
 {
     MyButton = new Button(picture, text);
     Init();
 }
Esempio n. 5
0
 public ButtonBlock(String text, IPicture picture)
     : base()
 {
     MyButton = new Button(text, picture);
     Init();
 }
Esempio n. 6
0
 public ButtonBlock(String text)
     : base()
 {
     MyButton = new Button(text);
     Init();
 }
Esempio n. 7
0
 protected virtual void OnPushed(Button itemChanged)
 {
     RaisePushed();
 }