RelativeControl.Avalonia
0.2.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package RelativeControl.Avalonia --version 0.2.1
NuGet\Install-Package RelativeControl.Avalonia -Version 0.2.1
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="RelativeControl.Avalonia" Version="0.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RelativeControl.Avalonia" Version="0.2.1" />
<PackageReference Include="RelativeControl.Avalonia" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add RelativeControl.Avalonia --version 0.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: RelativeControl.Avalonia, 0.2.1"
#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.
#:package RelativeControl.Avalonia@0.2.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=RelativeControl.Avalonia&version=0.2.1
#tool nuget:?package=RelativeControl.Avalonia&version=0.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
RelativeControl.Avalonia
This provides some relative units and features for Avalonia.
Get Started
Add nuget package:
dotnet add package RelativeControl.Avalonia
Use Relative in controls.
<Window
...
xmlns:r="https://github.com/metaone01/RelativeControl.Avalonia"
...>
<Button r:Relative.Width="50vw"/>
</Window>
Units
Absolute Units:
px: Pixel
cm: Centimeter
mm: Millimeter
in: Inch
Relative Units:
tpw: TemplatedParent's width
tph: TemplatedParent's height
lpw or pw: LogicalParent's width
lph or ph: LogicalParent's height
vpw: VisualParent's width
vph: VisualParent's height
sw: The control itself's width
sh: The control itself's height
em: The control's FontSize
vw: Window's width
vh: Window's height
Supported Properties
>=0.0.5
- Width
- Height
- MinWidth
- MinHeight
- MaxWidth
- MaxHeight
- BorderThickness
- CornerRadius
>=0.1.0
- Margin
- Padding
Breaking Changes
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- Avalonia (>= 11.1.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on RelativeControl.Avalonia:
| Package | Downloads |
|---|---|
|
RelativeControl.Avalonia.DataGrid
Enable Relative Units and Features for Avalonia DataGrid |
GitHub repositories
This package is not used by any popular GitHub repositories.