QSoft.WPF.Panel
1.0.0.4
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Framework 4.7.2
This package targets .NET Framework 4.7.2. The package is compatible with this framework or higher.
dotnet add package QSoft.WPF.Panel --version 1.0.0.4
NuGet\Install-Package QSoft.WPF.Panel -Version 1.0.0.4
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="QSoft.WPF.Panel" Version="1.0.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="QSoft.WPF.Panel" Version="1.0.0.4" />
<PackageReference Include="QSoft.WPF.Panel" />
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 QSoft.WPF.Panel --version 1.0.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: QSoft.WPF.Panel, 1.0.0.4"
#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 QSoft.WPF.Panel@1.0.0.4
#: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=QSoft.WPF.Panel&version=1.0.0.4
#tool nuget:?package=QSoft.WPF.Panel&version=1.0.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
QSoft.WPF.Panel
Quick start
- install from nuget
- add qpanel into xaml
<Window x:Class="WpfApp_FlexPanelT.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApp_FlexPanelT"
mc:Ignorable="d"
xmlns:qpanel="clr-namespace:QSoft.WPF.Panel;assembly=QSoft.WPF.Panel"
Title="FlexPanel test site" Height="450" Width="800">
<qpanel:FlexPanel>
<Button Width="100">Test1</Button>
<Button Width="100">Test2</Button>
<Button Width="100">Test3</Button>
</qpanel:FlexPanel>
</Window>
Direction: Row,Column
<qpanel:FlexPanel FlexDirection="Row">
<Button>Test1</Button>
<Button>Test2</Button>
<Button>Test3</Button>
</qpanel:FlexPanel>
JustifyContent: Start, End, Center, SpaceAround, SpaceBetween, SpaceEvenly
<qpanel:FlexPanel JustifyContent="Start">
<Button>Test1</Button>
<Button>Test2</Button>
<Button>Test3</Button>
</qpanel:FlexPanel>
AlignItems: Start, End, Center, Stretch
<qpanel:FlexPanel AlignItems="Start">
<Button>Test1</Button>
<Button>Test2</Button>
<Button>Test3</Button>
</qpanel:FlexPanel>
Gap
<qpanel:FlexPanel FlexDirection="Row" Gap="8">
<Button>Test1</Button>
<Button>Test2</Button>
<Button>Test3</Button>
</qpanel:FlexPanel>
AlignSelf: Auto, Start, End, Center, Stretch
<qpanel:FlexPanel FlexDirection="Row" Gap="8">
<Button qpanel:FlexPanel.AlignSelf="Start">Test1</Button>
<Button qpanel:FlexPanel.AlignSelf="End">Test2</Button>
<Button qpanel:FlexPanel.AlignSelf="Center">Test3</Button>
</qpanel:FlexPanel>
Grow
use Grow, not set Width/Hieght when Direction Row/Column
<qpanel:FlexPanel FlexDirection="Row" Gap="8">
<Button qpanel:FlexPanel.Grow="1">Test1</Button>
<Button>Test2</Button>
<Button>Test3</Button>
</qpanel:FlexPanel>
Basis: 0~double.PositiveInfinity
<qpanel:FlexPanel FlexDirection="Row" Gap="8">
<Button qpanel:FlexPanel.Basis="100">Test1</Button>
<Button qpanel:FlexPanel.Basis="200">Test2</Button>
<Button qpanel:FlexPanel.Basis="300">Test3</Button>
</qpanel:FlexPanel>
Refrences
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0-windows7.0 is compatible. net7.0-windows was computed. net8.0-windows was computed. net8.0-windows7.0 is compatible. net9.0-windows was computed. net10.0-windows was computed. |
| .NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.7.2
- No dependencies.
-
net6.0-windows7.0
- No dependencies.
-
net8.0-windows7.0
- 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.
FlexPanel
1. add basis property