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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T08:08:26+00:00 2026-06-16T08:08:26+00:00

I have a customer class which has a byte array property. The application uses

  • 0

I have a customer class which has a byte array property.
The application uses the byte array as a source for an image.
When I change this array, the UI doesn’t update (since byte[] is not an ObservableCollection).

When can I do to force the UI to refresh?

EDIT : the image is saved as a byte array because that how it sits in the DB(varbinary(MAX)). I tried changing the type to IList but that popped errors in nhibernate : could not determine type for System..IList

  • 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-16T08:08:29+00:00Added an answer on June 16, 2026 at 8:08 am

    Have your class implement INotifyPropertyChanged

    As soon as the Byte array changes, raise the PropertyChanged event.

    For example:

    class Customer : INotifyPropertyChanged
    {
        private byte[] byteArray;
    
        public byte[] ByteArray
        {
            get
            {
                return byteArray;
            }
            set
            {
                if (value != byteArray)
                {
                    byteArray = value;
                    RaisePropertyChanged("ByteArray");
                }
            }
        }
    
        private void RaisePropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName);
            }
        }
    
    
        public event PropertyChangedEventHandler PropertyChanged;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Customer class which has a representative field....this field is initially blank
Say I have a class Customer which has a property FirstName . Then I
In a WPF application following MVVM pattern I have a Customer class which has
Let's say I have a class Customer, which has a property customerType. I have
I have a Customer class that contains a property, MyProperty, which is of a
I have a customer class which has both PhoneNumber and Email properties. Using DataAnnotations
I have a abstract class called Customer which has some attributes shared amongst all
I have class(Customer) which holds more than 200 string variables as property. I'm using
I have a Customer which has Addresses: public class Customer { public int Id
I have a Customer class which has all the account info.(it does NOT extend

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.