none
define data template button

    Question

  • i'm new to wpf. i'm have been using a book on wpf to learn it. it uses visual studio 2005. so when the program in the book uses data through external XML file that poses a problem in blend 2015. the step shows that there is a "define datatemplate " button in data binding window of ItemSource property of ListBox. but there is no such button there. I don't know how to define a data template for listbox and therefore can't populate it with xml data.

    |V| ^ |\| () _|

    Wednesday, June 01, 2016 10:24 AM

Answers

  • Hi MANS13,

    In Blend 2015, we create DataTemplate for a control through following steps.

    1. Right-click the ListBox control in Blend.
    2. Choose "Edit Additional Templates".
    3. Choose "Edit Generated Items (ItemTemplate)".
    4. Choose "Create Empty".
    5. It will pop up a Create DataTemplate Resource window to let us add DataTemplate for the ListBox.

    Best Regards,
    Weiwei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, June 02, 2016 3:06 AM
    Moderator