Esri.Calcite.Maui 0.1.0-preview1

Prefix Reserved
This is a prerelease version of Esri.Calcite.Maui.
dotnet add package Esri.Calcite.Maui --version 0.1.0-preview1
                    
NuGet\Install-Package Esri.Calcite.Maui -Version 0.1.0-preview1
                    
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="Esri.Calcite.Maui" Version="0.1.0-preview1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Esri.Calcite.Maui" Version="0.1.0-preview1" />
                    
Directory.Packages.props
<PackageReference Include="Esri.Calcite.Maui" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Esri.Calcite.Maui --version 0.1.0-preview1
                    
#r "nuget: Esri.Calcite.Maui, 0.1.0-preview1"
                    
#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.
#addin nuget:?package=Esri.Calcite.Maui&version=0.1.0-preview1&prerelease
                    
Install Esri.Calcite.Maui as a Cake Addin
#tool nuget:?package=Esri.Calcite.Maui&version=0.1.0-preview1&prerelease
                    
Install Esri.Calcite.Maui as a Cake Tool

.NET MAUI

Usage<a name="usage" />

Add the CalciteResources ResourceDictionary to your App.xaml Merged Directionary resources inside the default XamlControlsResources to get access to default styles and resources. Dark/Light mode is automatically handled and adjust to system or app settings.

    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Resources/Styles/Colors.xaml" />
                <ResourceDictionary Source="Resources/Styles/Styles.xaml" />
                <CalciteResources xmlns="http://schemas.esri.com/calcite/2024"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>

Next register Calcite in MauiProgram.cs:

using Esri.Calcite.Maui;

namespace MauiTests
{
    public static class MauiProgram
    {
        public static MauiApp CreateMauiApp()
        {
            var builder = MauiApp.CreateBuilder();
            builder
                .UseMauiApp<App>()
                .ConfigureFonts(fonts =>
                {
                    fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
                    fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
                }).UseCalcite(); // Register Calcite

            return builder.Build();
        }
    }
}

If you don't want the default implicit Calcite styles, place the CalciteResources entry in App.xaml right before the Styles.xaml entry.

Using Brush resources

Brushes and colors can be referenced as static resources.

<Border Background="{StaticResource CalciteBrandBrush}">
  <Label Text="Hello Calcite" TextColor="{AppThemeBinding Light={StaticResource CalciteTextInverseLightColor}, Dark={StaticResource CalciteTextInverseDarkColor}}" />
</Border>

For a full list of calcite brushes and colors see Color and Brush resources.

Symbol Font

CalciteUIIconsSmallFontFamily, CalciteUIIconsMediumFontFamily and CalciteUIIconsLargeFontFamily FontFamilies are fonts with a set of symbols generated from the Calcite UI Icons repo. This font FontFamily can directly be referred to by its name CalciteUIIcons[Small/Medium/Large]FontFamily.

Example:

<Label Text="{StaticResource CalciteUIIcons_Glyph_Map}" 
	   FontFamily="CalciteUIIconsMediumFontFamily" />

For a full list of Glyph Resource IDs refer to the sample apps and the Calcite-UI-Icons repo.

Markup Extensions

CalciteIconImageSource : Converts an Icon to an Image Source. Example:

<Image>
    <Image.Source>
        <calcite:CalciteIconImageSource Color="Blue" Icon="MagnifyingGlass" Size="40" Scale="Large" />
    </Image.Source>
</Image>

CalciteIconImageExtension : Markup extension converting an Icon to an CalciteIconImageSource. Example:

<Image Source="{calcite:CalciteIconImage Color=Blue, Icon=MagnifyingGlass,Size=40, Scale=Large}" />

Control styles

  • Buttons: CalcitePrimaryButtonStyle, CalciteSecondaryButtonStyle, CalciteDangerButtonStyle, CalciteDangerSecondaryButtonStyle
  • ActivityIndicator: CalciteActivityIndicatorStyle
  • IndicatorView: CalciteIndicatorViewStyle
  • BoxView: CalciteBoxViewStyle
  • CheckBox: CalciteCheckBoxStyle
  • Label: CalciteLabelStyle
  • ProgressBar: CalciteProgressBarStyle
  • Slider: CalciteSliderStyle
  • Switch: CalciteSwitchStyle
  • Page: CalcitePageStyle
  • Shell: CalciteShellStyle
  • NavigationPage: CalciteNavigationPageStyle
  • TabbedPage: CalciteTabbedPageStyle
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.  net8.0-windows10.0.19041 is compatible.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net9.0-windows10.0.19041 is compatible. 
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
0.1.0-preview1 293 3/7/2025