Microsoft.Xaml.Behaviors.Uwp.Managed 2.0.0

Easily add interactivity to your apps using XAML Behaviors. Now with UWP support! Behaviors encapsulate reusable functionalities for elements that can be easily added to your XAML without the need for more imperative code. This is the managed version for C# UWP projects.

Install-Package Microsoft.Xaml.Behaviors.Uwp.Managed -Version 2.0.0
dotnet add package Microsoft.Xaml.Behaviors.Uwp.Managed --version 2.0.0
paket add Microsoft.Xaml.Behaviors.Uwp.Managed --version 2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Getting Started

Resources

More Info

Code Example

For an example of using Behaviors in an application, here is a snippet of XAML:

<Button>
	<Interactivity:Interaction.Behaviors>
		<Core:EventTriggerBehavior EventName="Click">
			<Core:ChangePropertyAction PropertyName="Background">
				<Core:ChangePropertyAction.Value>
					<SolidColorBrush Color="Red"/>
				</Core:ChangePropertyAction.Value>
			</Core:ChangePropertyAction>
		</Core:EventTriggerBehavior>
	</Interactivity:Interaction.Behaviors>
</Button>

Using Behaviors SDK

The documentation explains how to install Visual Studio, add the XAML Behaviors NuGet package to your project, and get started using the API.

Getting Started

Resources

More Info

Code Example

For an example of using Behaviors in an application, here is a snippet of XAML:

<Button>
	<Interactivity:Interaction.Behaviors>
		<Core:EventTriggerBehavior EventName="Click">
			<Core:ChangePropertyAction PropertyName="Background">
				<Core:ChangePropertyAction.Value>
					<SolidColorBrush Color="Red"/>
				</Core:ChangePropertyAction.Value>
			</Core:ChangePropertyAction>
		</Core:EventTriggerBehavior>
	</Interactivity:Interaction.Behaviors>
</Button>

Using Behaviors SDK

The documentation explains how to install Visual Studio, add the XAML Behaviors NuGet package to your project, and get started using the API.

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
2.0.0 (current version) 75,057 10/20/2016
1.1.0 154,161 2/22/2016
1.0.3 23,269 12/1/2015