![]() ![]() UnitHeight = UnitSizeRequested + (Height % UnitSizeRequested) / verticalUnitCount UnitWidth = UnitSizeRequested + (Width % UnitSizeRequested) / horizontalUnitCount Int verticalUnitCount = (int)(Height / UnitSizeRequested) īool dashArray = new bool Int horizontalUnitCount = (int)(Width / UnitSizeRequested) when the control allocates the size, we will arrange the children Protected override void OnSizeAllocated(double width, double height) View.SetValue(VerticalUnitsProperty, value) Public static void SetVerticalUnits(BindableObject view, int value) Return (int)view.GetValue(VerticalUnitsProperty) Public static int GetVerticalUnits(BindableObject view) ![]() ![]() ![]() Public static readonly BindableProperty VerticalUnitsProperty =īindableProperty.CreateAttached("VerticalUnits", typeof(int), typeof(FlowLayout), 1) #region attached properties: VerticalUnitsProperty View.SetValue(HorizontalUnitsProperty, value) Public static void SetHorizontalUnits(BindableObject view, int value) Return (int)view.GetValue(HorizontalUnitsProperty) Public static int GetHorizontalUnits(BindableObject view) Public static readonly BindableProperty HorizontalUnitsProperty =īindableProperty.CreateAttached("HorizontalUnits", typeof(int), typeof(FlowLayout), 1) #region attached properties: HorizontalUnitsProperty
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |