private void InitializeComponent() { BeginVertical(); var subLayout = new StackLayout(); subLayout.Orientation = Orientation.Horizontal; btnGroup = new Button { Text = "Group" }; subLayout.Items.Add(new StackLayoutItem(btnGroup, true)); btnAbc = new Button { Text = "Abc" }; subLayout.Items.Add(new StackLayoutItem(btnAbc, true)); Add(subLayout); propertyTable = new PropertyGridTable(); Add(propertyTable); btnAbc.Click += BtnAbc_Click; btnGroup.Click += BtnGroup_Click; }
public TreeItem(string label, object value, PropertyGridTable.EntryType type, EventHandler eventHandler = null, Dictionary<string, object> comboItems = null) { group = ""; this.label = label; this.value = value; this.type = type; this.eventHandler = eventHandler; this.comboItems = comboItems; }
private void InitializeComponent() { Title = "Properties"; layout = new DynamicLayout(); layout.BeginVertical(); subLayout = new StackLayout(); subLayout.Orientation = Orientation.Horizontal; layout.Add(subLayout); propertyTable = new PropertyGridTable(); layout.Add(propertyTable); CreateContent(layout); }