Пример #1
0
 public abstract void SetPosition(Silo silo, LayoutContext element, double coordinate, double size, List <LayoutContext> elementsToBePositioned);
Пример #2
0
        public override double GetDesiredSpace(LayoutContext element, double minimumSize)
        {
            double desiredSpace = Math.Max(element.Size.Width.HasInternalValue ? element.Size.Width.InternalValue : element.DockableCollection.DesiredSize.Width, minimumSize);

            return(desiredSpace);
        }
Пример #3
0
 public abstract bool IsStretchable(LayoutContext element);
Пример #4
0
 protected abstract double MinBoundary(LayoutContext element, double edgeBoundary);
Пример #5
0
 protected abstract void GetFixedSpaceInternal(LayoutContext root, bool inVaryingGroup, ref double fixedSpace, ref int varyingGroupCount, double minimumSize, List <LayoutContext> elementsToBePositioned);
Пример #6
0
 public abstract int GetRemainingDepth(Silo silo, LayoutContext element, List <LayoutContext> elementsToBePositioned);
Пример #7
0
 public override bool IsStretchable(LayoutContext element)
 {
     return(!element.Size.Height.HasUserValue && !element.Size.Height.IsSplitterActive &&
            element.DockableCollection.VerticalContentAlignment == System.Windows.VerticalAlignment.Stretch);
 }
Пример #8
0
 public override void SetPosition(Silo silo, LayoutContext element, double coordinate, double size, List <LayoutContext> elementsToBePositioned)
 {
     element.Top = coordinate;
     element.Size.Height.SetInternalValue(size);
 }
Пример #9
0
 public abstract double GetPreceedingCoordinate(LayoutContext element);
Пример #10
0
 public abstract double GetPeersMaxDesiredSpace(LayoutContext element, double minimumSize, IEnumerable <LayoutContext> elementsToBePositioned);
Пример #11
0
 public abstract LayoutContext GetNextDescendant(Silo silo, LayoutContext element, List <LayoutContext> elementsToBePositioned);
Пример #12
0
 public abstract double GetDesiredSpace(LayoutContext element, double minimumSize);
Пример #13
0
 public double GetAvailableSpace(Silo silo, LayoutContext element, double baseCoordinate, double totalAvailableSpace, List <LayoutContext> elementsToBePositioned)
 {
     return(MinBoundary(element, totalAvailableSpace) - baseCoordinate);
 }