SDS2.Plugin.UI
0.0.1-preview
See the version list below for details.
dotnet add package SDS2.Plugin.UI --version 0.0.1-preview
NuGet\Install-Package SDS2.Plugin.UI -Version 0.0.1-preview
<PackageReference Include="SDS2.Plugin.UI" Version="0.0.1-preview" />
paket add SDS2.Plugin.UI --version 0.0.1-preview
#r "nuget: SDS2.Plugin.UI, 0.0.1-preview"
// Install SDS2.Plugin.UI as a Cake Addin #addin nuget:?package=SDS2.Plugin.UI&version=0.0.1-preview&prerelease // Install SDS2.Plugin.UI as a Cake Tool #tool nuget:?package=SDS2.Plugin.UI&version=0.0.1-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 | Versions 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. |
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 | 82 | 4/15/2024 |
0.0.8-preview | 62 | 4/4/2024 |
0.0.7-preview | 123 | 1/2/2024 |
0.0.6-preview | 71 | 1/2/2024 |
0.0.5-preview | 127 | 11/16/2023 |
0.0.4-preview | 91 | 9/20/2023 |
0.0.3-preview | 96 | 7/13/2023 |
0.0.2-preview | 87 | 6/27/2023 |
0.0.1-preview | 79 | 6/20/2023 |
Alpha testing