- /// <summary>
- /// Child property to specify desired width
- /// </summary>
- internal int LayoutWidthSpecificationFixed
- {
- get
- {
- return _widthPolicy;
- }
- set
- {
- _widthPolicy = value;
- _measureSpecificationWidth = new MeasureSpecification(new LayoutLength(value), MeasureSpecification.ModeType.Exactly);
- Size2D.Width = value;
- _layout?.RequestLayout();
- }
- }
-
- /// <summary>
- /// Child property to specify desired height
- /// </summary>
- internal int LayoutHeightSpecificationFixed
- {
- get
- {
- return _heightPolicy;
- }
- set
- {
- _heightPolicy = value;
- _measureSpecificationHeight = new MeasureSpecification(new LayoutLength(value), MeasureSpecification.ModeType.Exactly);
- Size2D.Height = value;
- _layout?.RequestLayout();
- }
- }
-
- /// <summary>
- /// Child property to specify desired width, use MatchParent/WrapContent)
- /// </summary>
- internal ChildLayoutData LayoutWidthSpecification
- {
- get
- {
- return (ChildLayoutData)_widthPolicy;
- }
- set
- {
- _widthPolicy = (int)value;
- }
- }
-
- /// <summary>
- /// Child property to specify desired height, use MatchParent/WrapContent)
- /// </summary>
- internal ChildLayoutData LayoutHeightSpecification
- {
- get
- {
- return (ChildLayoutData)_heightPolicy;
- }
- set
- {
- _heightPolicy = (int)value;
- }
- }
-