public override void OnLayerBuild() { base.OnLayerBuild(); StackLayout sl = CurEuiCore.CreateElement <StackLayout>(); sl.SetParent(this); sl.SetAnchor(AnchorType.Stretch); Type[] types = typeof(ToolsLeftArea).Assembly.GetTypes(); foreach (var type in types) { BindUI bingUI = type.GetCustomAttribute <BindUI>(); if (bingUI != null && type.IsSubclassOf(typeof(BaseEditorUI)) && !_bindUis.ContainsKey(bingUI.Ui)) { _types.Add(type); Button btn = CurEuiCore.CreateElement <Button>(); btn.SetParent(sl); btn.Height = 30; btn.Text = bingUI.Ui.Name; } } }