private IButtonTool AddLargeButton(object id, int column, IToolBar toolbar = null) { if (toolbar == null) toolbar = ToolBar; return toolbar.AddButton( id, "/Images/Icon.Clipboard.png".ToImageSource().ToImage(), "Paste" + Environment.NewLine + "Something", Orientation.Vertical, column: column, rowSpan: 3); }
private void AddButtonSet(IToolBar toolbar) { largeButton = AddLargeButton(1, 0, toolbar); toolbar.AddDivider(column: 1, rowSpan: 3); var smallButton = toolbar.AddButton(2, IconImage.SilkCut, "Cut", column: 2, row: 0, columnSpan: 3); toolbar.AddButton(3, IconImage.SilkPageCopy, "Copy", column: 2, row: 1, columnSpan: 3); toolbar.AddButton(4, IconImage.SilkClock, "Something", column: 2, row: 2, columnSpan: 3).IsEnabled = false; }