widthPolicy = value;
if (widthPolicy >= 0)
{
- if (heightPolicy >= 0) // Policy an exact value
- {
- // Create Size2D only both _widthPolicy and _heightPolicy are set.
- Size2D = new Size2D(widthPolicy, heightPolicy);
- }
+ SizeWidth = widthPolicy;
}
layout?.RequestLayout();
}
heightPolicy = value;
if (heightPolicy >= 0)
{
- if (widthPolicy >= 0) // Policy an exact value
- {
- // Create Size2D only both _widthPolicy and _heightPolicy are set.
- Size2D = new Size2D(widthPolicy, heightPolicy);
- }
+ SizeHeight = heightPolicy;
}
layout?.RequestLayout();
}
}
Object.InternalRetrievingPropertyVector2ActualVector3(view.SwigCPtr, View.Property.SIZE, view.internalSize2D.SwigCPtr);
- // Update NUI stored internal size informations only both widthPolicy and heightPolicy are fixed.
- if(view.widthPolicy >= 0 && view.heightPolicy >= 0)
- {
- view.widthPolicy = view.internalSize2D.Width;
- view.heightPolicy = view.internalSize2D.Height;
- }
return view.internalSize2D;
}
);
}
Object.InternalRetrievingPropertyVector3(view.SwigCPtr, View.Property.SIZE, view.internalSize.SwigCPtr);
- // Update NUI stored internal size informations only both widthPolicy and heightPolicy are fixed.
- if(view.WidthSpecification >= 0 && view.HeightSpecification >= 0)
- {
- view.WidthSpecification = (int)System.Math.Ceiling(view.internalSize.Width);
- view.HeightSpecification = (int)System.Math.Ceiling(view.internalSize.Height);
- }
return view.internalSize;
}
);