Ask a questionAsk a question
 

QuestionTemplating User Controls in Blend

  • Friday, November 06, 2009 2:34 PMGraceCaseyGroup Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Is it possible to make a template for User Controls?  My developer wants me to hand her a blank User Control that has areas that she can snap in content (think like a grid).  Is this possible in a WPF application?

    Thanks!

All Replies

  • Friday, November 06, 2009 5:35 PMReed Copsey, Jr. Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    If you want a fully templatable control, you should make a CustomControl instead of a UserControl.  They are generated in a way that is templatable by default.

    UserControls are designed more for making composite controls (controls built from other controls), and do not template well.
    Reed Copsey, Jr. - http://reedcopsey.com