/// <summary> /// Applies the align-self rule to the current flex definition. /// </summary> /// <param name="alignSelf">Align-self to be apply.</param> /// <returns>Next rule reference.</returns> public IFluentFlexAll WithAlignSelf(FlexAlignSelf alignSelf) { currentFlexDefinition = GetDefinition(); currentFlexDefinition.AlignSelf = alignSelf; Dirty(); return(this); }
public void AreAlignSelf(string expected, FlexAlignSelf alignSelf) { var flex = new FluentFlex(); flex.WithAlignSelf(alignSelf); var classname = flex.Class(classProvider); Assert.Equal(expected, classname); }
public void AreAlignSelf_With_Breakpoints(string expected, FlexAlignSelf alignSelf, Breakpoint breakpoint) { var flex = new FluentFlex(); flex.WithAlignSelf(alignSelf); flex.WithBreakpoint(breakpoint); var classname = flex.Class(classProvider); Assert.Equal(expected, classname); }
public static TView AlignSelf <TView>(this TView view, FlexAlignSelf value) where TView : View { FlexLayout.SetAlignSelf(view, value); return(view); }
public static TView AlignSelf <TView>(this TView view, FlexAlignSelf value) where TView : View { VerifyExperimental(); FlexLayout.SetAlignSelf(view, value); return(view); }
public static TBindable SetAlignSelf <TBindable>(this TBindable bindable, FlexAlignSelf value) where TBindable : BindableObject => bindable.Set(FlexLayout.AlignSelfProperty, value);
public static TControl AlignSelf <TControl>(this TControl control, FlexAlignSelf value) where TControl : IReflectedPrimitive <Xamarin.Forms.View> { control.Attributes.SetAttribute(FlexAlignSelfAttribute, value); return(control); }