Xamarin.FragmentPage 1.0.0

.NET Standard 1.0
Install-Package Xamarin.FragmentPage -Version 1.0.0
dotnet add package Xamarin.FragmentPage --version 1.0.0
<PackageReference Include="Xamarin.FragmentPage" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xamarin.FragmentPage --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Xamarin.FragmentPage, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Xamarin.FragmentPage as a Cake Addin
#addin nuget:?package=Xamarin.FragmentPage&version=1.0.0

// Install Xamarin.FragmentPage as a Cake Tool
#tool nuget:?package=Xamarin.FragmentPage&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Xamarin.FragmentPage

This extension for Xamarin.forms allows the placement of any number of pages in a layout. The pages are wrapped in views and can have a predefined size in the layout. This approach works with iOS, Android and Windows UWP.

Getting Started

Usage

As you can see in the following example, you can set different pages in a layout in a predefined size. In the example 3 pages were placed in the layout. For more details, the test project can be viewed.

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:fragment="clr-namespace:Cinary.Xamarin.Fragment;assembly=Cinary.Xamarin.Fragment.FragmentPage"
             x:Class="Xamarin.FragmentPage.Test.Views.MainPage">

    <ScrollView>
        <StackLayout HorizontalOptions="FillAndExpand" VerticalOptions="CenterAndExpand">
            <fragment:FragmentPage
                HeightRequest="251"
                HorizontalOptions="FillAndExpand">
                <fragment:FragmentPage.Content>
                    <ContentPage
                        BackgroundColor="Firebrick">
                        <Label Text="Fragment Page 1" HorizontalOptions="Center" VerticalOptions="Center" />
                    </ContentPage>
                </fragment:FragmentPage.Content>
            </fragment:FragmentPage>

            <fragment:FragmentPage
                HeightRequest="251"
                HorizontalOptions="FillAndExpand">
                <fragment:FragmentPage.Content>
                    <ContentPage
                        BackgroundColor="GreenYellow">
                        <Label Text="Fragment Page 2" HorizontalOptions="Center" VerticalOptions="Center" />
                    </ContentPage>
                </fragment:FragmentPage.Content>
            </fragment:FragmentPage>

            <fragment:FragmentPage
                HeightRequest="251"
                HorizontalOptions="FillAndExpand">
                <fragment:FragmentPage.Content>
                    <ContentPage
                        BackgroundColor="Green">
                        <Label Text="Fragment Page 3" HorizontalOptions="Center" VerticalOptions="Center" />
                    </ContentPage>
                </fragment:FragmentPage.Content>
            </fragment:FragmentPage>
        </StackLayout>
    </ScrollView>
</ContentPage>

Info

Be free and make suggestions or improvements.

License

Copyright (c) 2018 Ahmet Cavus
Licensed under the MIT license.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard1.0 netstandard1.1 netstandard1.2 netstandard1.3 netstandard1.4 netstandard1.5 netstandard1.6 netstandard2.0 netstandard2.1
.NET Framework net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid monoandroid70 monoandroid80
MonoMac monomac
MonoTouch monotouch
Tizen tizen30 tizen40 tizen60
Universal Windows Platform uap uap10.0 uap10.0.15063
Windows Phone wp8 wp81 wpa81
Windows Store netcore netcore45 netcore451
Xamarin.iOS xamarinios xamarinios10
Xamarin.Mac xamarinmac xamarinmac20
Xamarin.TVOS xamarintvos xamarintvos10
Xamarin.WatchOS xamarinwatchos xamarinwatchos10
Compatible target framework(s)
Additional computed target framework(s)
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
1.0.0 959 4/7/2018