Beispiel #1
0
        /// <summary>
        /// Resizes this grid track.
        /// </summary>
        /// <param name="value">The new length.</param>
        public void Resize(GridLength value)
        {
            if (Orientation == Template?.Orientation && value.IsStar)
            {
                throw new ArgumentException(DiagnosticMessages.GridTrack_Resize_InvalidStarLength(Orientation), nameof(value));
            }

            var oldValue = _length;

            if (oldValue != value)
            {
                _length = value;
                if (!VariantByContainer)
                {
                    SetMeasuredLength(0);
                }
                Owner.OnResized(this, oldValue);
            }
            Resizable?.OnResized(this);
            LayoutManager?.InvalidateMeasure();
        }
Beispiel #2
0
 internal LayoutZManager(LayoutManager inherit, Template template, DataSet dataSet, IReadOnlyList <Column> rowMatchColumns, Predicate <DataRow> where, IComparer <DataRow> orderBy)
     : base(inherit, template, dataSet, rowMatchColumns, where, orderBy, true)
 {
 }
 internal static void VerifyRowBindingRect(LayoutManager layoutManager, RowPresenter row, int rowBindingIndex, Rect expectedRect)
 {
     VerifyRowBindingRect(layoutManager, row.View, rowBindingIndex, expectedRect);
 }
Beispiel #4
0
 protected LayoutManager(LayoutManager inherit, Template template, DataSet dataSet, IReadOnlyList <Column> rowMatchColumns, Predicate <DataRow> where, IComparer <DataRow> orderBy, bool emptyContainerViewList)
     : base(inherit, template, dataSet, rowMatchColumns, where, orderBy, emptyContainerViewList)
 {
 }