System.Windows.Shapes.Ellipse lb = new System.Windows.Shapes.Ellipse();
lb.IsHitTestVisible = false;
lb.Name = "dynecp";
lb.Fill = System.Windows.Media.Brushes.DeepSkyBlue;
System.Windows.Controls.ContentControl contcrl = new System.Windows.Controls.ContentControl();
contcrl.MinHeight = 35;
contcrl.MinWidth = 90;
contcrl.Height = 40;
contcrl.Width = 120;
contcrl.Content = lb;
contcrl.Name = "iamdyn";
Canvas.SetLeft(contcrl, 30);
Canvas.SetTop(contcrl, 40);
contcrl.Template = this.Resources["DesignerItemTemplate"] as ControlTemplate;
contcrl.ApplyTemplate();
tes1t.Children.Add(contcrl);
Thanks for looking into problem.
problem solved finally