protected override void ApplyProps(UIViewProps props, IView parent) { if (props == null) { throw new ArgumentNullException(nameof(props)); } if (!(props is FlexboxLayoutProps layoutSettings)) { throw new ArgumentException("FlexboxLayout: The given settings is not FlexboxLayoutSettings"); } base.ApplyProps(props, parent); AlignItems = layoutSettings.AlignItems; Direction = layoutSettings.Direction; MarginBetween = layoutSettings.MarginBetween; if (Direction == FlexboxDirection.COLUMN || Direction == FlexboxDirection.COLUMN_REVERSE) { SizeY = 0f; } else { SizeX = 0f; } }
protected override void ApplyProps(UIViewProps props, IView parent) { base.ApplyProps(props, parent); }