locked
DataTemplate: Width RRS feed

  • General discussion

  • Hello

    I am using a fixed DataTemplate width for a ListBox Item DataTemplate. Now I'm implementing Landscape support.
    How can I set the width of the DataTemplate to the width of the ListBox?

    Thanks

    James
    Wednesday, January 19, 2011 8:43 PM

All replies

  • James, You shouldn't be setting the width of the DataTemplate if you want it to stretch with the phone in Portriate & Landscape modes. If this isn't an option, you're going to have to manually update the Template on the rotation of the phone.
    Wednesday, January 19, 2011 9:15 PM