AppBarButton.WPF 0.4.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package AppBarButton.WPF --version 0.4.2                
NuGet\Install-Package AppBarButton.WPF -Version 0.4.2                
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="AppBarButton.WPF" Version="0.4.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AppBarButton.WPF --version 0.4.2                
#r "nuget: AppBarButton.WPF, 0.4.2"                
#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 AppBarButton.WPF as a Cake Addin
#addin nuget:?package=AppBarButton.WPF&version=0.4.2

// Install AppBarButton.WPF as a Cake Tool
#tool nuget:?package=AppBarButton.WPF&version=0.4.2                

AppBarButton.WPF

AppBarButton for WPF

This is a simple implementation of the AppBarButton for WPF.

Usage

<Window x:Class="AppBarButton.WPF.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:AppBarButton.WPF"
        xmlns:appbarbtn="https://github.com/ChrisPulman/AppBarButton.WPF"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <appbarbtn:AppBarButton Content="adobe_acrobat" Icon="adobe_acrobat" />
    </Grid>
</Window>

Icon

The Icon is a enum that is used to find the icon in the Assets\AppBar folder. The icon is a 48x48 Canvas file. These start with ab_. The icons begining with md_ are from the Material Design Icons. https://pictogrammers.com/library/mdi/

You can add your own icons by setting the IconData property with a suitable path of your choice.

Themes

The theme is a ResourceDictionary that is merged into the main ResourceDictionary. The default theme is /AppBarButton.WPF;component/Themes/Generic.xaml. There is also a Light theme is /AppBarButton.WPF;component/Themes/AppBarButton.Light.xaml. There is also a Dark theme is /AppBarButton.WPF;component/Themes/AppBarButton.Dark.xaml.

Custom Themes

You can create your own theme by creating a new ResourceDictionary and merging it into the main ResourceDictionary. Create based on the following:

<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/AppBarButton.WPF;component/Themes/AppBarButton.xaml" />
    </ResourceDictionary.MergedDictionaries>

    
    <Color x:Key="AccentColor">#1ba1e2</Color>
    <SolidColorBrush x:Key="Accent" Color="{DynamicResource AccentColor}" />
    <SolidColorBrush x:Key="AppBarButtonBorder" Color="#919191" />
    <SolidColorBrush x:Key="AppBarButtonBorderHover" Color="#d1d1d1" />
    <SolidColorBrush x:Key="AppBarButtonBorderPressed" Color="#d1d1d1" />
    <SolidColorBrush x:Key="AppBarButtonBorderDisabled" Color="#515151" />
    <SolidColorBrush x:Key="AppBarButtonIconBackgroundPressed" Color="{DynamicResource AccentColor}" />
    <SolidColorBrush x:Key="AppBarButtonIconForegroundPressed" Color="#d1d1d1" />
    <SolidColorBrush x:Key="AppBarButtonText" Color="#d1d1d1" />
    <SolidColorBrush x:Key="AppBarButtonTextHover" Color="#d1d1d1" />
    <SolidColorBrush x:Key="AppBarButtonTextPressed" Color="#d1d1d1" />
    <SolidColorBrush x:Key="AppBarButtonTextDisabled" Color="#515151" />
</ResourceDictionary>
Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net7.0-windows7.0 is compatible.  net8.0-windows was computed. 
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.6.2

    • No dependencies.
  • net6.0-windows7.0

    • No dependencies.
  • net7.0-windows7.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on AppBarButton.WPF:

Package Downloads
CrissCross.WPF.UI

A Reactive Navigation Framework for ReactiveUI

CrissCross.WPF.Plot

A Reactive Navigation Framework for ReactiveUI

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 153 10/1/2024
1.0.1 457 3/25/2024
0.4.2 533 3/20/2023
0.4.1 224 3/13/2023
0.4.0 247 3/12/2023
0.3.0 222 3/12/2023
0.2.0 211 3/12/2023
0.1.0 204 3/12/2023

Compatability with Net 6 / 7 and net462