Remove/ Get Rid of Oursearching.com Virus and Fix Redirects
Reviewed by 0x000216
on
Wednesday, May 21, 2014
Rating: 5
Usage of ObservableCollection class and INotifyCollectionChanged interface in WPF Data Binding
Usage of ObservableCollection class and INotifyCollectionChanged interface in WPF Data Binding
The ObservableCollection is one of the most important features of WPF data binding. ObservableCollection is a generic dynamic data collection that provides notifications (using an interface "INotifyCollectionChanged") when items get added, removed, or when the whole collection is refreshed.
Namespace for ObservableCollection: System.Collections.ObjectModel
Syntax for ObservableCollection:
[SerializableAttribute]
public class ObservableCollection : Collection,
INotifyCollectionChanged, INotifyPropertyChanged
ObservableCollection has a lot of properties, methods, events, explicit interface implementations. Get a complete list on MSDN.
Main feature of the ObservableCollection are the events it raises when the items it contains change. When in your WPF application, you make any changes like remove/add/edit item in the ObservableCollection, the ObservableCollection updates the view controls to which it is binded because it internally implements INotifyCollectionChanged and INotifyPropertyChanged interfaces which are responsible for updating the view. INotifyCollectionChanged interface exposes the CollectionChanged event, an event that should be raised whenever the underlying collection changes.
INotifyCollectionChanged Interface: If you are using ObservableCollection, as I already mentioned, you don't need to implement INotifyCollectionChanged interface because it is already implemented in this class. But, if you want to use List instead of ObservableCollection, you will have to surely implement INotifyCollectionChanged if you want your view to get updated when any change is made to your List.
Implementation of INotifyCollectionChanged
public class ViewModelBase : INotifyCollectionChanged
{
#region INotifyCollectionChanged
public event NotifyCollectionChangedEventHandler CollectionChanged;
private void OnNotifyCollectionChanged(NotifyCollectionChangedEventArgs args)
{
if (this.CollectionChanged != null)
{
this.CollectionChanged(this, args);
}
}
#endregion INotifyCollectionChanged
}
Similarly, Implementation of INotifyPropertyChanged
public class ViewModelBase : INotifyPropertyChanged
{
#region INotifyPropertyChanged
public event PropertyChangedEventHandler PropertyChanged;
protected void OnPropertyChanged(string propertyName)
{
if (PropertyChanged != null)
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
#endregion INotifyPropertyChanged
}
You can inherit ViewModelBase class where you want to implement INotifyCollectionChanged and INotifyPropertyChanged interfaces.
ObservableCollection Example:
I found a very good and simple example of ObservableCollection in WPF on CSharpCorner. Although, the author is not using MVVM pattern here for the sake of simplicity, you can convert this example to MVVM also.
Another example on Implementation of INotifyCollectionChanged and INotifyPropertyChanged
Usage of ObservableCollection class and INotifyCollectionChanged
interface in WPF Data Binding
Reviewed by 0x000216
on
Wednesday, May 21, 2014
Rating: 5
Get Rid of Lpmxbox600.com Pop-ups and Protect the Computer
Reviewed by 0x000216
on
Wednesday, May 21, 2014
Rating: 5
Remove/ Delete Win.Trojan.Chiton-227 Virus and Protect the Privacy
Reviewed by 0x000216
on
Wednesday, May 21, 2014
Rating: 5
Remove/ Get Rid of Trojan:JS/Miuref.A Virus and Fix Chaos
Reviewed by 0x000216
on
Wednesday, May 21, 2014
Rating: 5
Delete/ Remove Trojan:Win32/Wysotot.gen!A Virus Thoroughly
Reviewed by 0x000216
on
Wednesday, May 21, 2014
Rating: 5
Course Settings in WPLMS theme
- Sidebar: Select the sidebar you want to place in the course page. Sidebars are created in the section Appearance->Widgets by the administrator.
- Excellence Badge: The badges are given on completion of the course and after achieving a certain percentage in the quiz i.e. the Badge Percentage which can be adjusted in the next setting. It is not necessary that every course taker will get the badge.
- Badge Percentage: This is the minimum percentage required by the students to have a badge for the course.
- Badge Title: You can set the title for the badge given after completion of the course like for a Maths course, you can set the title as Maths Champion which a student will get only after receiving the Badge Percentage .
- Completion Certificate: If set Show, after the course is completed each student who passes the course will get this certificate of completion which is printable as well as downloadable. You can design the certificate according to your requirements.Follow the tutorial in the relevant section.Even after the course has expired the student can log in and view/print/download her certificate of completion.
- Passing Percentage: The minimum percentage required to pass the course.
- Total Duration of Course: Total duration of the course is the total time for which the student can access the course by logging into the site. After the duration has expired, the user will not be able to view the course content.
- Total Number of Students in Course: Initially while creating the course the number of students is set to 0.
- Course Curriculum: This setting help the instructor to create the curriculum of the course by arranging the units, quiz and categorizing it in sections. Add Section enables the instructor to add a section and name it. Add Unit enables the instructor to add units which has been created earlier. The units can further be arranged under different by dragging and dropping. Add Quiz allows the instructor to add quiz after unit , section or anywhere the instructor wish to place the quiz. All the three i.e Section, Unit, Quiz are draggable and can be arranged likewise.
- Pre required course: This is the pre requisite of doing the course i.e. if some course is selected , then that course must be finished before taking this new course.
- Course Forum: Link here the course with the respective course forum.
- Course Group: Link here the course with the respective course group.
- Course Completion Message: This message would be shown after the completion of the course.
Course Settings in WPLMS theme
Reviewed by 0x000216
on
Wednesday, May 21, 2014
Rating: 5
w3af - Open Source Web Application Security Scanner
w3af, is a Web Application Attack and Audit Framework. The w3af core and it’s plugins are fully written in python, it identifies more than 200 vulnerabilities and reduce your site’s overall risk exposure. Identify vulnerabilities like SQL Injection, Cross-Site Scripting, Guessable credentials, Unhandled application errors and PHP misconfigurations.
Changelog v1.6
- Improved performance: your scans will run faster
- Improved quality: 1300+ unittests are run after each change to make sure we don’t add any regressions
- Now you’ll be able to easily integrate w3af into other projects with a simple import w3af
- Better documentation
w3af - Open Source Web Application Security Scanner
Reviewed by 0x000216
on
Wednesday, May 21, 2014
Rating: 5