SmartMvvm.Xaml 2.0.0-alpha0046

This is a prerelease version of SmartMvvm.Xaml.
Install-Package SmartMvvm.Xaml -Version 2.0.0-alpha0046
dotnet add package SmartMvvm.Xaml --version 2.0.0-alpha0046
<PackageReference Include="SmartMvvm.Xaml" Version="2.0.0-alpha0046" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SmartMvvm.Xaml --version 2.0.0-alpha0046
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SmartMvvm.Xaml, 2.0.0-alpha0046"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install SmartMvvm.Xaml as a Cake Addin
#addin nuget:?package=SmartMvvm.Xaml&version=2.0.0-alpha0046&prerelease

// Install SmartMvvm.Xaml as a Cake Tool
#tool nuget:?package=SmartMvvm.Xaml&version=2.0.0-alpha0046&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Introduction

SmartMvvm.Xaml contains a set of useful markup extensions and other objects to simplify writing WPF XAML code without the need of code behind or unnecessary UI behavior logic in view model code.

  • Supported are projects using .NET Framework 4.5+ or .NET Core 3.1+

Getting Started

To use these XAML utilities in your project, simply install the SmartMvvm.Xaml NuGet package to your project.

Check out the sample application to see how you can use these utilities in your project.

Samples


<ProgressBar Visibility="{And {Binding IsLoading}, {Binding IsConnected}}" />


<TextBlock Text="{Format 'Results in {0} cells', 
                         {Calc 'x * y', 
                               {Binding NumberOfColumns}, 
                               {Binding NumberOfRows}}}" />


<Window.Resources>
  <Var x:Key="TooManyItems" Value="{Greater {Binding ElementName=CountTextBox, Path=Text},
                                            {Int 10000}}" />
</Window.Resources>

<TextBox x:Name="CountTextBox" Text="100" />
<TextBlock Text="{If {Use TooManyItems}, 
                     Then='Too many items!'},
                     Else='Enter the number of items to generate.'}"
           Foreground="{If {Use TooManyItems},
                           Then={x:Static Brushes.Red},
                           Else={x:Static Brushes.Black}}" />
  • .NETCoreApp 3.1

    • No dependencies.
  • .NETFramework 4.5.2

    • 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.

Version Downloads Last updated
2.0.0-alpha0046 68 11/17/2021
2.0.0-alpha0044 31 11/17/2021
1.2.0 440 3/21/2020
1.1.0 236 12/1/2019
1.0.0 235 11/26/2019