Eliseev.MauiXamlBase64ImageToolkit 1.0.0

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

// Install Eliseev.MauiXamlBase64ImageToolkit as a Cake Tool
#tool nuget:?package=Eliseev.MauiXamlBase64ImageToolkit&version=1.0.0

Very simple package to use base64 image in maui-xaml app. If you need to use a base64 image and don't want to have infrastructure code in your business logic, this package is for you.

To use - first initialize the package in your code (for have a link from the application to the library)


public static class MauiProgram
{
    public static MauiApp CreateMauiApp()
    {
        ...
        Eliseev.MauiXamlBase64ImageToolkit.Controls.Init();
    }
}

You can then use base64 images in your code:

  • add namespace to your xaml file xmlns:base64Controls="http://eliseev/base64Image"
  • use ImageBase64 base <base64Controls:ImageBase64 Base64Source={binding youBase64String}/>

For example:

<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:base64Controls="http://eliseev/base64Image"
             x:Class="YourNameSpace.SomePage">
    <vertical stack layout>
        <base64Controls:ImageBase64
            Height request = "200"
            Base64Source="{binding youBase64String}"/>
    </vertical stack layout>
</ContentPage>

** ImageBase64 is a version of Image, so it has all of its functionality.

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.  net7.0-windows10.0.19041 is compatible.  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.
  • net7.0-windows10.0.19041

    • 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.0 150 8/1/2023