FormValidationExample.ViewModel.InterestSelectorViewModel.InterestSelectorViewModel C# (CSharp) Method

InterestSelectorViewModel() public method

public InterestSelectorViewModel ( ) : System
return System
        public InterestSelectorViewModel()
        {
            Interests = new ObservableCollection<InterestItemViewModel>
            {
                new InterestItemViewModel("Music", this),
                new InterestItemViewModel("Movies", this),
                new InterestItemViewModel("Sports", this),
                new InterestItemViewModel("Shopping", this),
                new InterestItemViewModel("Hunting", this),
                new InterestItemViewModel("Books", this),
                new InterestItemViewModel("Physics", this),
                new InterestItemViewModel("Comics", this)
            };

            ConfigureValidationRules();
        }