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