EleCho.WpfSuite.FluentDesign 0.0.2

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

// Install EleCho.WpfSuite.FluentDesign as a Cake Tool
#tool nuget:?package=EleCho.WpfSuite.FluentDesign&version=0.0.2                

EleCho.WpfSuite.FluentDesign

FluentDesign theme for EleCho.WpfSuite

Usage

Add resource dictionary to App.xaml

<Application x:Class="WpfTest.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:wsfd="https://schemas.elecho.dev/wpfsuite-design/fluent"
             StartupUri="MainWindow.xaml">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>

                
                <wsfd:FluentResources/>

            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
</Application>

Set the theme of your application:

/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
    protected override void OnStartup(StartupEventArgs e)
    {
        // Call this method
        ApplicationThemeUtilities.SetApplicationTheme(ApplicationTheme.Auto);

        base.OnStartup(e);
    }
}

Ensure theme in every window:

public partial class MainWindow : Window
{
    public MainWindow()
    {
        InitializeComponent();

        // Call this method
        ApplicationThemeUtilities.EnsureWindowTheme(this);
    }
}

Enjoy! Most of WPF Suite controls are in fluent design now!

<Window x:Class="WpfTest.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfTest"
        xmlns:ws="https://schemas.elecho.dev/wpfsuite"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">

    <ws:ScrollViewer Margin="12"
                     ScrollWithWheelDelta="True">
        <ws:StackPanel Spacing="8">
            <ws:TextBox Width="200"
                        Placeholder="This is a text box with placeholder"/>
            <ws:Image Source="/Assets/TestAvatar.jpg"
                      CornerRadius="10"/>
            <ws:Button Content="Some button"/>

            <StackPanel>
                <TextBlock Text="WrapPanel with spacing"/>
                <ItemsControl ItemsSource="{Binding TestItems}">
                    <ItemsControl.ItemsPanel>
                        <ItemsPanelTemplate>
                            <ws:WrapPanel HorizontalSpacing="8"
                                          VerticalSpacing="8"/>
                        </ItemsPanelTemplate>
                    </ItemsControl.ItemsPanel>
                </ItemsControl>
            </StackPanel>
        </ws:StackPanel>
    </ws:ScrollViewer>

</Window>
Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed.  net8.0-windows7.0 is compatible. 
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 is compatible.  net461 was computed.  net462 was computed.  net463 was computed.  net47 is compatible.  net471 was computed.  net472 was computed.  net48 is compatible.  net481 was computed. 
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.0.2 78 11/10/2024
0.0.1 112 8/31/2024