SDS2.Plugin.UI 0.0.2-preview

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

// Install SDS2.Plugin.UI as a Cake Tool
#tool nuget:?package=SDS2.Plugin.UI&version=0.0.2-preview&prerelease                

Why Use This Library?

This library contains WPF themed components to match the design of SDS2.

Controls

You will find in this library that there are two types of controls. We have skinned controls, these are controls that automatically get the look of SDS2 without having to use a namespace. The other type of control are custom controls. These controls you have to prefix with a namespace to use.

Skinned

  • Button
  • CheckBox
  • Combobox
  • DatePicker
  • Expander
  • GroupBox
  • Label
  • RadioButton
  • TabControl
  • TabItem
  • TextBlock

Custom xmlns:sc="clr-namespace:SDS2.Plugin.UI.Controls;assembly=SDS2.Plugin.UI"

  • ButtonBar: Displays the four default buttons: Ok, Cancel, Reset, Help
  • SDS2DistanceInput: Accents an int input and will format it to the distance format
  • SDS2FileBrowser
  • SDS2FolderBrowser
  • SDS2Image
  • SDS2Section: A stylized version of the GroupBox
  • SDS2Spinner: A non-determinate progress bar
  • SDS2ToggleButton
  • SDS2UnitInput: A stylized textbox that will also display the unit of your choosing. The units are: Deg, Rad, Ksi, M, Mm, In, Ft

How to Use

app.xaml

<Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/SDS2.Plugin.UI;component/Themes/Dark.xaml"/>
                <ResourceDictionary Source="pack://application:,,,/SDS2.Plugin.UI;component/Themes/Light.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>

[Your]Window.xaml

<Window 
...
 xmlns:sc="clr-namespace:SDS2.Plugin.UI.Controls;assembly=SDS2.Plugin.UI"
 xmlns:sm="clr-namespace:SDS2.Plugin.UI.Models;assembly=SDS2.Plugin.UI"
 Style="{DynamicResource {x:Type Window}}"
>

<Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <sm:CommonDictionary Source="pack://application:,,,/SDS2.Plugin.UI;component/Resources/SDS2Icons.xaml"/>
                <sm:CommonDictionary Source="pack://application:,,,/SDS2.Plugin.UI;component/Themes/Generic.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
...
</Window>

Theming

There are two themes included in this package Light and Dark. To switch between the two call the following static method:

SDS2.Plugin.UI.Themes.ThemeSwitcher.SwitchTheme(Themes.Dark);

License

This library is licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net6.0-windows is compatible.  net7.0-windows was computed.  net8.0-windows was computed. 
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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.9-preview 80 4/15/2024
0.0.8-preview 60 4/4/2024
0.0.7-preview 121 1/2/2024
0.0.6-preview 69 1/2/2024
0.0.5-preview 125 11/16/2023
0.0.4-preview 87 9/20/2023
0.0.3-preview 94 7/13/2023
0.0.2-preview 85 6/27/2023
0.0.1-preview 77 6/20/2023

Alpha testing