private void CreateButtons(Type Class, WrapPanel target) { _core.AttachTypeToRuntime(Class); var items = PythonCore.GetClassMembers(Class); CompleteButton cb; foreach (var item in items) { cb = new CompleteButton(); cb.Content = item.Key; cb.CompleteText = item.Value; cb.Click += InstertButton_Click; cb.Margin = new Thickness(2); cb.ToolTip += _help.LookupDescription(item.Value); cb.Height = 54; cb.Width = 100; target.Children.Add(cb); } }