internal void SetFlexDirection(FlexLayout.FlexDirection flexDirection) { LayoutPINVOKE.FlexLayout_SetFlexDirection(swigCPtr, (int)flexDirection); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
internal FlexLayout.FlexDirection GetFlexDirection() { FlexLayout.FlexDirection ret = (FlexLayout.FlexDirection)LayoutPINVOKE.FlexLayout_GetFlexDirection(swigCPtr); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
/// <summary> /// The method called when the button 1 is clicked /// </summary> /// <param name="sender">Button instance</param> /// <param name="e">Event arguments</param> private void Button1Clicked(object sender, Button.ClickEventArgs e) { FlexLayout Layout = (FlexLayout)FlexView.Layout; FlexLayout.FlexDirection newDirection = Layout.Direction + 1; if (newDirection > FlexLayout.FlexDirection.RowReverse) { newDirection = FlexLayout.FlexDirection.Column; } Layout.Direction = newDirection; FlexView.Layout = Layout; }
internal FlexLayout.FlexDirection GetFlexDirection() { FlexLayout.FlexDirection ret = (FlexLayout.FlexDirection)Interop.FlexLayout.FlexLayout_GetFlexDirection(swigCPtr); return ret; }
internal void SetFlexDirection(FlexLayout.FlexDirection flexDirection) { Interop.FlexLayout.FlexLayout_SetFlexDirection(swigCPtr, (int)flexDirection); RequestLayout(); }