locked
ItemsControl Rendering RRS feed

  • Question

  •  

    Hi,

     

    I need to only render the first item in a ItemsControl different than the rest. Is there a way to change the template used to render the first item versus all the rest?

     

    Rudi Grobler

    http://dotnet.org.za/rudi

     

    Tuesday, October 30, 2007 2:45 PM

Answers

  • Hi,

    I never tried it explicitly, but I am sure it is possible using a DataTemplateSelector class.
    http://msdn2.microsoft.com/en-us/library/system.windows.controls.datatemplateselector.aspx

    HTH,
    Laurent
    Tuesday, October 30, 2007 9:51 PM