Compare commits
5 Commits
@@ -5,13 +5,13 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- "dev"
|
- "dev"
|
||||||
paths:
|
paths:
|
||||||
- "SimpleToolkit.UI.WinUI.Converters**"
|
- "MSEssentials.UI.WinUI.Converters**"
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- "dev"
|
- "dev"
|
||||||
- "main"
|
- "main"
|
||||||
paths:
|
paths:
|
||||||
- "SimpleToolkit.UI.WinUI.Converters**"
|
- "MSEssentials.UI.WinUI.Converters**"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -24,8 +24,6 @@ jobs:
|
|||||||
uses: actions/setup-dotnet@v4
|
uses: actions/setup-dotnet@v4
|
||||||
with:
|
with:
|
||||||
dotnet-version: 8.0.x
|
dotnet-version: 8.0.x
|
||||||
- name: Add package source
|
|
||||||
run: dotnet nuget add source --name gitea --username SimpleToolkit --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text https://repos.mateuszskoczek.com/api/packages/SimpleToolkit/nuget/index.json
|
|
||||||
- name: Restore dependencies
|
- name: Restore dependencies
|
||||||
run: dotnet restore
|
run: dotnet restore
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- "main"
|
- "main"
|
||||||
paths:
|
paths:
|
||||||
- "SimpleToolkit.UI.WinUI.Converters**"
|
- "MSEssentials.UI.WinUI.Converters**"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -21,8 +21,6 @@ jobs:
|
|||||||
uses: actions/setup-dotnet@v4
|
uses: actions/setup-dotnet@v4
|
||||||
with:
|
with:
|
||||||
dotnet-version: 8.0.x
|
dotnet-version: 8.0.x
|
||||||
- name: Add package source
|
|
||||||
run: dotnet nuget add source --name gitea --username SimpleToolkit --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text https://repos.mateuszskoczek.com/api/packages/SimpleToolkit/nuget/index.json
|
|
||||||
- name: Restore dependencies
|
- name: Restore dependencies
|
||||||
run: dotnet restore
|
run: dotnet restore
|
||||||
- name: Build
|
- name: Build
|
||||||
@@ -62,15 +60,13 @@ jobs:
|
|||||||
uses: actions/setup-dotnet@v3
|
uses: actions/setup-dotnet@v3
|
||||||
with:
|
with:
|
||||||
dotnet-version: 8.0.x
|
dotnet-version: 8.0.x
|
||||||
- name: Add package source
|
|
||||||
run: dotnet nuget add source --name gitea --username SimpleToolkit --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text https://repos.mateuszskoczek.com/api/packages/SimpleToolkit/nuget/index.json
|
|
||||||
- name: Create NuGet package
|
- name: Create NuGet package
|
||||||
run: dotnet pack -c Release -p:Version=${{needs.version.outputs.version}} -p:PackageVersion=${{needs.version.outputs.version}} --output ./
|
run: dotnet pack -c Release -p:Version=${{needs.version.outputs.version}} -p:PackageVersion=${{needs.version.outputs.version}} --output ./
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: nuget
|
name: nuget
|
||||||
path: ./SimpleToolkit.UI.WinUI.Converters.${{needs.version.outputs.version}}.nupkg
|
path: ./MSEssentials.UI.WinUI.Converters.${{needs.version.outputs.version}}.nupkg
|
||||||
outputs:
|
outputs:
|
||||||
version: ${{needs.version.outputs.version}}
|
version: ${{needs.version.outputs.version}}
|
||||||
publish:
|
publish:
|
||||||
@@ -87,14 +83,12 @@ jobs:
|
|||||||
uses: actions/setup-dotnet@v3
|
uses: actions/setup-dotnet@v3
|
||||||
with:
|
with:
|
||||||
dotnet-version: 8.0.x
|
dotnet-version: 8.0.x
|
||||||
- name: Add package source
|
|
||||||
run: dotnet nuget add source --name gitea --username SimpleToolkit --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text https://repos.mateuszskoczek.com/api/packages/SimpleToolkit/nuget/index.json
|
|
||||||
- name: Publish
|
- name: Publish
|
||||||
run: dotnet nuget push ./SimpleToolkit.UI.WinUI.Converters.${{needs.pack.outputs.version}}.nupkg --source gitea --api-key ${{ secrets.PACKAGES_WRITE_TOKEN }} --skip-duplicate
|
run: dotnet nuget push ./MSEssentials.UI.WinUI.Converters.${{needs.pack.outputs.version}}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }}
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
uses: akkuman/gitea-release-action@v1
|
uses: akkuman/gitea-release-action@v1
|
||||||
with:
|
with:
|
||||||
tag_name: ${{needs.pack.outputs.version}}
|
tag_name: ${{needs.pack.outputs.version}}
|
||||||
name: ${{needs.pack.outputs.version}}
|
name: ${{needs.pack.outputs.version}}
|
||||||
files: |-
|
files: |-
|
||||||
SimpleToolkit.UI.WinUI.Converters.${{needs.pack.outputs.version}}.nupkg
|
MSEssentials.UI.WinUI.Converters.${{needs.pack.outputs.version}}.nupkg
|
||||||
2
LICENSE
2
LICENSE
@@ -1,6 +1,6 @@
|
|||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2026 SimpleToolkit
|
Copyright (c) 2026 MSEssentials
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
||||||
associated documentation files (the "Software"), to deal in the Software without restriction, including
|
associated documentation files (the "Software"), to deal in the Software without restriction, including
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SimpleToolkit.UI.WinUI.Converters", "SimpleToolkit.UI.WinUI.Converters\SimpleToolkit.UI.WinUI.Converters.csproj", "{6C5E0FB7-9E94-4F7D-B478-190E2A2C1D10}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MSEssentials.UI.WinUI.Converters", "MSEssentials.UI.WinUI.Converters\MSEssentials.UI.WinUI.Converters.csproj", "{6C5E0FB7-9E94-4F7D-B478-190E2A2C1D10}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
@@ -3,20 +3,20 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net8.0-windows10.0.19041.0</TargetFramework>
|
<TargetFramework>net8.0-windows10.0.19041.0</TargetFramework>
|
||||||
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
|
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
|
||||||
<RootNamespace>SimpleToolkit.UI.WinUI.Converters</RootNamespace>
|
<RootNamespace>MSEssentials.UI.WinUI.Converters</RootNamespace>
|
||||||
<RuntimeIdentifiers>win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
|
<RuntimeIdentifiers>win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
|
||||||
<UseWinUI>true</UseWinUI>
|
<UseWinUI>true</UseWinUI>
|
||||||
<UseRidGraph>true</UseRidGraph>
|
<UseRidGraph>true</UseRidGraph>
|
||||||
<PackageReadmeFile>README.md</PackageReadmeFile>
|
<PackageReadmeFile>README.md</PackageReadmeFile>
|
||||||
<EnableCoreMrtTooling Condition=" '$(BuildingInsideVisualStudio)' != 'true' ">false</EnableCoreMrtTooling>
|
<EnableCoreMrtTooling Condition=" '$(BuildingInsideVisualStudio)' != 'true' ">false</EnableCoreMrtTooling>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<Title>SimpleToolkit.UI.WinUI.Converters</Title>
|
<Title>MSEssentials.UI.WinUI.Converters</Title>
|
||||||
<Authors>Mateusz Skoczek</Authors>
|
<Authors>Mateusz Skoczek</Authors>
|
||||||
<Copyright>Mateusz Skoczek</Copyright>
|
<Copyright>Mateusz Skoczek</Copyright>
|
||||||
<PackageProjectUrl>https://repos.mateuszskoczek.com/SimpleToolkit/</PackageProjectUrl>
|
<PackageProjectUrl>https://repos.mateuszskoczek.com/MSEssentials/</PackageProjectUrl>
|
||||||
<PackageLicenseUrl>https://repos.mateuszskoczek.com/SimpleToolkit/SimpleToolkit.UI.WinUI.Converters/src/branch/main/LICENSE</PackageLicenseUrl>
|
<PackageLicenseUrl>https://repos.mateuszskoczek.com/MSEssentials/MSEssentials.UI.WinUI.Converters/src/branch/main/LICENSE</PackageLicenseUrl>
|
||||||
<PackageIcon>icon.png</PackageIcon>
|
<PackageIcon>icon.png</PackageIcon>
|
||||||
<RepositoryUrl>https://repos.mateuszskoczek.com/SimpleToolkit/SimpleToolkit.UI.WinUI.Converters</RepositoryUrl>
|
<RepositoryUrl>https://repos.mateuszskoczek.com/MSEssentials/MSEssentials.UI.WinUI.Converters</RepositoryUrl>
|
||||||
<Description>Set of helpers, class extensions, UI controls used in my other C# projects - XAML value converters for WinUI applications</Description>
|
<Description>Set of helpers, class extensions, UI controls used in my other C# projects - XAML value converters for WinUI applications</Description>
|
||||||
<EnableWindowsTargeting>true</EnableWindowsTargeting>
|
<EnableWindowsTargeting>true</EnableWindowsTargeting>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
@@ -34,6 +34,7 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.4.240211001" />
|
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.4.240211001" />
|
||||||
|
<PackageReference Include="MSEssentials.UI.Common.Converters" Version="1.0.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|
||||||
18
MSEssentials.UI.WinUI.Converters/ObjectToIntConverter.cs
Normal file
18
MSEssentials.UI.WinUI.Converters/ObjectToIntConverter.cs
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
using Microsoft.UI.Xaml.Data;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace MSEssentials.UI.WinUI.Converters
|
||||||
|
{
|
||||||
|
public class ObjectToIntConverter : MSEssentials.UI.Common.Converters.ObjectToIntConverter, IValueConverter
|
||||||
|
{
|
||||||
|
public object Convert(object value, Type targetType, object parameter, string language) =>
|
||||||
|
base.Convert(value);
|
||||||
|
|
||||||
|
public object ConvertBack(object value, Type targetType, object parameter, string language) =>
|
||||||
|
base.ConvertBack((int)value);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -5,18 +5,14 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace SimpleToolkit.UI.WinUI.Converters
|
namespace MSEssentials.UI.WinUI.Converters
|
||||||
{
|
{
|
||||||
public class ObjectToIntConverter : IValueConverter
|
public class ObjectToStringConverter : MSEssentials.UI.Common.Converters.ObjectToStringConverter, IValueConverter
|
||||||
{
|
{
|
||||||
public object Convert(object value, Type targetType, object parameter, string language)
|
public object Convert(object value, Type targetType, object parameter, string language) =>
|
||||||
{
|
base.Convert(value);
|
||||||
return (int)value;
|
|
||||||
}
|
|
||||||
|
|
||||||
public object ConvertBack(object value, Type targetType, object parameter, string language)
|
public object ConvertBack(object value, Type targetType, object parameter, string language) =>
|
||||||
{
|
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
57
MSEssentials.UI.WinUI.Converters/README.md
Normal file
57
MSEssentials.UI.WinUI.Converters/README.md
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
# MSEssentials.UI.WinUI.Converters
|
||||||
|
|
||||||
|
### Set of helpers, class extensions, UI controls used in my other C# projects
|
||||||
|
|
||||||
|
MSEssentials is package of useful classes, helpers, extensions and UI controls, I use in my C# projects. UI.WinUI.Converters subpackage contains XAML value converters for WinUI applications.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## NuGet registry status
|
||||||
|
|
||||||
|
| Subpackage | Status |
|
||||||
|
|--------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
|
| **MSEssentials.UI.WinUI.Converters** | [](https://www.nuget.org/packages/MSEssentials.UI.WinUI.Converters/) |
|
||||||
|
| MSEssentials.Extensions | [](https://www.nuget.org/packages/MSEssentials.Extensions/) |
|
||||||
|
| MSEssentials.AspNetCore.Attributes | [](https://www.nuget.org/packages/MSEssentials.AspNetCore.Attributes/) |
|
||||||
|
| MSEssentials.UI.Common.MVVM | [](https://www.nuget.org/packages/MSEssentials.UI.Common.MVVM/) |
|
||||||
|
| MSEssentials.UI.Common.Converters | [](https://www.nuget.org/packages/MSEssentials.UI.Common.Converters/) |
|
||||||
|
| MSEssentials.UI.WinUI.Behaviors | [](https://www.nuget.org/packages/MSEssentials.UI.WinUI.Behaviors/) |
|
||||||
|
| MSEssentials.UI.WinUI.Controls | [](https://www.nuget.org/packages/MSEssentials.UI.WinUI.Controls/) |
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- **ObjectToIntConverter** - converts any object to int (e.g. enums)
|
||||||
|
- **ObjectToStringConverter** - converts any object to string
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
|
||||||
|
Dependencies should be installed automatically with this package
|
||||||
|
|
||||||
|
- Microsoft.WindowsAppSDK 1.4.240211001
|
||||||
|
- MSEssentials.UI.Common.Converters
|
||||||
|
|
||||||
|
## Installation and usage
|
||||||
|
|
||||||
|
You can download package from official NuGet registry or .nupkg file itself from Releases tab.
|
||||||
|
|
||||||
|
**CLI:**
|
||||||
|
|
||||||
|
```
|
||||||
|
dotnet add package MSEssentials.UI.WinUI.Converters
|
||||||
|
```
|
||||||
|
|
||||||
|
**Package reference in .csproj file:**
|
||||||
|
|
||||||
|
```
|
||||||
|
<PackageReference Include="MSEssentials.UI.WinUI.Converters" Version="<version>" />
|
||||||
|
```
|
||||||
|
|
||||||
|
## Attribution and contribution
|
||||||
|
|
||||||
|
This project is open source on MIT License, so you can just copy and upload again to your repository. But according to the license, you must include information about the original author. You can find license [here](https://repos.mateuszskoczek.com/MSEssentials/MSEssentials.UI.WinUI.Converters/src/branch/main/LICENSE).
|
||||||
|
|
||||||
|
However, the preferred way to contribute would be to propose improvements in a pull request, through issues, or through other means of communication.
|
||||||
|
|
||||||
|
**Other sources:**
|
||||||
|
|
||||||
|
- Icon by [Icons8](icons8.com)
|
||||||
|
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 7.7 KiB |
52
README.md
52
README.md
@@ -1,10 +1,10 @@
|
|||||||
<p align="center"><img src=".gitea/readme/icon.png"/></p>
|
<p align="center"><img src=".gitea/readme/icon.png"/></p>
|
||||||
|
|
||||||
<h1 align="center">SimpleToolkit.UI.WinUI.Converters</h1>
|
<h1 align="center">MSEssentials.UI.WinUI.Converters</h1>
|
||||||
|
|
||||||
<h3 align="center"><b>Set of helpers, class extensions, UI controls used in my other C# projects</b></h3>
|
<h3 align="center"><b>Set of helpers, class extensions, UI controls used in my other C# projects</b></h3>
|
||||||
|
|
||||||
<p align="center">SimpleToolkit is package of useful classes, helpers, extensions and UI controls, I use in my C# projects. UI.WinUI.Converters subpackage contains XAML value converters for WinUI applications.</p>
|
<p align="center">MSEssentials is package of useful classes, helpers, extensions and UI controls, I use in my C# projects. UI.WinUI.Converters subpackage contains XAML value converters for WinUI applications.</p>
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
> [!Important]
|
> [!Important]
|
||||||
> **For Github users:**
|
> **For Github users:**
|
||||||
>
|
>
|
||||||
> This is only mirror repository. All changes are first uploaded to the repository <a href="https://repos.mateuszskoczek.com/SimpleToolkit/SimpleToolkit.UI.WinUI.Converters">here</a>. Releases are also published on original repository. However, Github repository handles issues and pull requests for better accessibility.
|
> This is only mirror repository. All changes are first uploaded to the repository <a href="https://repos.mateuszskoczek.com/MSEssentials/MSEssentials.UI.WinUI.Converters">here</a>. Releases are also published on original repository. However, Github repository handles issues and pull requests for better accessibility.
|
||||||
|
|
||||||
## NuGet registry status
|
## NuGet registry status
|
||||||
|
|
||||||
@@ -28,10 +28,10 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<b>SimpleToolkit.UI.WinUI.Converters</b>
|
<b>MSEssentials.UI.WinUI.Converters</b>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="https://repos.mateuszskoczek.com/SimpleToolkit/-/packages/nuget/simpletoolkit.ui.winui.converters/"><img src="https://img.shields.io/gitea/v/release/SimpleToolkit/SimpleToolkit.UI.WinUI.Converters?gitea_url=https%3A%2F%2Frepos.mateuszskoczek.com%2F&display_name=release&label=nuget"></a>
|
<a href="https://www.nuget.org/packages/MSEssentials.UI.WinUI.Converters/"><img src="https://img.shields.io/nuget/v/MSEssentials.UI.WinUI.Converters.svg?style=flat-square"></a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -41,58 +41,50 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
SimpleToolkit.Extensions
|
MSEssentials.Extensions
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="https://repos.mateuszskoczek.com/SimpleToolkit/-/packages/nuget/simpletoolkit.extensions/"><img src="https://img.shields.io/gitea/v/release/SimpleToolkit/SimpleToolkit.Extensions?gitea_url=https%3A%2F%2Frepos.mateuszskoczek.com%2F&display_name=release&label=nuget"></a>
|
<a href="https://www.nuget.org/packages/MSEssentials.Extensions/"><img src="https://img.shields.io/nuget/v/MSEssentials.Extensions.svg?style=flat-square"></a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
SimpleToolkit.Attributes
|
MSEssentials.AspNetCore.Attributes
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="https://repos.mateuszskoczek.com/SimpleToolkit/-/packages/nuget/simpletoolkit.attributes/"><img src="https://img.shields.io/gitea/v/release/SimpleToolkit/SimpleToolkit.Attributes?gitea_url=https%3A%2F%2Frepos.mateuszskoczek.com%2F&display_name=release&label=nuget"></a>
|
<a href="https://www.nuget.org/packages/MSEssentials.AspNetCore.Attributes/"><img src="https://img.shields.io/nuget/v/MSEssentials.AspNetCore.Attributes.svg?style=flat-square"></a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
SimpleToolkit.MVVM
|
MSEssentials.UI.Common.MVVM
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="https://repos.mateuszskoczek.com/SimpleToolkit/-/packages/nuget/simpletoolkit.mvvm/"><img src="https://img.shields.io/gitea/v/release/SimpleToolkit/SimpleToolkit.MVVM?gitea_url=https%3A%2F%2Frepos.mateuszskoczek.com%2F&display_name=release&label=nuget"></a>
|
<a href="https://www.nuget.org/packages/MSEssentials.UI.Common.MVVM/"><img src="https://img.shields.io/nuget/v/MSEssentials.UI.Common.MVVM.svg?style=flat-square"></a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
SimpleToolkit.UI.Models
|
MSEssentials.UI.Common.Converters
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="https://repos.mateuszskoczek.com/SimpleToolkit/-/packages/nuget/simpletoolkit.ui.models/"><img src="https://img.shields.io/gitea/v/release/SimpleToolkit/SimpleToolkit.UI.Models?gitea_url=https%3A%2F%2Frepos.mateuszskoczek.com%2F&display_name=release&label=nuget"></a>
|
<a href="https://www.nuget.org/packages/MSEssentials.UI.Common.Converters/"><img src="https://img.shields.io/nuget/v/MSEssentials.UI.Common.Converters.svg?style=flat-square"></a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
SimpleToolkit.UI.WinUI.Behaviors
|
MSEssentials.UI.WinUI.Behaviors
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="https://repos.mateuszskoczek.com/SimpleToolkit/-/packages/nuget/simpletoolkit.ui.winui.behaviors/"><img src="https://img.shields.io/gitea/v/release/SimpleToolkit/SimpleToolkit.UI.WinUI.Behaviors?gitea_url=https%3A%2F%2Frepos.mateuszskoczek.com%2F&display_name=release&label=nuget"></a>
|
<a href="https://www.nuget.org/packages/MSEssentials.UI.WinUI.Behaviors/"><img src="https://img.shields.io/nuget/v/MSEssentials.UI.WinUI.Behaviors.svg?style=flat-square"></a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
SimpleToolkit.UI.WinUI.Controls
|
MSEssentials.UI.WinUI.Controls
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="https://repos.mateuszskoczek.com/SimpleToolkit/-/packages/nuget/simpletoolkit.ui.winui.controls/"><img src="https://img.shields.io/gitea/v/release/SimpleToolkit/SimpleToolkit.UI.WinUI.Controls?gitea_url=https%3A%2F%2Frepos.mateuszskoczek.com%2F&display_name=release&label=nuget"></a>
|
<a href="https://www.nuget.org/packages/MSEssentials.UI.WinUI.Controls/"><img src="https://img.shields.io/nuget/v/MSEssentials.UI.WinUI.Controls.svg?style=flat-square"></a>
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
SimpleToolkit.UI.WinUI.Helpers
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<a href="https://repos.mateuszskoczek.com/SimpleToolkit/-/packages/nuget/simpletoolkit.ui.winui.helpers/"><img src="https://img.shields.io/gitea/v/release/SimpleToolkit/SimpleToolkit.UI.WinUI.Helpers?gitea_url=https%3A%2F%2Frepos.mateuszskoczek.com%2F&display_name=release&label=nuget"></a>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@@ -107,27 +99,27 @@
|
|||||||
Dependencies should be installed automatically with this package
|
Dependencies should be installed automatically with this package
|
||||||
|
|
||||||
- Microsoft.WindowsAppSDK 1.4.240211001
|
- Microsoft.WindowsAppSDK 1.4.240211001
|
||||||
|
- MSEssentials.UI.Common.Converters
|
||||||
|
|
||||||
## Installation and usage
|
## Installation and usage
|
||||||
|
|
||||||
To download package from organization package registry, you have to add new NuGet package source. You will need access details, which you can obtain by contacting the repository owner. You can also download .nupkg file from repository Releases page.
|
You can download package from official NuGet registry or .nupkg file itself from Releases tab.
|
||||||
|
|
||||||
**CLI:**
|
**CLI:**
|
||||||
|
|
||||||
```
|
```
|
||||||
dotnet nuget add source --name SimpleToolkit --username <username> --password <password> https://repos.mateuszskoczek.com/api/packages/SimpleToolkit/nuget/index.json
|
dotnet add package MSEssentials.UI.WinUI.Converters
|
||||||
dotnet add package --source SimpleToolikt SimpleToolkit.UI.WinUI.Converters
|
|
||||||
```
|
```
|
||||||
|
|
||||||
**Package reference in .csproj file:**
|
**Package reference in .csproj file:**
|
||||||
|
|
||||||
```
|
```
|
||||||
<PackageReference Include="SimpleToolkit.UI.WinUI.Converters" Version="<version>" />
|
<PackageReference Include="MSEssentials.UI.WinUI.Converters" Version="<version>" />
|
||||||
```
|
```
|
||||||
|
|
||||||
## Attribution and contribution
|
## Attribution and contribution
|
||||||
|
|
||||||
This project is open source on MIT License, so you can just copy and upload again to your repository. But according to the license, you must include information about the original author. You can find license <a href="https://repos.mateuszskoczek.com/SimpleToolkit/SimpleToolkit.UI.WinUI.Converters/src/branch/main/LICENSE">here</a>.
|
This project is open source on MIT License, so you can just copy and upload again to your repository. But according to the license, you must include information about the original author. You can find license <a href="https://repos.mateuszskoczek.com/MSEssentials/MSEssentials.UI.WinUI.Converters/src/branch/main/LICENSE">here</a>.
|
||||||
|
|
||||||
However, the preferred way to contribute would be to propose improvements in a pull request, through issues, or through other means of communication.
|
However, the preferred way to contribute would be to propose improvements in a pull request, through issues, or through other means of communication.
|
||||||
|
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
using Microsoft.UI.Xaml.Data;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace SimpleToolkit.UI.WinUI.Converters
|
|
||||||
{
|
|
||||||
public class ObjectToStringConverter : IValueConverter
|
|
||||||
{
|
|
||||||
#region METHODS
|
|
||||||
|
|
||||||
public object Convert(object value, Type targetType, object parameter, string language) => value.ToString();
|
|
||||||
public object ConvertBack(object value, Type targetType, object parameter, string language) => throw new NotImplementedException();
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,58 +0,0 @@
|
|||||||
# SimpleToolkit.UI.WinUI.Converters
|
|
||||||
|
|
||||||
### Set of helpers, class extensions, UI controls used in my other C# projects
|
|
||||||
|
|
||||||
SimpleToolkit is package of useful classes, helpers, extensions and UI controls, I use in my C# projects. UI.WinUI.Converters subpackage contains XAML value converters for WinUI applications.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## NuGet registry status
|
|
||||||
|
|
||||||
| Subpackage | Status |
|
|
||||||
|--------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
||||||
| **SimpleToolkit.UI.WinUI.Converters** | [](https://repos.mateuszskoczek.com/SimpleToolkit/-/packages/nuget/simpletoolkit.ui.winui.converters/) |
|
|
||||||
| SimpleToolkit.Extensions | [](https://repos.mateuszskoczek.com/SimpleToolkit/-/packages/nuget/simpletoolkit.extensions/) |
|
|
||||||
| SimpleToolkit.Attributes | [](https://repos.mateuszskoczek.com/SimpleToolkit/-/packages/nuget/simpletoolkit.attributes/) |
|
|
||||||
| SimpleToolkit.MVVM | [](https://repos.mateuszskoczek.com/SimpleToolkit/-/packages/nuget/simpletoolkit.mvvm/) |
|
|
||||||
| SimpleToolkit.UI.Models | [](https://repos.mateuszskoczek.com/SimpleToolkit/-/packages/nuget/simpletoolkit.ui.models/) |
|
|
||||||
| SimpleToolkit.UI.WinUI.Behaviors | [](https://repos.mateuszskoczek.com/SimpleToolkit/-/packages/nuget/simpletoolkit.ui.winui.behaviors/) |
|
|
||||||
| SimpleToolkit.UI.WinUI.Controls | [](https://repos.mateuszskoczek.com/SimpleToolkit/-/packages/nuget/simpletoolkit.ui.winui.controls/) |
|
|
||||||
| SimpleToolkit.UI.WinUI.Helpers | [](https://repos.mateuszskoczek.com/SimpleToolkit/-/packages/nuget/simpletoolkit.ui.winui.helpers/) |
|
|
||||||
|
|
||||||
## Features
|
|
||||||
|
|
||||||
- **ObjectToIntConverter** - converts any object to int (e.g. enums)
|
|
||||||
- **ObjectToStringConverter** - converts any object to string
|
|
||||||
|
|
||||||
## Dependencies
|
|
||||||
|
|
||||||
Dependencies should be installed automatically with this package
|
|
||||||
|
|
||||||
- Microsoft.WindowsAppSDK 1.4.240211001
|
|
||||||
|
|
||||||
## Installation and usage
|
|
||||||
|
|
||||||
To download package from organization package registry, you have to add new NuGet package source. You will need access details, which you can obtain by contacting the repository owner. You can also download .nupkg file from repository Releases page.
|
|
||||||
|
|
||||||
**CLI:**
|
|
||||||
|
|
||||||
```
|
|
||||||
dotnet nuget add source --name SimpleToolkit --username <username> --password <password> https://repos.mateuszskoczek.com/api/packages/SimpleToolkit/nuget/index.json
|
|
||||||
dotnet add package --source SimpleToolikt SimpleToolkit.UI.WinUI.Converters
|
|
||||||
```
|
|
||||||
|
|
||||||
**Package reference in .csproj file:**
|
|
||||||
|
|
||||||
```
|
|
||||||
<PackageReference Include="SimpleToolkit.UI.WinUI.Converters" Version="<version>" />
|
|
||||||
```
|
|
||||||
|
|
||||||
## Attribution and contribution
|
|
||||||
|
|
||||||
This project is open source on MIT License, so you can just copy and upload again to your repository. But according to the license, you must include information about the original author. You can find license [here](https://repos.mateuszskoczek.com/SimpleToolkit/SimpleToolkit.UI.WinUI.Converters/src/branch/main/LICENSE).
|
|
||||||
|
|
||||||
However, the preferred way to contribute would be to propose improvements in a pull request, through issues, or through other means of communication.
|
|
||||||
|
|
||||||
**Other sources:**
|
|
||||||
|
|
||||||
- Icon by [Icons8](icons8.com)
|
|
||||||
Reference in New Issue
Block a user