﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace zComp.ViewModel
{
    [DataContract]
    public class zProfileTilesPanel : zProfilePanel
    {
        public zProfileTilesPanel() 
            : base()
        {
        }


        private uint? _columns = null;

        [DataMember]
        public uint? Columns
        {
            get
            {
                var result = GetValueOverride<zProfileTilesPanel, uint?>(el => el._columns, false);
                return GetDefaultValueOverride(result, null);
            }
            set
            {
                _columns = value;

                RaisePropertyChanged(() => Columns);
            }
        }

        private uint? _rows = null;

        [DataMember]
        public uint? Rows
        {
            get
            {
                var result = GetValueOverride<zProfileTilesPanel, uint?>(el => el._rows, false);
                return GetDefaultValueOverride(result, null);
            }
            set
            {
                _rows = value;

                RaisePropertyChanged(() => Rows);
            }
        }

        private uint? _itemSpacing = null;

        [DataMember]
        public uint? ItemSpacing
        {
            get
            {
                var result = GetValueOverride<zProfileTilesPanel, uint?>(el => el._itemSpacing, false);
                return GetDefaultValueOverride(result, (uint)0);
            }
            set
            {
                _itemSpacing = value;

                RaisePropertyChanged(() => ItemSpacing);
            }
        }
    }
}
