Skip to content

ag-csharp/Avalonia.ExtendedToolkit

 
 

Repository files navigation

Avalonia.ExtendedToolkit

alt text

Avalonia.ExtendedTool wants to port some controls from the WPF to Avalonia.

Most styles / ideas where taken from:

etc.

Nugets


Usage


Please have a look at the example app or in the wiki on how to use the controls.

Solution Structure


  • Avalonia.Controlz: library which can be merge to the Avalonia Project
  • Avalonia.ExampleApp: Example Application for the Extended Toolkit
  • Avalonia.ExtendedToolkit: library which have special controls and styles

How to add the styles to your project


<Application.Styles>
	<StyleInclude Source="avares://Avalonia.Themes.Default/DefaultTheme.xaml"/>
	<StyleInclude Source="resm:Avalonia.Controls.DataGrid.Themes.Default.xaml?assembly=Avalonia.Controls.DataGrid" />
	<StyleInclude Source="avares://Avalonia.ExtendedToolkit/Styles/Generic.xaml"/>
</Application.Styles>

Set Color in App.xaml Styles like this i.e.:

<StyleInclude Source="avares://Avalonia.ExtendedToolkit/Styles/Themes/Dark.Blue.xaml"/>

or use the ThemeManager (App.xaml.cs):

public override void OnFrameworkInitializationCompleted()
{
   if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
   {
        var window=new MainWindow();
		ThemeManager.Instance.EnableTheme(window);
        desktop.MainWindow = window;
   }

   base.OnFrameworkInitializationCompleted();
}

About

Extended Controls for Avalonia UI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%