[]
        
(Showing Draft Content)

C1.WPF.Schedule.CoverElementsPane.GetLaneSize

GetLaneSize Method

GetLaneSize(SizingType, object, double, int)

Returns the size which should be used to draw cover element according to specified sizing type, available space and total lane count.

Declaration
protected virtual double GetLaneSize(SizingType sizingType, object dataContext, double availableSpace, int totalLanes)
Parameters
Type Name Description
SizingType sizingType

The SizingType value.

object dataContext

The cover element data context. It can be used to determine additional sizing conditions in overrides.

double availableSpace

The double value specifying avaliable size.

int totalLanes

The int value specifying the number of intersecting elements (1 for the single element without intersection).

Returns
Type Description
double

The double value specifying actual cover element size (height or width depending on the orientation.