Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace CommonType
- {
- public class CheckedListItem<T> : ViewModel
- {
- private bool isChecked;
- private T item;
- public CheckedListItem() { }
- public CheckedListItem(T item, bool isChecked = false)
- {
- this.item = item;
- this.isChecked = isChecked;
- }
- public T Item
- {
- get { return item; }
- set
- {
- item = value;
- OnPropertyChanged();
- }
- }
- public bool IsChecked
- {
- get { return isChecked; }
- set
- {
- isChecked = value;
- OnPropertyChanged();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement