EleCho.WpfUtilities.ConditionControls
1.0.0
Prefix Reserved
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Framework 4.6.2
This package targets .NET Framework 4.6.2. The package is compatible with this framework or higher.
Suggested Alternatives
dotnet add package EleCho.WpfUtilities.ConditionControls --version 1.0.0
NuGet\Install-Package EleCho.WpfUtilities.ConditionControls -Version 1.0.0
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="EleCho.WpfUtilities.ConditionControls" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EleCho.WpfUtilities.ConditionControls --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EleCho.WpfUtilities.ConditionControls, 1.0.0"
#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.
// Install EleCho.WpfUtilities.ConditionControls as a Cake Addin #addin nuget:?package=EleCho.WpfUtilities.ConditionControls&version=1.0.0 // Install EleCho.WpfUtilities.ConditionControls as a Cake Tool #tool nuget:?package=EleCho.WpfUtilities.ConditionControls&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
EleCho.WpfUtilities.ConditionControls
Types:
- EleCho.WpfUtilities.ConditionControls.IfControl
- EleCho.WpfUtilities.ConditionControls.IfNotControl
- EleCho.WpfUtilities.ConditionControls.MatchControl
Usage
Using namespace:
<Window
xmlns:condition="clrnamespace:EleCho.WpfUtilities.ConditionControls">
...
</Window>
IfControl
can display different content depending on whether the condition is true or false.
<CheckBox Content="Test" Name="checkbox"/>
<condition:IfControl Condition="{Binding ElementName=checkbox,Path=IsChecked}">
<condition:IfControl.Then>
<TextBlock Text="QWQ"/>
</condition:IfControl.Then>
</condition:IfControl>
'IfNotControl' just reversed the result of 'IfControl'
'MatchControl' can match different values and display different contents.
<Slider Width="120" Name="slider" SmallChange="1" Value="1" LargeChange="2"/>
<TextBlock Text="{Binding ElementName=slider,Path=Value}" />
<condition:MatchControl Value="{Binding ElementName=slider,Path=Value}">
<condition:MatchCase DoubleValue="1.0" Content="Hello"/>
<condition:MatchCase DoubleValue="2.0" Content="World"/>
</condition:MatchControl>
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. |
.NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. 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.6.2
- No dependencies.
-
net6.0-windows7.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on EleCho.WpfUtilities.ConditionControls:
Repository | Stars |
---|---|
OrgEleCho/CurvaLauncher
Simple, light, and fast desktop launcher. 简单、轻量、快速的桌面启动器.
|
Version | Downloads | Last updated | |
---|---|---|---|
1.0.0 | 349 | 9/1/2023 |