XamlBehaviors

This is the official home for UWP XAML Behaviors on GitHub.

  • Owner: microsoft/XamlBehaviors
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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

Build and Create Managed XAML Behaviors NuGet

  • Open the "BehaviorsSDKManaged.sln" solution in Visual Studio
  • Change Build Configuration to Release
  • Build [Ctrl + B]
  • Run msbuild /t:Pack src/BehaviorsSDKManaged/Microsoft.Xaml.Interactions.Design/Microsoft.Xaml.Interactions.Design.csproj
    • (Optional) Add /p:TimestampPackage=true to include the timestamp in the NuGet package version

Build and Create Native XAML Behaviors NuGet

  • Open the "BehaviorsSDKNative.sln" solution in Visual Studio
  • Batch Build for x86, x64, and ARM in Release
  • Run msbuild /t:Pack src/BehaviorsSDKNative/Microsoft.Xaml.Interactions.Design/Microsoft.Xaml.Interactions.Design.csproj
    • (Optional) Add /p:TimestampPackage=true to include the timestamp in the NuGet package version

Main metrics

Overview
Name With Ownermicrosoft/XamlBehaviors
Primary LanguageC#
Program languageC# (Language Count: 3)
Platform
License:MIT License
所有者活动
Created At2015-07-20 18:03:14
Pushed At2025-01-27 17:58:21
Last Commit At
Release Count5
Last Release Namev3.0.0 (Posted on )
First Release Name1.1.0 (Posted on )
用户参与
Stargazers Count745
Watchers Count89
Fork Count118
Commits Count547
Has Issues Enabled
Issues Count133
Issue Open Count59
Pull Requests Count145
Pull Requests Open Count7
Pull Requests Close Count22
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private