AK.Toolkit.WinUI3.TextBlockEx
1.0.0
dotnet add package AK.Toolkit.WinUI3.TextBlockEx --version 1.0.0
NuGet\Install-Package AK.Toolkit.WinUI3.TextBlockEx -Version 1.0.0
<PackageReference Include="AK.Toolkit.WinUI3.TextBlockEx" Version="1.0.0" />
paket add AK.Toolkit.WinUI3.TextBlockEx --version 1.0.0
#r "nuget: AK.Toolkit.WinUI3.TextBlockEx, 1.0.0"
// Install AK.Toolkit.WinUI3.TextBlockEx as a Cake Addin #addin nuget:?package=AK.Toolkit.WinUI3.TextBlockEx&version=1.0.0 // Install AK.Toolkit.WinUI3.TextBlockEx as a Cake Tool #tool nuget:?package=AK.Toolkit.WinUI3.TextBlockEx&version=1.0.0
🧰 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
💻 AutoCompleteTextBox
A TextBox control that shows a suggestion based on input. AutoCompleteTextBox shows a suggestion inside the TextBox control.
<toolkit:AutoCompleteTextBox
IsSuggestionCaseSensitive="false"
SuggestionForeground="HotPink"
SuggestionPrefix="..."
SuggestionSuffix=" ? [Press Right]"
SuggestionsSource="{x:Bind Suggestions, Mode=OneWay}" />
🔢 NumberBoxEx
In addition to the built-in NumberBox
:
- NumberHorizontalAlignment DependencyProperty
- IsDeleteButtonVisible DependencyProperty
Coming soon:
- Thousand separators
- Comma
- Space
⚒️ ScrollBarExtensions.KeepExpanded
An attached property that keeps ScrollBars
expanded.
<ScrollBar toolkit:ScrollBarExtensions.KeepVerticalExpanded="True" />
<ScrollViewer
toolkit:ScrollBarExtensions.KeepHorizontalExpanded="True"
toolkit:ScrollBarExtensions.KeepVerticalExpanded="True">
<ItemsRepeater />
</ScrollViewer>
<ListView toolkit:ScrollBarExtensions.KeepVerticalExpanded="True" />
<GridView toolkit:ScrollBarExtensions.KeepVerticalExpanded="True" />
<NavigationView toolkit:ScrollBarExtensions.KeepVerticalExpanded="True" />
⚒️ ScrollBarExtensions.Annotations
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
.
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.
<controls:DataGrid
toolkit:ScrollBarExtensions.KeepVerticalExpanded="True"
toolkit:ScrollBarExtensions.VerticalAnnotations="{x:Bind Annotations, Mode=OneWay}"
ItemsSource="{x:Bind Users}">
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0-windows10.0.19041 is compatible. net7.0-windows was computed. net7.0-windows10.0.19041 is compatible. net8.0-windows was computed. |
-
net6.0-windows10.0.19041
- Microsoft.Windows.SDK.BuildTools (>= 10.0.22621.2428)
- Microsoft.WindowsAppSDK (>= 1.4.231115000)
-
net7.0-windows10.0.19041
- Microsoft.Windows.SDK.BuildTools (>= 10.0.22621.2428)
- Microsoft.WindowsAppSDK (>= 1.4.231115000)
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 |
---|---|---|
1.0.0 | 187 | 1/20/2024 |