Skip to content

This is the official home for XAML Behaviors on GitHub.

License

Notifications You must be signed in to change notification settings

lyling/XamlBehaviors

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XAML Behaviors

XAML Behaviors is an easy-to-use means of adding common and reusable interactivity to your Windows UWP applications with minimal code. It is available for both native and managed applications. Use of XAML Behaviors is governed by the MIT License

#Build Status

Platform Status
Managed
Native

Getting Started

Where to get it

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.

Building Behaviors from Source

What You Need

Clone the Repository

-Go to 'View' -> 'Team Explorer' -> 'Local Git Repositories' -> 'Clone' -Add the XAML Behaviors repository URL (https://github.com/Microsoft/XamlBehaviors) and hit 'Clone'

Build and Create Managed XAML Behaviors NuGet

  • Open the "BehaviorsSDKManaged.sln" solution in Visual Studio
  • Change Build Configuration to Release
  • Build [Ctrl + B]
  • Install the latest NuGet command-line tool by running scripts/download-nuget.cmd
  • Run scripts/CreateManagedNuGet.cmd

Build and Create Native XAML Behaviors NuGet

  • Open the "BehaviorsSDKNative.sln" solution in Visual Studio
  • Batch Build for x86, x64, and ARM in Release
  • Install the latest NuGet command-line tool by running scripts/download-nuget.cmd
  • Run scripts/CreateNativeNuGet.cmd

About

This is the official home for XAML Behaviors on GitHub.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 70.9%
  • C++ 26.7%
  • Smalltalk 1.1%
  • Other 1.3%