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 8650763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:54:04+00:00 2026-06-12T13:54:04+00:00

The problem with this is probably obvious but im struggling to see it. I

  • 0

The problem with this is probably obvious but im struggling to see it.

I have the following XAML:

<ItemsControl x:Name="contentList">
        <ItemsControl.ItemTemplate>
            <DataTemplate>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="200" />
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="{Binding Name}" TextWrapping="Wrap" />
                    <ItemsControl x:Name="imageContent" Grid.Column="1">
                        <ItemsControl.ItemTemplate>
                            <DataTemplate>
                                <TextBlock Text="{Binding ImageCollection.FullName}" TextWrapping="Wrap" />
                            </DataTemplate>
                        </ItemsControl.ItemTemplate>
                    </ItemsControl>
                </Grid>
            </DataTemplate>
        </ItemsControl.ItemTemplate>
    </ItemsControl>

I’ve set up the itemsSource for contentList like so:

contentList.ItemsSource = myObservableCollection;

However when I try to do the same for imageContent, I can’t seem to access it via IntelliSense.
I’ve tried a clean/rebuild of the Project and it’s made no difference.

Do I need to access imageContent a different way?

I want to use myObservableCollection for both contentList and imageContent as it has the following structure:

  • Name (String)
  • ImageCollection (ObservableCollection)

With an aim to produce the following UI:

enter image description here

  • 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-06-12T13:54:05+00:00Added an answer on June 12, 2026 at 1:54 pm

    You need to define another ObservableCollection within the list objects of your outer collection. Something like this:

    ObservableCollection<MyObject> OuterList = new ObservableCollection<MyObject>();
    
    //...
    
    
    public class MyObject
    {
        public ObservableCollection<FileInfo> ImageCollection {get; set;}
        public MyObject()
        {
            ImageCollection = new ObservableCollection<FileInfo>();
        }
    }
    

    Then just update your xaml like so:

    ...
    <ItemsControl x:Name="imageContent" ItemsSource="{Binding ImageCollection}">
    ...
    

    So this will cause each item in your outer list to hold it’s own observable collection holding it’s list.

    Also with this change make sure you update the binding on your text block, since each item will represent a FileInfo object you can simply write this:

    <DataTemplate>
        <TextBlock Text="{Binding FullName}" TextWrapping="Wrap" />
    </DataTemplate>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The solution is probably obvious, but I do not see it. I have this
I am probably missing something obvious with this problem, but i can't seem to
Problem : This is a probably a very basic question, but how do I
This is probably really stupid but i can't find the problem with my code.
I know this has probably been asked before but for my problem I cannot
This is probably an easy one, but I'm missing something I guess. The problem
OK, this is probably very basic, but I can't find the problem. I'm trying
This is a fairly common problem, it probably has a name, I just don't
Probably a very trivial problem. I have an object that looks like this: @PersistenceCapable
This is probably a silly question but I have been thinking it over for

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.