public void Top() => TestPropertiesSet(v => v?.Top(), (View.VerticalOptionsProperty, LayoutOptions.End, LayoutOptions.Start));
public void ItemsSource() { var source = new string[] { }; TestPropertiesSet(l => l.ItemsSource(source), (BindableLayout.ItemsSourceProperty, source)); }
public void ItemTemplateSelector() { var selector = new Selector(); TestPropertiesSet(l => l.ItemTemplateSelector(selector), (BindableLayout.ItemTemplateSelectorProperty, selector)); }
public void TextLeft() => TestPropertiesSet(l => l.TextLeft(), (Label.HorizontalTextAlignmentProperty, TextAlignment.Start, TextAlignment.End));
public void RightExpand() => TestPropertiesSet(v => v.RightExpand(), (View.HorizontalOptionsProperty, LayoutOptions.End, LayoutOptions.StartAndExpand));
public void Left() => TestPropertiesSet(v => v.Left(), (View.HorizontalOptionsProperty, LayoutOptions.End, LayoutOptions.Start));
public void TextBottom() => TestPropertiesSet(l => l?.TextBottom(), (Label.VerticalTextAlignmentProperty, TextAlignment.Start, TextAlignment.End));
public void Bottom() => TestPropertiesSet(v => v.Bottom(), (View.VerticalOptionsProperty, LayoutOptions.Start, LayoutOptions.End));
public void TopExpand() => TestPropertiesSet(v => v.TopExpand(), (View.VerticalOptionsProperty, LayoutOptions.End, LayoutOptions.StartAndExpand));
public void RowWithSpan() => TestPropertiesSet( b => b.Row(1, 2), (Grid.RowProperty, 0, 1), (Grid.RowSpanProperty, 1, 2));
public void FillHorizontal() => TestPropertiesSet(v => v.FillHorizontal(), (View.HorizontalOptionsProperty, LayoutOptions.End, LayoutOptions.Fill));
public void Row() => TestPropertiesSet(b => b.Row(1), (Grid.RowProperty, 0, 1));
public void FillVertical() => TestPropertiesSet(v => v?.FillVertical(), (View.VerticalOptionsProperty, LayoutOptions.End, LayoutOptions.Fill));
public void CenterVertical() => TestPropertiesSet(v => v?.CenterVertical(), (View.VerticalOptionsProperty, LayoutOptions.End, LayoutOptions.Center));
public void TextCenterVertical() => TestPropertiesSet(l => l.TextCenterVertical(), (Label.VerticalTextAlignmentProperty, TextAlignment.Start, TextAlignment.Center));
public void BottomExpand() => TestPropertiesSet(v => v.BottomExpand(), (View.VerticalOptionsProperty, LayoutOptions.End, LayoutOptions.EndAndExpand));
public void Right() => TestPropertiesSet(v => v?.Right(), (View.HorizontalOptionsProperty, LayoutOptions.Start, LayoutOptions.End));
public void CenterExpandVertical() => TestPropertiesSet(v => v.CenterExpandVertical(), (View.VerticalOptionsProperty, LayoutOptions.End, LayoutOptions.CenterAndExpand));
public void TextTop() => TestPropertiesSet(l => l?.TextTop(), (Label.VerticalTextAlignmentProperty, TextAlignment.End, TextAlignment.Start));
public void FillExpandVertical() => TestPropertiesSet(v => v.FillExpandVertical(), (View.VerticalOptionsProperty, LayoutOptions.End, LayoutOptions.FillAndExpand));
public void TextCenter() => TestPropertiesSet( l => l?.TextCenter(), (Label.HorizontalTextAlignmentProperty, TextAlignment.Start, TextAlignment.Center), (Label.VerticalTextAlignmentProperty, TextAlignment.Start, TextAlignment.Center));
public void Center() => TestPropertiesSet( v => v.Center(), (View.HorizontalOptionsProperty, LayoutOptions.End, LayoutOptions.Center), (View.VerticalOptionsProperty, LayoutOptions.End, LayoutOptions.Center));
public void LeftExpand() => TestPropertiesSet(v => v.LeftExpand(), (View.HorizontalOptionsProperty, LayoutOptions.Start, LayoutOptions.EndAndExpand));
public void PaddingUniform() => TestPropertiesSet(l => l?.Padding(1), (PaddingElement.PaddingProperty, new Thickness(0), new Thickness(1)));
public void EmptyView() { var view = new BoxView(); TestPropertiesSet(l => l.EmptyView(view), (BindableLayout.EmptyViewProperty, view)); }
public void PaddingHorizontalVertical() => TestPropertiesSet(l => l?.Padding(1, 2), (PaddingElement.PaddingProperty, new Thickness(0), new Thickness(1, 2)));
public void ItemTemplate() { var template = new DataTemplate(() => new BoxView()); TestPropertiesSet(l => l.ItemTemplate(template), (BindableLayout.ItemTemplateProperty, template)); }
public void Paddings() => TestPropertiesSet(l => l?.Paddings(left: 1, top: 2, right: 3, bottom: 4), (PaddingElement.PaddingProperty, new Thickness(0), new Thickness(1, 2, 3, 4)));
public void TextRight() => TestPropertiesSet(l => l?.TextRight(), (Label.HorizontalTextAlignmentProperty, TextAlignment.End, TextAlignment.Start));
public void EndExpand() => TestPropertiesSet(v => v?.EndExpand(), (View.HorizontalOptionsProperty, LayoutOptions.End, LayoutOptions.EndAndExpand));