Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6176939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:11:16+00:00 2026-05-24T00:11:16+00:00

I am trying to create a listbox with 2 types of cells: First with

  • 0

I am trying to create a listbox with 2 types of cells:
First with a 480X40 px picture and some text on top, to act as a section title.
Second a 480X80 px cell with background, 60X60 image, some text and an arrow.

So my question is how do I accomplish this?
I have thought of 3 solutions:

  1. Define a Item Template witch contains all the items from cell 1 and 2 and show/hide the elements when biding.

  2. Override the Biding method – this seems to be the correct method, but I have no idea how to do this.

  3. Define 2 Item Templates outside the list box and create, bind and add them at runtime to either an ListBox or ScroolView.

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T00:11:17+00:00Added an answer on May 24, 2026 at 12:11 am

    Here is one approach http://www.windowsphonegeek.com/articles/Implementing-Windows-Phone-7-DataTemplateSelector-and-CustomDataTemplateSelector.

    The other approach is to create two different templates and then have a text property on your item view model which contains the name of the template that should be used. You would then use a ValueConverter to convert from the text name to the actual template. You can see this described in detail here http://www.c-sharpcorner.com/Blogs/1937/.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create a DataBoundControlAdapter for the ListBox Control, but for some
I'm trying to create a ListBox in which the text of the items is
I'm trying to create a Listbox that displays text and an image as one
I'm trying to create a listbox template (for the items). This is what I've
I'm trying to create a transparent ListBox in a WPF application. I want the
I'm trying to create a page where a listbox will contain all my ASP.NET
I'm trying to dynamically create a datatemplate for a listbox. This is for a
I'm trying to create a ListBox with a decently robust DataTemplate. The problem is,
Hi I'm trying to create a list of ListBox's in ASP.NET so that I
I'm trying to create a Listbox in Tkinter that has columns. I'm returning from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.