private void AddItem_Click(object sender, RoutedEventArgs e) { Canvas piCanv = new Canvas() { Width = 80, Height = 150 }; Label price = new Label() { Content = "Price:" }; TextBox priceEdit = new TextBox() { Width=30 }; Border rect = new Border() { Width = 100, Height = 200, CornerRadius=new CornerRadius(15), BorderThickness=new Thickness(5, 10, 15, 20), Margin = new Thickness(5, 5, 5, 5), BorderBrush = Brushes.SlateBlue, // it allow me just one child Child=piCanv, // here i want to enter more element how can i do it? }; Warp.Children.Add(rect); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)