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