Example #1
0
 /// <summary>
 ///     Default ctor.
 /// </summary>
 internal Enumerator(ColumnDefinitionCollection collection)
 {
     _collection     = collection;
     _index          = -1;
     _version        = _collection != null ? _collection._version : -1;
     _currentElement = collection;
 }
Example #2
0
 // Token: 0x06008946 RID: 35142 RVA: 0x002547AF File Offset: 0x002529AF
 internal Enumerator(ColumnDefinitionCollection collection)
 {
     this._collection     = collection;
     this._index          = -1;
     this._version        = ((this._collection != null) ? this._collection._version : -1);
     this._currentElement = collection;
 }
        /// <summary>
        /// Initialize a new instance of the GridLayout class.
        /// </summary>
        public GridLayout()
        {
            _columns = new ColumnDefinitionCollection();
            _rows = new RowDefinitionCollection();

            // We need to request a measure/arrange cycle whenever definitions are changed
            _columns.NeedMeasure += new EventHandler(OnNeedMeasure);
            _rows.NeedMeasure += new EventHandler(OnNeedMeasure);
        }
Example #4
0
		public Grid ()
		{
			column_definitions = new ColumnDefinitionCollection (this);
			row_definitions = new RowDefinitionCollection (this);
		}