XAML BehaviorsWindows UWP 应用管理工具
XAML Behaviors 是简单易用的 Windows UWP 常规可复用交互添加工具,支持本地和管理应用工具。
代码示例:
<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>
评论
