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