FmgLib.MauiMarkup 8.0.6.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package FmgLib.MauiMarkup --version 8.0.6.1                
NuGet\Install-Package FmgLib.MauiMarkup -Version 8.0.6.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FmgLib.MauiMarkup" Version="8.0.6.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FmgLib.MauiMarkup --version 8.0.6.1                
#r "nuget: FmgLib.MauiMarkup, 8.0.6.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install FmgLib.MauiMarkup as a Cake Addin
#addin nuget:?package=FmgLib.MauiMarkup&version=8.0.6.1

// Install FmgLib.MauiMarkup as a Cake Tool
#tool nuget:?package=FmgLib.MauiMarkup&version=8.0.6.1                

using Microsoft.Maui.Layouts;
using FmgLib.MauiMarkup;

namespace MyOrderApp.Views;

public partial class HomePage : BasePage<HomePageViewModel>
{
    public HomePage(HomePageViewModel viewModel) : base(viewModel, "Home Page")
    {
    }

    public override void Build()
    {
        this
        .ContentFmg(
            new VerticalStackLayout()
            .PaddingFmg(10)
            .ChildrenFmg(
                new SearchBar()
                .PlaceholderFmg("Ürünlerde Ara.")
                .MarginFmg(10)
                .AssignFmg(out var search)
                .SearchCommandFmg(BindingContext.SearchCommand)
                .BindFmg(SearchBar.SearchCommandParameterProperty, "Text", source: search),

                new Frame()
                .CornerRadiusFmg(15)
                .BackgroundColorFmg(Colors.Blue)
                .BorderColorFmg(Colors.Blue)
                .HeightRequestFmg(150)
                .MarginFmg(new Thickness(15,7))
                .PaddingFmg(0)
                .ContentFmg(
                    new Grid()
                    .ColumnDefinitionsFmg(e => e.Star(5).Star(5))
                    .RowDefinitionsFmg(e => e.Star(5).Star(5))
                    .ChildrenFmg(
                        new Frame()
                        .RowFmg(0)
                        .ColumnFmg(0)
                        .MarginFmg(new Thickness(0,20,0,0))
                        .PaddingFmg(0)
                        .CornerRadiusFmg(0)
                        .BackgroundColorFmg(Colors.DarkBlue)
                        .BorderColorFmg(Colors.DarkBlue)
                        .ContentFmg(
                            new Label()
                            .TextFmg("%50 İndirim")
                            .TextColorFmg(Colors.White)
                            .FontAttributesFmg(FontAttributes.Bold)
                            .FontSizeFmg(20)
                            .CenterFmg()
                        ),

                        new Label()
                        .TextFmg("Tüm Unlu Mamüllerde her gün saat 21:00'dan sonra!")
                        .FontSizeFmg(12)
                        .RowFmg(1)
                        .ColumnFmg(0)
                        .TextColorFmg(Colors.White)
                        .FontAttributesFmg(FontAttributes.Italic)
                        .MarginFmg(new Thickness(10,3,0,0)),

                        new Image()
                        .SourceFmg("white_bread.png")
                        .RowFmg(0)
                        .ColumnFmg(1)
                        .RowSpanFmg(2)
                        .SizeRequestFmg(150,100)
                        .OpacityFmg(.8)
                    )
                ),

                new Grid()
                .ColumnDefinitionsFmg(e => e.Star(7).Star(3))
                .FillHorizontalFmg()
                .PaddingFmg(10)
                .ChildrenFmg(
                    new Label()
                    .TextFmg("Son Ürünler")
                    .FontAttributesFmg(FontAttributes.Bold)
                    .FontSizeFmg(18)
                    .CenterVerticalFmg()
                    .ColumnFmg(0)
                    .AlignStartFmg(),


                    new Label()
                    .TextFmg("Tümünü Gör")
                    .FontSizeFmg(15)
                    .CenterVerticalFmg()
                    .ColumnFmg(1)
                    .AlignEndFmg()
                    .TextDecorationsFmg(TextDecorations.Underline)
                    .GestureRecognizersFmg(
                        new TapGestureRecognizer()
                        .CommandFmg(BindingContext.GotoAllProductsCommand)
                    )
                ),

                new CollectionView()
                .SelectionModeFmg(SelectionMode.None)
                .BindFmg(CollectionView.ItemsSourceProperty, "Products")
                .ItemsLayoutFmg(new LinearItemsLayout(ItemsLayoutOrientation.Horizontal).ItemSpacingFmg(10))
                .EmptyViewFmg(
                    new VerticalStackLayout()
                    .ChildrenFmg(
                        new Label()
                        .TextFmg("Kayıt Yoktur.")
                        .TextColorFmg(Colors.Red)
                        .FontAttributesFmg(FontAttributes.Bold)
                        .FontSizeFmg(18)
                    )
                    .CenterFmg()
                )
                .ItemTemplateFmg(() =>
                    new Frame()
                    .CornerRadiusFmg(15)
                    .BorderColorFmg(Colors.LightGray)
                    .BackgroundColorFmg(Colors.LightGray)
                    .MinimumHeightRequestFmg(200)
                    .MaximumWidthRequestFmg(200)
                    .PaddingFmg(5)
                    .ContentFmg(
                        new Grid()
                        .RowDefinitionsFmg(e => e.Star(1).Star(6).Star(2).Star(1))
                        .PaddingFmg(5)
                        .ChildrenFmg(
                            new Grid()
                            .RowFmg(0)
                            .ColumnDefinitionsFmg(e => e.Star(6).Star(4))
                            .ChildrenFmg(
                                new ImageButton()
                                .BindFmg(ImageButton.SourceProperty, nameof(ProductVM.IsFavorite), converter: new BoolToFavoriteImageConverter())
                                .BackgroundColorFmg(Colors.Transparent)
                                .AlignStartFmg()
                                .SizeRequestFmg(30, 30)
                                .CommandFmg(BindingContext.ChangeFavoriteCommand)
                                .BindFmg(ImageButton.CommandParameterProperty, "."),

                                new Frame()
                                .CornerRadiusFmg(20)
                                .HeightRequestFmg(25)
                                .WidthRequestFmg(50)
                                .PaddingFmg(0)
                                .BackgroundColorFmg(Colors.Red)
                                .BorderColorFmg(Colors.Red)
                                .ColumnFmg(1)
                                .BindFmg(Microsoft.Maui.Controls.Frame.IsVisibleProperty, nameof(ProductVM.IsDiscount))
                                .ContentFmg(
                                    new Label()
                                    .BindFmg(Label.TextProperty, nameof(ProductVM.DiscountRate))
                                    .FontSizeFmg(11)
                                    .FontAttributesFmg(FontAttributes.Bold)
                                    .TextColorFmg(Colors.White)
                                    .CenterFmg()
                                )
                            ),

                            new Image()
                            .BindFmg(Image.SourceProperty, nameof(ProductVM.Image))
                            .SizeRequestFmg(80,80)
                            .RowFmg(1)
                            .CenterHorizontalFmg(),

                            new VerticalStackLayout()
                            .RowFmg(2)
                            .ChildrenFmg(
                                new Label()
                                .BindFmg(Label.TextProperty, nameof(ProductVM.Name))
                                .FontAttributesFmg(FontAttributes.Bold)
                                .FontSizeFmg(11)
                                .AlignStartFmg()
                                .LineBreakModeFmg(LineBreakMode.TailTruncation)
                                .FontAutoScalingEnabledFmg(true),

                                new HorizontalStackLayout()
                                .SpacingFmg(2)
                                .ChildrenFmg(
                                    new Label()
                                    .BindFmg(Label.TextProperty, nameof(ProductVM.Price))
                                    .BindFmg(Label.TextDecorationsProperty, nameof(ProductVM.IsDiscount), converter: new BoolToTextDecorationConverter())
                                    .BindFmg(Label.FontSizeProperty, nameof(ProductVM.IsDiscount), converter: new BoolToFontSizeConverter())
                                    .FontAttributesFmg(FontAttributes.Bold)
                                    .CenterVerticalFmg(),

                                    new Label()
                                    .TextColorFmg(Colors.Red)
                                    .FontAttributesFmg(FontAttributes.Bold)
                                    .CenterVerticalFmg()
                                    .BindFmg(Label.IsVisibleProperty, nameof(ProductVM.IsDiscount))
                                    .BindFmg(Label.TextProperty, nameof(ProductVM.DiscountPrice)),

                                    new Label()
                                    .TextFmg("/")
                                    .FontSizeFmg(10)
                                    .CenterVerticalFmg()
                                    .TextColorFmg(Colors.DarkSlateGray),

                                    new Label()
                                    .FontSizeFmg(10)
                                    .CenterVerticalFmg()
                                    .TextColorFmg(Colors.DarkSlateGray)
                                    .BindFmg(Label.TextProperty, nameof(ProductVM.Unit))
                                )
                            ),

                            new Button()
                            .RowFmg(3)
                            .MarginFmg(new Thickness(0,5,0,0))
                            .PaddingFmg(0)
                            .TextFmg("Sepete Ekle")
                            .BackgroundColorFmg(Colors.Green)
                            .FontSizeFmg(12)
                            .FontAttributesFmg(FontAttributes.Bold)
                            .CenterHorizontalFmg()
                            .HeightRequestFmg(35)
                            .WidthRequestFmg(100)
                            .CommandFmg(BindingContext.AddProductBasketCommand)
                            .BindFmg(Button.CommandParameterProperty, ".")
                        )
                    )
                ),

                new Grid()
                .ColumnDefinitionsFmg(e => e.Star(7).Star(3))
                .FillHorizontalFmg()
                .PaddingFmg(10)
                .ChildrenFmg(
                    new Label()
                    .TextFmg("Kategoriler")
                    .FontAttributesFmg(FontAttributes.Bold)
                    .FontSizeFmg(18)
                    .CenterVerticalFmg()
                    .ColumnFmg(0)
                    .AlignStartFmg(),


                    new Label()
                    .TextFmg("Tümünü Gör")
                    .FontSizeFmg(15)
                    .CenterVerticalFmg()
                    .ColumnFmg(1)
                    .AlignEndFmg()
                    .TextDecorationsFmg(TextDecorations.Underline)
                    .GestureRecognizersFmg(
                        new TapGestureRecognizer()
                        .CommandFmg(BindingContext.GotoAllCategoriesCommand)
                    )
                ),

                new FlexLayout()
                .ItemsSourcesFmg(BindingContext.Categories)
                .AssignFmg(out var flex)
                .WrapFmg(FlexWrap.Wrap)
                .FlexBasisFmg(FlexBasis.Auto)
                .ItemTemplatesFmg(new DataTemplate(() => 
                    new Frame()
                    .CornerRadiusFmg(15)
                    .BorderColorFmg(Colors.LightGray)
                    .BackgroundColorFmg(Colors.LightGray)
                    .MinimumHeightRequestFmg(30)
                    .WidthRequestFmg(180)
                    .PaddingFmg(0)
                    .MarginFmg(new Thickness(1,0,5,5))
                    .FlexBasisFmg(FlexBasis.Auto)
                    .ContentFmg(
                        new Grid()
                        .ColumnDefinitionsFmg(e => e.Star(3).Star(7))
                        .PaddingFmg(5)
                        .ChildrenFmg(
                            new Image()
                            .BindFmg(Image.SourceProperty, nameof(SubCategoryVM.Icon))
                            .SizeRequestFmg(30,30)
                            .ColumnFmg(0)
                            .CenterVerticalFmg(),

                            new Label()
                            .BindFmg(Label.TextProperty, nameof(SubCategoryVM.Name))
                            .TextColorFmg(Colors.CornflowerBlue)
                            .FontAttributesFmg(FontAttributes.Bold)
                            .FontSizeFmg(12)
                            .ColumnFmg(1)
                            .FontAutoScalingEnabledFmg(true)
                            .CenterVerticalFmg()
                        )
                    )
                ))
            )
            .FillHorizontalFmg()
        );
    }
}


Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
8.8.6 0 11/17/2024
8.8.5.1 193 10/21/2024
8.8.5 114 10/20/2024
8.8.4 219 10/19/2024
8.8.3 202 10/2/2024
8.8.2 120 9/27/2024
8.8.1 198 9/8/2024
8.8.0 136 8/30/2024
8.7.0 141 8/19/2024
8.6.7 130 8/17/2024
8.6.6 130 8/15/2024
8.6.5 118 8/15/2024
8.6.4 128 8/13/2024
8.6.3 121 8/5/2024
8.6.2 77 8/3/2024
8.6.1 111 7/27/2024
8.6.0 136 7/21/2024
8.5.1 93 7/20/2024
8.5.0 205 6/15/2024
8.4.2 104 6/6/2024
8.4.1 113 6/1/2024
8.4.0 99 5/31/2024
8.4.0-pre1.0.0 60 5/25/2024
8.3.1 111 5/21/2024
8.3.1-prev1.0.3 145 5/19/2024
8.3.1-prev1.0.2 56 5/17/2024
8.3.1-prev1.0.1 55 5/14/2024
8.3.1-prev1.0.0 51 5/13/2024
8.3.0 113 5/12/2024
8.3.0-prev1.0.1 56 5/11/2024
8.3.0-prev1.0.0 51 5/11/2024
8.2.3 115 5/11/2024
8.2.3-prev1.0.3 61 5/10/2024
8.2.3-prev1.0.2 54 5/10/2024
8.2.3-prev1.0.1 56 5/8/2024
8.2.3-prev1.0.0 71 5/6/2024
8.2.2 93 5/3/2024
8.2.1 56 5/2/2024
8.2.0 59 5/2/2024
8.1.0 122 4/17/2024
8.1.0-prev1.0.0 68 4/16/2024
8.0.20-prev1.0.2 65 4/15/2024
8.0.20-prev1.0.1 84 4/15/2024
8.0.20-prev1.0.0 94 4/15/2024
8.0.14 185 3/23/2024
8.0.7 238 2/23/2024
8.0.6.3 280 2/6/2024
8.0.6.2 296 1/25/2024
8.0.6.1 275 1/19/2024
8.0.6 333 1/19/2024
8.0.3.1 285 1/19/2024
8.0.3 298 1/19/2024
8.0.0 311 1/19/2024