Drastic.Maui.DebugRainbows 1.0.11

dotnet add package Drastic.Maui.DebugRainbows --version 1.0.11                
NuGet\Install-Package Drastic.Maui.DebugRainbows -Version 1.0.11                
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="Drastic.Maui.DebugRainbows" Version="1.0.11" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Drastic.Maui.DebugRainbows --version 1.0.11                
#r "nuget: Drastic.Maui.DebugRainbows, 1.0.11"                
#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 Drastic.Maui.DebugRainbows as a Cake Addin
#addin nuget:?package=Drastic.Maui.DebugRainbows&version=1.0.11

// Install Drastic.Maui.DebugRainbows as a Cake Tool
#tool nuget:?package=Drastic.Maui.DebugRainbows&version=1.0.11                

NuGet Version License

Drastic.Maui.DebugRainbows

Drastic.Maui.DebugRainbows is a fork of Xamarin.Forms.DebugRainbows, a UI Library for helping visualize layout issues. It currently supports iOS, Catalyst, and Android.

1 2 3

How To Use

Add AddDebugRainbowsSupport to your MauiBuilder.

		var builder = MauiApp.CreateBuilder();
		builder
			.UseMauiApp<App>()
			.AddDebugRainbowsSupport()
            .ConfigureFonts(fonts =>
			{
				fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
				fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
			});

Then, add the following setters to your Application Resources.

    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Resources/Styles/Colors.xaml" />
                <ResourceDictionary Source="Resources/Styles/Styles.xaml" />
            </ResourceDictionary.MergedDictionaries>

            <Style ApplyToDerivedTypes="True" TargetType="ContentPage">
                <Setter Property="debug:DebugRainbow.ShowColors" Value="true"/>
                <Setter Property="debug:DebugRainbow.ShowGrid" Value="false" />
                <Setter Property="debug:DebugRainbow.HorizontalItemSize" Value="20" />
                <Setter Property="debug:DebugRainbow.VerticalItemSize" Value="20" />
                <Setter Property="debug:DebugRainbow.MajorGridLineColor" Value="Red" />
                <Setter Property="debug:DebugRainbow.MajorGridLineInterval" Value="8" />
                <Setter Property="debug:DebugRainbow.MajorGridLineOpacity" Value=".5" />
                <Setter Property="debug:DebugRainbow.MajorGridLineWidth" Value="6" />
                <Setter Property="debug:DebugRainbow.GridLineColor" Value="Red" />
                <Setter Property="debug:DebugRainbow.GridLineOpacity" Value=".5" />
                <Setter Property="debug:DebugRainbow.GridLineWidth" Value="1" />
                <Setter Property="debug:DebugRainbow.GridPadding" Value="0" />
                <Setter Property="debug:DebugRainbow.GridOrigin" Value="Center" />
                <Setter Property="debug:DebugRainbow.MakeGridRainbows" Value="true" />
                <Setter Property="debug:DebugRainbow.Inverse" Value="false" />
            </Style>
        </ResourceDictionary>
    </Application.Resources>
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-android33.0 is compatible.  net7.0-ios was computed.  net7.0-ios16.1 is compatible.  net7.0-maccatalyst was computed.  net7.0-maccatalyst16.1 is compatible.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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.
  • net7.0

    • No dependencies.
  • net7.0-android33.0

    • No dependencies.
  • net7.0-ios16.1

    • No dependencies.
  • net7.0-maccatalyst16.1

    • No dependencies.

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.11 392 3/7/2023