XamlBehaviors

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

  • 所有者: microsoft/XamlBehaviors
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

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

主要指標

概覽
名稱與所有者microsoft/XamlBehaviors
主編程語言C#
編程語言C# (語言數: 3)
平台
許可證MIT License
所有者活动
創建於2015-07-20 18:03:14
推送於2025-01-27 17:58:21
最后一次提交
發布數5
最新版本名稱v3.0.0 (發布於 )
第一版名稱1.1.0 (發布於 )
用户参与
星數745
關注者數89
派生數118
提交數547
已啟用問題?
問題數133
打開的問題數59
拉請求數145
打開的拉請求數7
關閉的拉請求數22
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?