.Net Interview Questions and Answers

Search:

How are WPF observable collections different from simple .NET collections? (.NET WPF Interview questions)

By : Shiv Prasad Koirala | Mar 26th, 2014 | Views : 2423 | Comments : 0 Bookmark and Share

If you are preparing for WPF interviews do not forget to download WPF Interview questions with answer book PDF from here.


Simple .NET collections do not notify the UI automatically when elements are added or removed from them. So when we update simple .NET collection's we need to send refresh events back to the WPF UI for rebinding the collection.


"ObservableCollection" are specialized collection which updates the UI automatically and immediately when new elements are added and removed from the collection.


"ObservableCollection" implement's "INotifyCollectionChanged "interface. This interface exposes "CollectionChanged" event which gets raised when elements are added or removed to the collection.


Below is a simple code which creates "ObservableCollection" collection which is binded with a list.


ObservableCollection<Person> person = new ObservableCollection<Person>();
lstNames.ItemsSource = person;


Below is one more important WPF Interview questions which is asked in all WPF interviews as the first question. Below is an awesome youtube video which answers this question in more detail.


 
Rate this Article :
1 Star
2 Stars
3 Stars
4 Stars
5 Stars
1 1 1 2 1
 
 
 
 

.NET interview questions 6th edition (Sixth edition) - By Shivprasad Koirala

In this article we will explain .NET interview questions 6th edition (Sixth edition) - By Shivprasad Koirala.... Read More

What is the difference between Stored Procedures and Function (SQL Server interview question with answers)?

In this article we will explain what is the difference between Stored Procedures and Function.For more articles and videos visit us on www.questpond.com... Read More

Explain MVC application life cycle?

In this article we will explain MVC application life cycle.For more articles and videos visit us on www.questpond.com... Read More

C# Design pattern interview questions with answers: - How Singleton is different from Static class?

In this article we will explain How Singleton is different from Static class.... Read More

WCF interview questions and answers: - What is the difference between Service endpoint and Client endpoint?

In this article we will explain What is the difference between Service endpoint and Client endpoint.... Read More

.NET interview questions 6th edition (Sixth edition) - By Shivprasad Koirala

In this article we will explain .NET interview questions 6th edition (Sixth edition) - By Shivprasad Koirala.... Read More

What is the difference between Stored Procedures and Function (SQL Server interview question with answers)?

In this article we will explain what is the difference between Stored Procedures and Function.For more articles and videos visit us on www.questpond.com... Read More

Explain MVC application life cycle?

In this article we will explain MVC application life cycle.For more articles and videos visit us on www.questpond.com... Read More

C# Design pattern interview questions with answers: - How Singleton is different from Static class?

In this article we will explain How Singleton is different from Static class.... Read More

WCF interview questions and answers: - What is the difference between Service endpoint and Client endpoint?

In this article we will explain What is the difference between Service endpoint and Client endpoint.... Read More

Article Categories

Learn in Hindi