Giter Site home page Giter Site logo

lanicon / biaui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yoshihiroito/biaui

0.0 1.0 0.0 12.19 MB

WPF dark theme and controls for .NET Core and .NET Framework

License: MIT License

Batchfile 0.04% PowerShell 0.02% C# 99.91% HLSL 0.03%

biaui's Introduction

Biaui

Biaui NuGet package .NET Core Version: >= 3.1 .NET Framework version: >= 4.7 MIT License

WPF dark theme and controls for .NET

Biaui.Showcase.csproj Biaui.Showcase.csproj

Biaui.Controls.Mock.csproj Biaui.Controls.Mock.csproj

JitPad(use Biaui) Biaui

Features

  • Dark color
  • Per Monitor DPI aware
  • Some specialized controls
    • Node editor
    • Number editor
    • Color picker
    • Multiple selectable treeview
    • and more...
  • Some lightweight standard controls
    • Reimplementation. about x20-30 faster than standard WPF controls

Target Frameworks

  • .NET 5.0
  • .NET Core 3.1
  • .NET Framework 4.7 or 4.7.2 or 4.8

Install

PM> Install-Package Biaui

Quick Start

Step1. Create Project and Add Biaui

> dotnet new wpf -o first-biaui
> cd first-biaui
> dotnet add package biaui

Step2. Add Biaui's resources

  • Open App.xaml
    • Add <ResourceDictionary Source="pack://application:,,,/Biaui;component/Styles.xaml" />
<Application x:Class="first_biaui.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:local="clr-namespace:first_biaui"
             StartupUri="MainWindow.xaml">
    <Application.Resources>
        <ResourceDictionary Source="pack://application:,,,/Biaui;component/Styles.xaml" />
    </Application.Resources>
</Application>

Step3. Use Biaui's Window

  • Open MainWindow.xaml
    • Add xmlns:controls="clr-namespace:Biaui.Controls;assembly=Biaui"
    • Change <Window to <controls:BiaWindow
    • Change </Window> to </controls:BiaWindow>
<controls:BiaWindow x:Class="first_biaui.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:controls="clr-namespace:Biaui.Controls;assembly=Biaui"
        xmlns:local="clr-namespace:first_biaui"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
    <Grid>

    </Grid>
</controls:BiaWindow>
  • Open MainWindow.xaml.cs
    • Remove : Window
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace first_biaui
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow
    {
        public MainWindow()
        {
            InitializeComponent();
        }
    }
}

Step4. Build and Run

> dotnet run

Biaui

Todo

  • More tutorial
  • More document
  • Light theme (white based)
    • Currently fixed in dark theme
  • Changeable accent color
    • Currently fixed in blue

Reference External Assets

Including External Assets

Including External Assets (Biaui.Extension)

Author

Yoshihiro Ito
Twitter: https://twitter.com/yoiyoi322
Email: [email protected]

License

MIT

biaui's People

Contributors

yoshihiroito avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.