Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/AndrewKeepCoding/AK.Toolkit

The AK.Toolkit will be a collection of controls, helpers, etc... stuff that I needed to use but couldn't find somewhere else.
https://github.com/AndrewKeepCoding/AK.Toolkit

customcontrols helpers winui3

Last synced: 3 days ago
JSON representation

The AK.Toolkit will be a collection of controls, helpers, etc... stuff that I needed to use but couldn't find somewhere else.

Awesome Lists containing this project

README

        

# 🧰 AK.Toolkit

The AK.Toolkit will be a collection of controls, helpers, etc... stuff that I need but couldn't find somewhere else.

## πŸ”΅ WinUI 3

### ⏺️ ButtonExtensions

[🎬 YouTube](https://youtu.be/3PX2oLuqEqA?si=BCg9dpG2Oq-RvJHU)

Provides additional features for the Button control:
- PointerOverBackgroundLightnessFactor
- PressedBackgroundLightnessFactor

```xaml

```

### πŸ“œ RichTextBlockExtensions

Extensions that make it easier to highlight `RichTextBlock`.

```xaml


```

![ScrollBar Extensions Annotations Screenshot](Assets/richtextblock-extensions-screenshot.png)

### πŸ’» AutoCompleteTextBox

[🎬 YouTube](https://youtu.be/G17jbGSXLnk)

A TextBox control that shows a suggestion based on input.
AutoCompleteTextBox shows a suggestion **inside** the TextBox control.

```xaml

```

![AutoCompleteTextBox Screenshot](Assets/auto-complete-textbox-sample-screenshot.png)

### πŸ”’ NumberBoxEx

[🎬 YouTube](https://youtu.be/ai-koyvgbWY)

In addition to the built-in `NumberBox`:

- **NumberHorizontalAlignment** DependencyProperty
- **IsDeleteButtonVisible** DependencyProperty

Coming soon:

- Thousand separators
- Comma
- Space

### βš’οΈ ScrollBarExtensions.KeepExpanded

[🎬 YouTube](https://youtu.be/8m82fXl0LKk)

An attached property that keeps `ScrollBars` expanded.

```xaml

```

### βš’οΈ ScrollBarExtensions.Annotations

[🎬 YouTube](https://youtu.be/wa6_E_HpiMg)

An attached property that adds annotations to vertical `ScrollBars`.

First, you need to create a collection of your annotations that implements ``IAnnotation`` or just use the built-in ``BasicAnnotation``.

```csharp
public interface IAnnotation
{
double Value { get; }

ValueType ValueType { get; }

Shape Shape { get; }

double LeftOffset { get; }
}

public record BasicAnnotation : IAnnotation
{
public double Value { get; }

public ValueType ValueType { get; set; }

public Shape Shape { get; private set; }

public double LeftOffset { get; set; }

public BasicAnnotation(double value, Shape shape)
{
Value = value;
Shape = shape;
}
}
```

Then bind your annotations using ``ScrollBarExtensions.VerticalAnnotations`` attached property.

```xaml

```

![ScrollBar Extensions Annotations Screenshot](Assets/scrollbar-extensions-annotations-screenshot.png)