public CustomFunction(FunctionGraph g) { InitializeComponent(); graph = g; var prop = graph.GetType().GetProperty("Name"); PropertyLabel lbl = new PropertyLabel("Function Name"); Stack.Children.Add(lbl); PropertyInput pinput = new PropertyInput(prop, graph); Stack.Children.Add(pinput); }