title: how to add content in user control dynamically in window application?
body: <p>this program i will try so many time but it can not perform properly so please give me proper advice..
  how to solve this problem..
  and how to add the content dynamically in the usercontrol..
  here contentcontrol is usercontrol and how to use it dynamically and how to give content dynamicalyy...           </p>
  
  <pre><code>        Button b = new Button();
          b.Content = "click here";
          b.Height = 200;
          b.Width = 200;
          DesignerCanvas.Children.Add(b);
          DesignerCanvas.UpdateLayout();
          Selector.SetIsSelected(b as Control,true);
          ContentControl cc = new ContentControl();
          cc.children.add(b);
  </code></pre>