Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
        public void AreAlignSelf(string expected, FlexAlignSelf alignSelf)
        {
            var flex = new FluentFlex();

            flex.WithAlignSelf(alignSelf);

            var classname = flex.Class(classProvider);

            Assert.Equal(expected, classname);
        }
Exemplo n.º 3
0
        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);
 }
Exemplo n.º 5
0
 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);
Exemplo n.º 7
0
 public static TControl AlignSelf <TControl>(this TControl control, FlexAlignSelf value)
     where TControl : IReflectedPrimitive <Xamarin.Forms.View>
 {
     control.Attributes.SetAttribute(FlexAlignSelfAttribute, value);
     return(control);
 }