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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:18:08+00:00 2026-05-25T19:18:08+00:00

we have code that is getting data from the server,the data is unzipped and

  • 0

we have code that is getting data from the server,the data is unzipped and parsed then the name of the files along with the icons related to them are supposed to be displayed on the UI, we are using a listbox and trying bind these 2 elements to the listbox, the data is getting bound but we are not able to update the page after binding.`

</ListBox.ItemsPanel>
<ListBox.ItemTemplate>
<DataTemplate>
     <Image Source="{Binding Icon, Mode=OneWay}" Grid.Column="0" HorizontalAlignment="Center" Grid.Row="1"/>
<TextBlock Padding="10" Text="{Binding Widget, Mode=OneWay}" FontSize="20" Grid.Row="2" Grid.RowSpan="2" TextWrapping="Wrap"  Grid.ColumnSpan="2" />
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>`   
  • 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-25T19:18:09+00:00Added an answer on May 25, 2026 at 7:18 pm

    Make sure that:

    1. UIManager class is set as a dataContext for your XAML control.
    2. UIManager has to implement INotifyPropertyChanged in order to notify the UI that the collection you are binding to has changed (has some items added to it in your case).

    3. Most important – use Output windows to locate all XAML binding issues.

      class UIManager: INotifyPropertyChaged
      {

      private ObservableCollection<ItemsList> _displayItem;
      
          public ObservableCollection<ItemsList> DisplayItem
          {
             get
             {
                return _displayItem;
             }
             set
             {
                if(value != _displayItem)
                {
                   _displayItem=value;
                   NotifyPropertyChanged("DisplayItem");
                }
             }
      
          public UIManager()
          {
             DisplayItem = new ObservableCollection<ItemsList>();
             DisplayCat(DataManager.getInstance().displayName, DataManager.getInstance().icons);
          }
      
          public void DisplayCat(string[] DisplayNames, BitmapImage[] Icon)
          {
                  ObservableCollection<ItemsList> tmpColl = new ObservableCollection<ItemsList>();        
      
          for (int i = 0; i < DataManager.getInstance().count; i++)
              {
                      tmpColl.Add(new ItemsList { Widget = DisplayNames[i], Icon = Icon[i] });
              }
          DisplayItem = tmpColl;
          }
      
      public event PropertyChangedEventHandler PropertyChanged;
      
      private void NotifyPropertyChanged(String info)
      {
              if (PropertyChanged != null)
              {
                  PropertyChanged(this, new PropertyChangedEventArgs(info));
              }
      }
      

      }

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

Sidebar

Related Questions

I have a silverlight 3 application, that fetches some simple data from a ms-sql-server
I'm getting an error when I use the SharpZipLib. I have code that looks
I have code that looks like: //System.Data.IDataRecord dr try { Consolidated = Utility.NullConvert.ToBool(dr[Constants.Data.Columns.cConsolidated], false);
I have a listview that's populated by rows that get their data from a
I have a rather simple web-service which exposes data from sql server. It will
I have a form that is loading quite an amount of data from SQL
I have an application which needs to load data from a remote server (businesses
I have a PHP Code, that uses a web service to query some data.
I have a WCF service and Im looking to stream some files from server
We have a process that is getting data in real time and adding records

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.